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.

Scan Networks WlanPolicySet SL Wlan Event and GetNetworkList stucked

Other Parts Discussed in Thread: CC3100

Hello all,

I have 2 questions:

1. I would like to know if there is a Simple Link  WLAN event (similar to connected or disconnected events) that can signal that scanning process is done?

I do not want to wait the 900ms delay, but I would like to have a callback saying that scan has finished.

sl_WlanPolicySet(SL_POLICY_SCAN , ucpolicyOpt, (UINT8*)(policyVal.ucPolicy), sizeof(policyVal));

Delay(900);

2. I am having some issues with

#define SCAN_TABLE_SIZE 20

retval = sl_WlanGetNetworkList(0, SCAN_TABLE_SIZE, &netEntries[0]);

When the size is greater than 2, the function gets stuck. (waited more than 10 minutes each time).

When size is 1 or 2 I can increase index of net entries and I am able to get the list of the networks.

Do you know what could be the problem?

Thank you in advance,

Dobrin