Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1f93314 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

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.

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8e546104
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -815,7 +815,7 @@ ieee80211_rx_h_check(struct ieee80211_rx_data *rx)
				rx->local->dot11FrameDuplicateCount++;
				rx->local->dot11FrameDuplicateCount++;
				rx->sta->num_duplicates++;
				rx->sta->num_duplicates++;
			}
			}
			return RX_DROP_MONITOR;
			return RX_DROP_UNUSABLE;
		} else
		} else
			rx->sta->last_seq_ctrl[rx->queue] = hdr->seq_ctrl;
			rx->sta->last_seq_ctrl[rx->queue] = hdr->seq_ctrl;
	}
	}