aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorKamath Vinayak <c_vkamat@qti.qualcomm.com>2013-09-15 22:21:42 (GMT)
committerJouni Malinen <j@w1.fi>2013-09-15 22:21:42 (GMT)
commit3cc247a78fc86043a68d5c1b916c8d1873c60157 (patch)
treea7a2459deb336131c1b2df26c6b0973f30b03df3 /wpa_supplicant/ctrl_iface.c
parent1380fcbd9f526913d5e984c52dadda867ad9b364 (diff)
downloadhostap-3cc247a78fc86043a68d5c1b916c8d1873c60157.zip
hostap-3cc247a78fc86043a68d5c1b916c8d1873c60157.tar.gz
hostap-3cc247a78fc86043a68d5c1b916c8d1873c60157.tar.bz2
Use configured sched_scan interval for the PNO scan
The interval for the PNO scan did not use the configured sched_scan interval. This commit addresses the same by using the configured value or the default of 10 seconds if configuration parameter is not used. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 3ac4c87..7dde87b 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -50,7 +50,7 @@ static int wpa_supplicant_global_iface_interfaces(struct wpa_global *global,
static int pno_start(struct wpa_supplicant *wpa_s)
{
- int ret;
+ int ret, interval;
size_t i, num_ssid;
struct wpa_ssid *ssid;
struct wpa_driver_scan_params params;
@@ -108,7 +108,10 @@ static int pno_start(struct wpa_supplicant *wpa_s)
if (wpa_s->conf->filter_rssi)
params.filter_rssi = wpa_s->conf->filter_rssi;
- ret = wpa_drv_sched_scan(wpa_s, &params, 10 * 1000);
+ interval = wpa_s->conf->sched_scan_interval ?
+ wpa_s->conf->sched_scan_interval : 10;
+
+ ret = wpa_drv_sched_scan(wpa_s, &params, interval * 1000);
os_free(params.filter_ssids);
if (ret == 0)
wpa_s->pno = 1;