I am using CC3100 BOOST connected to stm32f7 DISCOVERY board. I set the CC3100 device in access point mode with WPA2 security.
I am trying to connect to the Wifi network from a laptop running Windows and I get "The key or passphrase is incorrect" error.
I tried copy and pasting the password, so I don't mistype it, with the same result.
The issue comes up with WEP security as well, so I think the issue is not security type specific.
Below is the configuration code I use :
excerpt from sl_common.h file :
/* Configuration of the device when it comes up in AP mode */ #define SSID_AP_MODE "FeedbacCar" /* SSID of the CC3100 in AP mode */ #define PASSWORD_AP_MODE "abc" /* Password of CC3100 AP */ #define SEC_TYPE_AP_MODE SL_SEC_TYPE_WEP /* Can take SL_SEC_TYPE_WEP or * SL_SEC_TYPE_WPA as well */
excerpt from my .c file :
/* Configure CC3100 to start in AP mode */ retVal = sl_WlanSetMode(ROLE_AP); if(retVal < 0) LOOP_FOREVER(); /* Configure the SSID of the CC3100 */ retVal = sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SSID, pal_Strlen(SSID_AP_MODE), (_u8 *)SSID_AP_MODE); if(retVal < 0) LOOP_FOREVER(); SecType = SEC_TYPE_AP_MODE; /* Configure the Security parameter the AP mode */ retVal = sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SECURITY_TYPE, 1, (_u8 *)&SecType); if(retVal < 0) LOOP_FOREVER(); retVal = sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_PASSWORD, pal_Strlen(PASSWORD_AP_MODE), (_u8 *)PASSWORD_AP_MODE); if(retVal < 0) LOOP_FOREVER(); retVal = sl_Stop(SL_STOP_TIMEOUT); if(retVal < 0) LOOP_FOREVER(); CLR_STATUS_BIT(g_Status, STATUS_BIT_IP_ACQUIRED);
I would appreciate any help showing me where to start looking for the problem.