This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220S-LAUNCHXL:

Part Number: CC3220S-LAUNCHXL
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

  • Hi Jitendra,

    Once scan policy is enabled it runs regardless of being connected/disconnected or in AP/STA mode. 

    The error you're getting could mean that the scan results are not ready yet so try again or that the scan policy is not enabled. I don't see a problem with the code so you might just have set a greater delay before trying to get the results.

    Jesu