How to clear scan cache.
Raghavendra. S
raghavendra.akkasali
Thu Jan 10 18:01:52 PST 2008
Hi,
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
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
bssid=00:00:00:00:00:00
key_mgmt=NONE
}
This will never connect to any AP, but will remain in scan state. Is
there any issue in using this kind of configuration?
-Raghu.
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.
>
> Dan
>
>
>
--
Regards & Thanks
Raghavendra. S
More information about the Hostap
mailing list