From patchwork Wed Oct 31 09:24:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: allow OBSS scan and 20/40 coex reports to non-SME drivers Date: Tue, 30 Oct 2012 23:24:07 -0000 From: Amitkumar Karwar X-Patchwork-Id: 195776 Message-Id: <5FF020A1CFFEEC49BD1E09530C4FF59506A25A0D0F@SC-VEXCH1.marvell.com> To: "'hostap@lists.shmoo.com'" Hello, I assume that 20-40 coex is a separate feature. Drivers not using SME in wpa_supplicant should also be able to use it. Hence SME capability check is removed in below patch. The patch has been tested with mwifiex driver. Please let me know if I am missing something. Thanks, Amitkumar Karwar -----Original Message----- From: Amitkumar Karwar Sent: Friday, October 05, 2012 2:06 PM To: 'hostap@lists.shmoo.com' Subject: [PATCH] allow OBSS scan and 20/40 coex reports to non-SME drivers From: Amitkumar Karwar Some nl80211 based non-SME drivers (ex. mwifiex) are capable of receiving management frames prepared in wpa_supplicant. Hence the check for WPA_DRIVER_FLAGS_SME flag is removed so that they can use 20/40 coex feature. Tested-by: Amitkumar Karwar Signed-off-by: Amitkumar Karwar --- wpa_supplicant/sme.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index 02c44d4..7ee8b6e 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -976,9 +976,8 @@ 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 */ + if (ssid == NULL || ssid->mode != IEEE80211_MODE_INFRA) + return; if (!wpa_s->hw.modes) return;