Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 1/2] mac80211: allow self-protected frame tx without sta
@ 2013-06-21  6:50 Thomas Pedersen
  2013-06-21  6:50 ` [PATCH 2/2] mac80211: initialize power mode for mesh STAs Thomas Pedersen
  2013-06-24 14:00 ` [PATCH 1/2] mac80211: allow self-protected frame tx without sta Johannes Berg
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Pedersen @ 2013-06-21  6:50 UTC (permalink / raw)
  To: Johannes Berg
  Cc: linux-wireless, open80211s, marco, Bob Copeland, Thomas Pedersen

Useful for userspace mesh to authenticate and peer without
a station entry, since both steps may fail anyway.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
---
 net/mac80211/cfg.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 18ba7ed..d6f9823 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2821,7 +2821,8 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
 		    !rcu_access_pointer(sdata->bss->beacon))
 			need_offchan = true;
 		if (!ieee80211_is_action(mgmt->frame_control) ||
-		    mgmt->u.action.category == WLAN_CATEGORY_PUBLIC)
+		    mgmt->u.action.category == WLAN_CATEGORY_PUBLIC ||
+		    mgmt->u.action.category == WLAN_CATEGORY_SELF_PROTECTED)
 			break;
 		rcu_read_lock();
 		sta = sta_info_get(sdata, mgmt->da);
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-24 14:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21  6:50 [PATCH 1/2] mac80211: allow self-protected frame tx without sta Thomas Pedersen
2013-06-21  6:50 ` [PATCH 2/2] mac80211: initialize power mode for mesh STAs Thomas Pedersen
2013-06-24 14:00 ` [PATCH 1/2] mac80211: allow self-protected frame tx without sta Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox