aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/autoscan.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-11-25 13:55:32 (GMT)
committerJouni Malinen <j@w1.fi>2012-11-25 13:55:32 (GMT)
commit4115303bbe77ff0db40b489af92f47fc5ea2c9ad (patch)
tree6c22782d1e9bc1416b82d5f8a304084774e4c621 /wpa_supplicant/autoscan.c
parent215ae884d67017f230df5dbbaf05b0a035114968 (diff)
downloadhostap-4115303bbe77ff0db40b489af92f47fc5ea2c9ad.zip
hostap-4115303bbe77ff0db40b489af92f47fc5ea2c9ad.tar.gz
hostap-4115303bbe77ff0db40b489af92f47fc5ea2c9ad.tar.bz2
Document wpa_s->scan_req
Use an enum with documented values to make it easier to understand how wpa_s->scan_req is used. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/autoscan.c')
-rw-r--r--wpa_supplicant/autoscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/autoscan.c b/wpa_supplicant/autoscan.c
index d0c040a..a2cf7a5 100644
--- a/wpa_supplicant/autoscan.c
+++ b/wpa_supplicant/autoscan.c
@@ -36,7 +36,7 @@ static const struct autoscan_ops * autoscan_modules[] = {
static void request_scan(struct wpa_supplicant *wpa_s)
{
- wpa_s->scan_req = 2;
+ wpa_s->scan_req = MANUAL_SCAN_REQ;
if (wpa_supplicant_req_sched_scan(wpa_s))
wpa_supplicant_req_scan(wpa_s, wpa_s->scan_interval, 0);