2012-11-29 23:19:12

by Antonio Quartulli

[permalink] [raw]
Subject: [PATCH] mac80211: allow userspace registration for ProbeReq in IBSS

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 <[email protected]>
---
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,
--
1.8.0



2012-11-30 12:38:01

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211: allow userspace registration for ProbeReq in IBSS

On Fri, 2012-11-30 at 00:18 +0100, Antonio Quartulli wrote:
> This change allows userspace to register for ProbeReq on an
> IBSS interface.

I guess this is fine, you just have to handle them if you register for
them.

> However ProbeRequests are not redirected from
> their normal rx path.

Well umm so the last sentence is just bogus, I'll delete it.

Applied.

johannes