[PATCH] ieee80211: Drop and count duplicate data frames to remove 'replay detected' log messages
In the SoftMAC version of the IEEE 802.11 stack, not all duplicate messages are detected. For the most part, there is no difficulty; however for TKIP and CCMP encryption, the duplicates result in a "replay detected" log message where the received and previous values of the TSC are identical. This change adds a new variable to the ieee80211_device structure that holds the 'seq_ctl' value for the previous frame. When a new frame repeats the value, the frame is dropped and the appropriate counter is incremented. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
Jeff Garzik
parent
42a4cf9576
commit
837925df02
@@ -478,6 +478,11 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
|
||||
goto rx_exit;
|
||||
}
|
||||
#endif
|
||||
/* drop duplicate 802.11 retransmissions (IEEE 802.11 Chap. 9.29) */
|
||||
if (sc == ieee->prev_seq_ctl)
|
||||
goto rx_dropped;
|
||||
else
|
||||
ieee->prev_seq_ctl = sc;
|
||||
|
||||
/* Data frame - extract src/dst addresses */
|
||||
if (skb->len < IEEE80211_3ADDR_LEN)
|
||||
|
Reference in New Issue
Block a user