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;
 }
diff --git a/SoftapController.h b/SoftapController.h
index 415589f..9dc6cce 100644
--- a/SoftapController.h
+++ b/SoftapController.h
@@ -22,6 +22,9 @@
 #include <utils/List.h>
 
 #define SOFTAP_MAX_BUFFER_SIZE	4096
+#define AP_BSS_START_DELAY	500000
+#define AP_BSS_STOP_DELAY	500000
+#define AP_SET_CFG_DELAY	500000
 
 class SoftapController {
     char mBuf[SOFTAP_MAX_BUFFER_SIZE];