Dear all
I can get SL_WLAN_CONNECT_EVENT and SL_NETAPP_IPV4_IPACQUIRED_EVENT after my device connect to an AP.
Then I try the following test in order to check the reconnect capability.
1. power off my AP.
2. the device will receive SL_WLAN_DISCONNECT_EVENT
3. power on my AP
Because I already set auto connect policy( using sl_WlanPolicySet) at the beginning.
Therefore I suppost that I could get SL_WLAN_CONNECT_EVENT after my AP is power on.
below is the code flow :
1. sl_start(0,0,0) to init device
2. sl_WlanProfileDel(0xFF) to make sure there is only one AP information by the following ProfileAdd function call
3. sl_WlanPolicySet(SL_POLICY_CONNECTION, SL_CONNECTION_POLICY(1, 0,0,0,0), NULL, 0) set AUTO connect policy
3. sl_WlanProfileAdd add one AP information
4. Get SL_WLAN_CONNECT_EVENT after my device connect to an AP
5. Get SL_WLAN_DISCONNECT_EVENT after I power off my AP
6. NO SL_WLAN_CONNECT_EVENT when I powr on my AP
From the spec, the device should try to connect to an AP from the stored profile after setting sl_WlanPolicySet.
How should I set in order to enable AUTO reconnect capabiility ?
Thank you
Veloso