diff options
author | Marco Porsch <marco.porsch@etit.tu-chemnitz.de> | 2012-12-05 18:04:26 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-12-06 07:58:43 -0500 |
commit | 815b8092bd5242d580038213da9179a5a4f69116 (patch) | |
tree | ee392ce47bfb42b555cdfcba232239e9c096d0d8 /net/mac80211/rx.c | |
parent | 751413eadc8f0c7691a6cbd40a913ef0ae6b2ce4 (diff) |
mac80211: don't drop mesh peering frames from unknown STA
Previously, mesh peering frames from a STA without a station
entry were being dropped.
Mesh Peering Open and other frames (WLAN_CATEGORY_SELF_PROTECTED)
are valid mesh peering frames even if received from a yet unknown
station; the STA entry will be created in mesh_peer_init later.
The problem didn't occur previously since both STAs receive each
other's beacons which created the STA entry. However, this causes
an unnecessary delay and beacons might not be received if either
node is in PS mode.
Signed-off-by: Marco Porsch <marco.porsch@etit.tu-chemnitz.de>
[reword commit log a bit]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index e4ee32748994..580704eba8b8 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -2333,7 +2333,8 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx) | |||
2333 | if (len < IEEE80211_MIN_ACTION_SIZE) | 2333 | if (len < IEEE80211_MIN_ACTION_SIZE) |
2334 | return RX_DROP_UNUSABLE; | 2334 | return RX_DROP_UNUSABLE; |
2335 | 2335 | ||
2336 | if (!rx->sta && mgmt->u.action.category != WLAN_CATEGORY_PUBLIC) | 2336 | if (!rx->sta && mgmt->u.action.category != WLAN_CATEGORY_PUBLIC && |
2337 | mgmt->u.action.category != WLAN_CATEGORY_SELF_PROTECTED) | ||
2337 | return RX_DROP_UNUSABLE; | 2338 | return RX_DROP_UNUSABLE; |
2338 | 2339 | ||
2339 | if (!(status->rx_flags & IEEE80211_RX_RA_MATCH)) | 2340 | if (!(status->rx_flags & IEEE80211_RX_RA_MATCH)) |