diff options
author | Andrey Yurovsky <andrey@cozybit.com> | 2008-10-23 16:10:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:56 -0400 |
commit | 4393dce9402c58744433c7a4f3931e17ddde4fb4 (patch) | |
tree | f42a761b216140a2f5ae69e58504268220d6d0ad | |
parent | f3e63db2e5998bf01852c72d8fa3d8cf988fb6cd (diff) |
mac80211: allow all interfaces types to handle RX action frames
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>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/rx.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index af6ce1064697..c4c95f1db605 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1541,14 +1541,6 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx) | |||
1541 | if (len < IEEE80211_MIN_ACTION_SIZE + 1) | 1541 | if (len < IEEE80211_MIN_ACTION_SIZE + 1) |
1542 | return RX_DROP_MONITOR; | 1542 | return RX_DROP_MONITOR; |
1543 | 1543 | ||
1544 | /* | ||
1545 | * FIXME: revisit this, I'm sure we should handle most | ||
1546 | * of these frames in other modes as well! | ||
1547 | */ | ||
1548 | if (sdata->vif.type != NL80211_IFTYPE_STATION && | ||
1549 | sdata->vif.type != NL80211_IFTYPE_ADHOC) | ||
1550 | return RX_CONTINUE; | ||
1551 | |||
1552 | switch (mgmt->u.action.category) { | 1544 | switch (mgmt->u.action.category) { |
1553 | case WLAN_CATEGORY_BACK: | 1545 | case WLAN_CATEGORY_BACK: |
1554 | switch (mgmt->u.action.u.addba_req.action_code) { | 1546 | switch (mgmt->u.action.u.addba_req.action_code) { |