Hello!
My customer have a lot of divisions with different AP.
My cc3220-device can be moved from one division to another. In cc3220 flash have a List of Ssid and Key of all AP in all divisions.
Then cc3220 tries to connect to AP i get a list of AP in range (using SL_WLAN_POLICY_SCAN), sort it by rssi and try to connect, using Key from List with matched Ssid.
Then i have a unique Ssid in List - all works fine. Then i have 2 entries in List with same Ssid, but different Keys, i first call sl_WlanConnect() with correct Ssid and wrong Key, it fails as expected. After that, i call sl_WlanConnect() with same Ssid and correct Key - it also fails (unexpected). After a long loop (10-60 minutes) connection to AP successes.
How can i handle this situation?
Code:
sl_WlanConnect(ssid, strlen(ssid), 0, secParams1, 0);//secParams1.Key - wrong, fails connection sleep(1); sl_WlanConnect(ssid, strlen(ssid), 0, secParams2, 0);//secParams2.Key - correct, fails connection //secParams.Type = SL_WLAN_SEC_TYPE_WPA_WPA2