aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bwn
diff options
context:
space:
mode:
authorLandon J. Fuller <landonf@FreeBSD.org>2018-02-13 20:07:40 +0000
committerLandon J. Fuller <landonf@FreeBSD.org>2018-02-13 20:07:40 +0000
commit0f18e6f6d6993847e77a9b4ba2b98710ffe2e922 (patch)
tree8cec7963f164fedf8c57893b914f1fe584542fc8 /sys/dev/bwn
parent6026dcd7ca888f3433f4df34ede69a77c1eb7701 (diff)
Notes
Diffstat (limited to 'sys/dev/bwn')
-rw-r--r--sys/dev/bwn/if_bwn.c6
-rw-r--r--sys/dev/bwn/if_bwn_debug.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c
index 5f48cf3dc377..0e78bc936fea 100644
--- a/sys/dev/bwn/if_bwn.c
+++ b/sys/dev/bwn/if_bwn.c
@@ -5983,7 +5983,6 @@ bwn_rxeof(struct bwn_mac *mac, struct mbuf *m, const void *_rxhdr)
int padding, rate, rssi = 0, noise = 0, type;
uint16_t phytype, phystat0, phystat3, chanstat;
unsigned char *mp = mtod(m, unsigned char *);
- static int rx_mac_dec_rpt = 0;
BWN_ASSERT_LOCKED(sc);
@@ -6032,11 +6031,12 @@ bwn_rxeof(struct bwn_mac *mac, struct mbuf *m, const void *_rxhdr)
}
wh = mtod(m, struct ieee80211_frame_min *);
- if (macstat & BWN_RX_MAC_DEC && rx_mac_dec_rpt++ < 50)
- device_printf(sc->sc_dev,
+ if (macstat & BWN_RX_MAC_DEC) {
+ DPRINTF(sc, BWN_DEBUG_HWCRYPTO,
"RX decryption attempted (old %d keyidx %#x)\n",
BWN_ISOLDFMT(mac),
(macstat & BWN_RX_MAC_KEYIDX) >> BWN_RX_MAC_KEYIDX_SHIFT);
+ }
if (phystat0 & BWN_RX_PHYST0_OFDM)
rate = bwn_plcp_get_ofdmrate(mac, plcp,
diff --git a/sys/dev/bwn/if_bwn_debug.h b/sys/dev/bwn/if_bwn_debug.h
index d7a636d21e59..f2614f17d648 100644
--- a/sys/dev/bwn/if_bwn_debug.h
+++ b/sys/dev/bwn/if_bwn_debug.h
@@ -53,6 +53,7 @@ enum {
BWN_DEBUG_XMIT_POWER = 0x00020000,
BWN_DEBUG_PHY = 0x00040000,
BWN_DEBUG_EEPROM = 0x00080000,
+ BWN_DEBUG_HWCRYPTO = 0x00100000, /* HW crypto */
BWN_DEBUG_FATAL = 0x80000000, /* fatal errors */
BWN_DEBUG_ANY = 0xffffffff
};