Extending the X_NUCLEO_IDW01M1 to allow configuration of the board as an access point

Dependents:   X_NUCLEO_IDW01M1_AP_Test

Fork of X_NUCLEO_IDW01M1 by ST

Revision:
22:a1276b7d3b2d
Parent:
19:9ab60b80872e
--- a/Spwf_API/SpwfSADevice.cpp	Wed Jun 22 15:13:24 2016 +0000
+++ b/Spwf_API/SpwfSADevice.cpp	Thu Jul 07 13:54:06 2016 +0000
@@ -162,7 +162,7 @@
     if(status!=WiFi_MODULE_SUCCESS)
     {
         return -1;
-    }        
+    }       
     
     while(!sync_wait_signal)
     {
@@ -208,7 +208,9 @@
     }
     
     status = SET_Configuration_Value(WIFI_HT_MODE, modeNEnabled);
-    if(status != WiFi_MODULE_SUCCESS) return -1;
+    if(status != WiFi_MODULE_SUCCESS && modeNEnabled) {
+        return -1;
+    }
     status = SET_Configuration_Addr(WIFI_OPR_RATE_MASK, oprMask);
     if(status != WiFi_MODULE_SUCCESS) return -1;