aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
authorJavier Cardona <javier@cozybit.com>2011-05-03 19:57:09 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-05-11 14:37:47 -0400
commitd3aaec8ab76c2d604c2ba7332e1338674607597b (patch)
tree436851aa4210a3567642945831854142b4fa9cf6 /net/mac80211/rx.c
parent0778a6a3e56cabdc322755f97ad23ee67efad0f0 (diff)
mac80211: Drop MESH_PLINK category and use new ANA-approved MESH_ACTION
Note: This breaks compatibility with previous mesh protocol instances. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 81241e18f3a4..634f3d97a279 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -495,8 +495,11 @@ ieee80211_rx_mesh_check(struct ieee80211_rx_data *rx)
495 return RX_DROP_MONITOR; 495 return RX_DROP_MONITOR;
496 496
497 if (ieee80211_is_action(hdr->frame_control)) { 497 if (ieee80211_is_action(hdr->frame_control)) {
498 u8 category;
498 mgmt = (struct ieee80211_mgmt *)hdr; 499 mgmt = (struct ieee80211_mgmt *)hdr;
499 if (mgmt->u.action.category != WLAN_CATEGORY_MESH_PLINK) 500 category = mgmt->u.action.category;
501 if (category != WLAN_CATEGORY_MESH_ACTION &&
502 category != WLAN_CATEGORY_SELF_PROTECTED)
500 return RX_DROP_MONITOR; 503 return RX_DROP_MONITOR;
501 return RX_CONTINUE; 504 return RX_CONTINUE;
502 } 505 }
@@ -2205,7 +2208,7 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx)
2205 goto handled; 2208 goto handled;
2206 } 2209 }
2207 break; 2210 break;
2208 case WLAN_CATEGORY_MESH_PLINK: 2211 case WLAN_CATEGORY_MESH_ACTION:
2209 if (!ieee80211_vif_is_mesh(&sdata->vif)) 2212 if (!ieee80211_vif_is_mesh(&sdata->vif))
2210 break; 2213 break;
2211 goto queue; 2214 goto queue;