From patchwork Thu Jan 12 10:33:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Ashok Powar X-Patchwork-Id: 135616 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 956F6B6EF1 for ; Thu, 12 Jan 2012 21:34:23 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 41FB99C1B4; Thu, 12 Jan 2012 05:34:19 -0500 (EST) 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 aTgmn01QKI2Z; Thu, 12 Jan 2012 05:34:19 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id DC37A9C1C1; Thu, 12 Jan 2012 05:34:02 -0500 (EST) 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 7D78B9C1BE for ; Thu, 12 Jan 2012 05:34:01 -0500 (EST) 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 Ecy0YvRyoO8M for ; Thu, 12 Jan 2012 05:33:56 -0500 (EST) Received: from na3sys009aog104.obsmtp.com (na3sys009aog104.obsmtp.com [74.125.149.73]) by maxx.maxx.shmoo.com (Postfix) with SMTP id 7F97D9C145 for ; Thu, 12 Jan 2012 05:33:56 -0500 (EST) Received: from MSI-MTA.marvell.com ([65.219.4.132]) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKTw63Ez3Yl4+osC+igZwwUizGpbXNlb0V@postini.com; Thu, 12 Jan 2012 02:33:56 PST Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 12 Jan 2012 02:33:53 -0800 Received: from hertz.marvell.com (unknown [10.31.131.207]) by maili.marvell.com (Postfix) with ESMTP id 519284E4BC; Thu, 12 Jan 2012 02:33:53 -0800 (PST) Date: Thu, 12 Jan 2012 16:03:04 +0530 From: Yogesh Ashok Powar To: "j@w1.fi" Subject: [RFC 2/2] hostapd: Subscribe management frames for WPA_IF_AP_BSS types Message-ID: <20120112103259.GA19250@hertz.marvell.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 12 Jan 2012 10:33:54.0037 (UTC) FILETIME=[AE943A50:01CCD115] Cc: "hostap@shmoo.com" 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 In multiple BSSes scenario for the drivers that dont use monitor interface and does not implement AP_SME, RX MGMT frame subscription happens only for the default bss (first_bss). Subscribing for RX MGMT frames for such BSSes. Signed-off-by: Yogesh Ashok Powar --- src/drivers/driver_nl80211.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 194a752..c4119e3 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -7782,6 +7782,10 @@ static int wpa_driver_nl80211_if_add(void *priv, enum wpa_driver_if_type type, if (drv_priv) *drv_priv = new_bss; nl80211_init_bss(new_bss); + + /* Subscribe management frames for this WPA_IF_AP_BSS */ + if (nl80211_setup_ap(new_bss)) + return -1; } #endif /* HOSTAPD */