Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] mac80211: allow all interfaces types to handle RX action frames
@ 2008-10-23 20:10 Andrey Yurovsky
  2008-10-24  8:42 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Yurovsky @ 2008-10-23 20:10 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes

Eliminate the vif.type check in ieee80211_rx_h_action.  This check is
unnecessary (these action frames can be handled by all interface types) and 
currently prevents, for example, AP interfaces from handling BACK action frames
such as ADDBA and DELBA requests.

Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index a0db162..59bcbb6 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -1552,14 +1552,6 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx)
 	if (len < IEEE80211_MIN_ACTION_SIZE + 1)
 		return RX_DROP_MONITOR;
 
-	/*
-	 * FIXME: revisit this, I'm sure we should handle most
-	 *	  of these frames in other modes as well!
-	 */
-	if (sdata->vif.type != NL80211_IFTYPE_STATION &&
-	    sdata->vif.type != NL80211_IFTYPE_ADHOC)
-		return RX_CONTINUE;
-
 	switch (mgmt->u.action.category) {
 	case WLAN_CATEGORY_BACK:
 		switch (mgmt->u.action.u.addba_req.action_code) {



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

end of thread, other threads:[~2008-10-24  9:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-23 20:10 [PATCH] mac80211: allow all interfaces types to handle RX action frames Andrey Yurovsky
2008-10-24  8:42 ` Johannes Berg

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