A rough cleanup of netd/softap
- Added error code propagation
- Added more elaborate error messages
- Added stricter parameter checking in softap fwreload
- Cleaned up class signatures
- Removed a non-working default AP in setSoftap
- Removed obsolete functions:
- int addParam(int pos, const char *cmd, const char *arg);
- int setCommand(char *iface, const char *fname, unsigned buflen=0);
- Removed unused "softap clients" functionality
- Removed unused hostapd communication socket
Change-Id: Iad05069f6547f4b17481991018707d5f9db2500a
Signed-off-by: Alexander Levitskiy <sanek@google.com>
diff --git a/SoftapController.h b/SoftapController.h
index 57241b9..38ff8ff 100644
--- a/SoftapController.h
+++ b/SoftapController.h
@@ -27,11 +27,6 @@
#define AP_DRIVER_START_DELAY 800000
class SoftapController {
- pid_t mPid;
- int mSock;
-
- int addParam(int pos, const char *cmd, const char *arg);
- int setCommand(char *iface, const char *fname, unsigned buflen=0);
public:
SoftapController();
virtual ~SoftapController();
@@ -40,9 +35,10 @@
int stopSoftap();
bool isSoftapStarted();
int setSoftap(int argc, char *argv[]);
- void generatePsk(char *ssid, char *passphrase, char *psk);
int fwReloadSoftap(int argc, char *argv[]);
- int clientsSoftap(char **retbuf);
+private:
+ pid_t mPid;
+ void generatePsk(char *ssid, char *passphrase, char *psk);
};
#endif