From patchwork Fri Oct 5 08:35:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitkumar Karwar X-Patchwork-Id: 189448 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 979DB2C0040 for ; Fri, 5 Oct 2012 18:36:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 4E7D59C1AA; Fri, 5 Oct 2012 04:36:04 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sn1ZOx+xVqp9; Fri, 5 Oct 2012 04:36:04 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 34CBB9D29B; Fri, 5 Oct 2012 04:36:00 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 996CD9D29B for ; Fri, 5 Oct 2012 04:35:58 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nlof7-lQYRt3 for ; Fri, 5 Oct 2012 04:35:58 -0400 (EDT) Received: from na3sys009aog128.obsmtp.com (na3sys009aog128.obsmtp.com [74.125.149.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 237519C1AA for ; Fri, 5 Oct 2012 04:35:57 -0400 (EDT) Received: from SC-OWA01.marvell.com ([199.233.58.136]) (using TLSv1) by na3sys009aob128.postini.com ([74.125.148.12]) with SMTP ID DSNKUG6b7YxqjDuH0jw7f1v0Er7fbunDxJcb@postini.com; Fri, 05 Oct 2012 01:35:58 PDT Received: from SC-VEXCH1.marvell.com ([10.93.76.137]) by SC-OWA01.marvell.com ([10.93.76.21]) with mapi; Fri, 5 Oct 2012 01:35:56 -0700 From: Amitkumar Karwar To: "'hostap@lists.shmoo.com'" Date: Fri, 5 Oct 2012 01:35:55 -0700 Subject: [PATCH] allow OBSS scan and 20/40 coex reports to non-SME drivers Thread-Topic: [PATCH] allow OBSS scan and 20/40 coex reports to non-SME drivers Thread-Index: Ac2i1G/IlRzfLIVyQpu0rq4ufbS5RA== Message-ID: <5FF020A1CFFEEC49BD1E09530C4FF59506A25A0CD0@SC-VEXCH1.marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com 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;