softap: Add delay after startap, set and stopap calls
Change-Id: I9b34d610b3576764324efbf78bb55322d1067378
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/SoftapController.cpp b/SoftapController.cpp
index 6caa247..a68af22 100644
--- a/SoftapController.cpp
+++ b/SoftapController.cpp
@@ -163,6 +163,7 @@
else {
mPid = pid;
LOGD("Softap startap - Ok");
+ usleep(AP_BSS_START_DELAY);
}
}
return ret;
@@ -198,6 +199,7 @@
#endif
mPid = 0;
LOGD("Softap service stopped: %d", ret);
+ usleep(AP_BSS_STOP_DELAY);
return ret;
}
@@ -311,6 +313,7 @@
}
else {
LOGD("Softap set - Ok");
+ usleep(AP_SET_CFG_DELAY);
}
return ret;
}