Skip to content

Commit a979954

Browse files
committed
mac80211: drop multicast fragments
These are not permitted by the spec, just drop them. Link: https://lore.kernel.org/r/20210609161305.23def022b750.Ibd6dd3cdce573dae262fcdc47f8ac52b883a9c50@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent f5baf28 commit a979954

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎net/mac80211/rx.c‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,17 +2240,15 @@ ieee80211_rx_h_defragment(struct ieee80211_rx_data *rx)
22402240
sc = le16_to_cpu(hdr->seq_ctrl);
22412241
frag = sc & IEEE80211_SCTL_FRAG;
22422242

2243-
if (is_multicast_ether_addr(hdr->addr1)) {
2244-
I802_DEBUG_INC(rx->local->dot11MulticastReceivedFrameCount);
2245-
goto out_no_led;
2246-
}
2247-
22482243
if (rx->sta)
22492244
cache = &rx->sta->frags;
22502245

22512246
if (likely(!ieee80211_has_morefrags(fc) && frag == 0))
22522247
goto out;
22532248

2249+
if (is_multicast_ether_addr(hdr->addr1))
2250+
return RX_DROP_MONITOR;
2251+
22542252
I802_DEBUG_INC(rx->local->rx_handlers_fragments);
22552253

22562254
if (skb_linearize(rx->skb))
@@ -2376,7 +2374,6 @@ ieee80211_rx_h_defragment(struct ieee80211_rx_data *rx)
23762374

23772375
out:
23782376
ieee80211_led_rx(rx->local);
2379-
out_no_led:
23802377
if (rx->sta)
23812378
rx->sta->rx_stats.packets++;
23822379
return RX_CONTINUE;

0 commit comments

Comments
 (0)