aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2012-11-24 16:08:48 (GMT)
committerJouni Malinen <j@w1.fi>2012-11-24 16:08:48 (GMT)
commit368b1957a61bd0c2932c7532660dff770960047c (patch)
tree8892dc04d95facdb4b60a030edb19bff4086a26e /wpa_supplicant/sme.c
parent3d83a6b9b66d1c8124e6d31356b6a1e582531934 (diff)
downloadhostap-368b1957a61bd0c2932c7532660dff770960047c.zip
hostap-368b1957a61bd0c2932c7532660dff770960047c.tar.gz
hostap-368b1957a61bd0c2932c7532660dff770960047c.tar.bz2
Allow OBSS scan and 20/40 coex reports to non-SME drivers
We enable this feature for non-SME drivers as well if they explicitly indicate need for it. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index f6e106c..a5f60d3 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -1033,9 +1033,14 @@ void sme_sched_obss_scan(struct wpa_supplicant *wpa_s, int enable)
if (!enable)
return;
- if (!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) || ssid == NULL ||
- ssid->mode != IEEE80211_MODE_INFRA)
- return; /* Not using station SME in wpa_supplicant */
+ /*
+ * Schedule OBSS scan if driver is using station SME in wpa_supplicant
+ * or it expects OBSS scan to be performed by wpa_supplicant.
+ */
+ if (!((wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) ||
+ (wpa_s->drv_flags & WPA_DRIVER_FLAGS_OBSS_SCAN)) ||
+ ssid == NULL || ssid->mode != IEEE80211_MODE_INFRA)
+ return;
if (!wpa_s->hw.modes)
return;