|
@@ -464,7 +464,7 @@ static int ieee80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
|
|
pos += 8;
|
|
pos += 8;
|
|
|
|
|
|
if (tkip_replay_check(iv32, iv16, tkey->rx_iv32, tkey->rx_iv16)) {
|
|
if (tkip_replay_check(iv32, iv16, tkey->rx_iv32, tkey->rx_iv16)) {
|
|
- if (net_ratelimit()) {
|
|
|
|
|
|
+ if (ieee80211_ratelimit_debug(IEEE80211_DL_DROP)) {
|
|
IEEE80211_DEBUG_DROP("TKIP: replay detected: STA=%s"
|
|
IEEE80211_DEBUG_DROP("TKIP: replay detected: STA=%s"
|
|
" previous TSC %08x%04x received TSC "
|
|
" previous TSC %08x%04x received TSC "
|
|
"%08x%04x\n", print_mac(mac, hdr->addr2),
|
|
"%08x%04x\n", print_mac(mac, hdr->addr2),
|
|
@@ -504,7 +504,7 @@ static int ieee80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
|
|
* it needs to be recalculated for the next packet. */
|
|
* it needs to be recalculated for the next packet. */
|
|
tkey->rx_phase1_done = 0;
|
|
tkey->rx_phase1_done = 0;
|
|
}
|
|
}
|
|
- if (net_ratelimit()) {
|
|
|
|
|
|
+ if (ieee80211_ratelimit_debug(IEEE80211_DL_DROP)) {
|
|
IEEE80211_DEBUG_DROP("TKIP: ICV error detected: STA="
|
|
IEEE80211_DEBUG_DROP("TKIP: ICV error detected: STA="
|
|
"%s\n", print_mac(mac, hdr->addr2));
|
|
"%s\n", print_mac(mac, hdr->addr2));
|
|
}
|
|
}
|