I see that the number of networks found by CC3000 is unstable, sometimes it's 12 (same with laptop wifi), but sometimes it's just zero.
I set scan parameters as follow:
unsigned long timescan_array[16] = {400, 400, ..., 400};
wlan_ioctl_set_scan_params(1, 20, 200, 2, 0x1fff, -128, 0, 205, timescan_array);
//Below function is called in a loop to get all networks
res = wlan_ioctl_get_scan_results(5000, scan_result);
I wondering if it be power problem or design problem (used hardware is my own designing, not a TI development board).