How to clear scan cache.
Thu Jan 10 18:01:52 PST 2008
In my case, I will enable wpa supplicant and in wpa_cli I issue
"SCAN" command. Then I will sleep for 5-7 seconds. Later I will issue
"SCAN_RESULT" command to get scan result.
Here I have few doubts?
1. what is the optimal value for this sleep?
2. In wpa_ctrl_request(ctrl_conn, "SCAN_RESULTS",
os_strlen("SCAN_RESULTS"), scanbuf, &len, NULL);
Currently in wpa_cli size of "scanbuf" is defined as char array of
2048 bytes. So it will hardly accomodate scan result for 15-16 APs.
Can I increase this size from 2048 to higher value? say 3072, so that
it can hold 24-25 scanned AP information?
3. I have following config file for scan
# cat /tmp/wpa_supplicant.conf.tmp
This will never connect to any AP, but will remain in scan state. Is
there any issue in using this kind of configuration?
On 1/10/08, Dan Williams <dcbw at redhat.com> wrote:
> On Thu, 2008-01-10 at 14:42 +0530, Raghavendra. S wrote:
> > Hi All,
> > Can any body tell me how to clear scan cache?
> Any particular reason you'd want to do this? Scan results should be
> expired fairly quickly anyway, like a matter of seconds. The drivers
> themselves may cache scan results for up to 15 seconds.
Regards & Thanks
More information about the Hostap