OSDN Git Service

am e8164ddc: Fix MSS clamping.
[android-x86/system-netd.git] / server / SoftapController.cpp
index 7d5da95..07c77b0 100644 (file)
@@ -114,7 +114,6 @@ bool SoftapController::isSoftapStarted() {
 int SoftapController::setSoftap(int argc, char *argv[]) {
     char psk_str[2*SHA256_DIGEST_LENGTH+1];
     int ret = ResponseCode::SoftapStatusResult;
-    int i = 0;
     int fd;
     int hidden = 0;
     int channel = AP_CHANNEL_DEFAULT;
@@ -138,7 +137,7 @@ int SoftapController::setSoftap(int argc, char *argv[]) {
 
     asprintf(&wbuf, "interface=%s\ndriver=nl80211\nctrl_interface="
             "/data/misc/wifi/hostapd\nssid=%s\nchannel=%d\nieee80211n=1\n"
-            "hw_mode=g\nignore_broadcast_ssid=%d\n",
+            "hw_mode=g\nignore_broadcast_ssid=%d\nwowlan_triggers=any\n",
             argv[2], argv[3], channel, hidden);
 
     if (argc > 7) {
@@ -201,7 +200,6 @@ int SoftapController::setSoftap(int argc, char *argv[]) {
  */
 int SoftapController::fwReloadSoftap(int argc, char *argv[])
 {
-    int i = 0;
     char *fwpath = NULL;
 
     if (argc < 4) {