Skip to contentSkip to conversation

mac80211: do not send duplicate data frames to the cooked monitor interface

PATCH New Felix Fietkau 1 participant 1 message Feb 4, 2011 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: do not send duplicate data frames to the cooked monitor interface

I can't think of a valid use case for this aside from debugging (which can also be done with a real monitor interface), and dropping these frames saves some precious CPU cycles.

---
 net/mac80211/rx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/mac80211/rx.c +1 -1
index 7185c93..65bc1f4 100644
@@ -815,7 +815,7 @@ ieee80211_rx_h_check(struct ieee80211_rx_data *rx)
 				rx->local->dot11FrameDuplicateCount++;
 				rx->sta->num_duplicates++;
 			}
-			return RX_DROP_MONITOR;
+			return RX_DROP_UNUSABLE;
 		} else
 			rx->sta->last_seq_ctrl[rx->queue] = hdr->seq_ctrl;
 	}
Signature · 1 line
1.7.3.2