From patchwork Thu Nov 29 23:18:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1823251 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id D3DAEDF23A for ; Thu, 29 Nov 2012 23:19:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753115Ab2K2XTM (ORCPT ); Thu, 29 Nov 2012 18:19:12 -0500 Received: from ht1.myhostedexchange.com ([69.50.2.37]:24599 "EHLO ht1.hostedexchange.local" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751493Ab2K2XTM (ORCPT ); Thu, 29 Nov 2012 18:19:12 -0500 Received: from eagle4.ritirata.org (88.149.249.169) by ht1.hostedexchange.local (172.16.69.39) with Microsoft SMTP Server id 8.3.279.5; Thu, 29 Nov 2012 15:19:04 -0800 From: Antonio Quartulli To: Johannes Berg CC: , Antonio Quartulli Subject: [PATCH] mac80211: allow userspace registration for ProbeReq in IBSS Date: Fri, 30 Nov 2012 00:18:12 +0100 Message-ID: <1354231092-10654-1-git-send-email-antonio@open-mesh.com> X-Mailer: git-send-email 1.8.0 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This change allows userspace to register for ProbeReq on an IBSS interface. However ProbeRequests are not redirected from their normal rx path. Signed-off-by: Antonio Quartulli --- net/mac80211/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 70e8760..1fc8d25 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -474,7 +474,8 @@ ieee80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = { .tx = 0xffff, .rx = BIT(IEEE80211_STYPE_ACTION >> 4) | BIT(IEEE80211_STYPE_AUTH >> 4) | - BIT(IEEE80211_STYPE_DEAUTH >> 4), + BIT(IEEE80211_STYPE_DEAUTH >> 4) | + BIT(IEEE80211_STYPE_PROBE_REQ >> 4), }, [NL80211_IFTYPE_STATION] = { .tx = 0xffff,