Other Parts Discussed in Thread: CC3235SF
I am frequently getting SL_ERROR_WLAN_GET_NETWORK_LIST_EAGAIN sl_WlanGetNetworkList on the cc3235sf device.
I tried 10 times after a delay of 1 second.
I have enabled scan policy to 1 with a scan-interval of 1 second.
#define CHANNEL_MASK_ALL_5G (0x1F7FFFF)
#define CHANNEL_MASK_ALL (0x1FFF)
#define RSSI_TH_MAX (-95)
ScanParamConfig.RssiThreshold = RSSI_TH_MAX;
ScanParamConfig.ChannelsMask = CHANNEL_MASK_ALL;
ScanParamConfig5G.RssiThreshold = RSSI_TH_MAX;
ScanParamConfig5G.ChannelsMask = CHANNEL_MASK_ALL_5G;
sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS, sizeof(ScanParamConfig), (uint8_t *)(&ScanParamConfig));
sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS_5G, sizeof(ScanParamConfig5G), (uint8_t *)(&ScanParamConfig5G));
sl_WlanPolicySet(SL_WLAN_POLICY_SCAN, SL_WLAN_SCAN_POLICY(1, 0), (uint8_t*)(&ScanIntervalinSec), sizeof(ScanIntervalinSec));
The device only operates in Station Mode. And I am trying to get scan results in both connected and disconnected states.
Can someone provide more details on how the scan results are affected when the device is connected with an AP and when it is disconnected?
When there is a power policy in place? And when there is a connection policy of AUTO and FAST is in place.
Regards