aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorBala Shanmugam <bkamatch@qca.qualcomm.com>2012-03-30 12:20:35 (GMT)
committerJouni Malinen <j@w1.fi>2012-03-30 12:20:35 (GMT)
commit1f6c0ab87229222e8f2f4bd933a85ff0c9e89bdd (patch)
tree35b784d2c8e83a2df2a435e37eba53403dfa73b1 /wpa_supplicant/sme.c
parent17218a7babd390e3ea9b3e5b2f40602e3a6c91d9 (diff)
downloadhostap-1f6c0ab87229222e8f2f4bd933a85ff0c9e89bdd.zip
hostap-1f6c0ab87229222e8f2f4bd933a85ff0c9e89bdd.tar.gz
hostap-1f6c0ab87229222e8f2f4bd933a85ff0c9e89bdd.tar.bz2
Allow background scan period to be configured
A network block specific background scan period can now be configured for drivers that implement internal background scan mechanism for roaming and BSS selection. Signed-hostap: Bala Shanmugam <bkamatch@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 690f395..b366847 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -371,6 +371,8 @@ void sme_associate(struct wpa_supplicant *wpa_s, enum wpas_mode mode,
params.ssid = wpa_s->sme.ssid;
params.ssid_len = wpa_s->sme.ssid_len;
params.freq = wpa_s->sme.freq;
+ params.bg_scan_period = wpa_s->current_ssid ?
+ wpa_s->current_ssid->bg_scan_period : -1;
params.wpa_ie = wpa_s->sme.assoc_req_ie_len ?
wpa_s->sme.assoc_req_ie : NULL;
params.wpa_ie_len = wpa_s->sme.assoc_req_ie_len;