Author: adrian
Date: Fri Jun  5 00:14:02 2020
New Revision: 361812
URL: https://svnweb.freebsd.org/changeset/base/361812

Log:
  [net80211] Print out a bad PN in both hex and decimal.
  
  I've been using this to visually identify when I'm getting corrupted PNs
  from the hardware. :(

Modified:
  head/sys/net80211/ieee80211_freebsd.c

Modified: head/sys/net80211/ieee80211_freebsd.c
==============================================================================
--- head/sys/net80211/ieee80211_freebsd.c       Fri Jun  5 00:11:44 2020        
(r361811)
+++ head/sys/net80211/ieee80211_freebsd.c       Fri Jun  5 00:14:02 2020        
(r361812)
@@ -789,8 +789,11 @@ ieee80211_notify_replay_failure(struct ieee80211vap *v
        struct ifnet *ifp = vap->iv_ifp;
 
        IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2,
-           "%s replay detected tid %d <rsc %ju, csc %ju, keyix %u rxkeyix %u>",
-           k->wk_cipher->ic_name, tid, (intmax_t) rsc,
+           "%s replay detected tid %d <rsc %ju (%jx), csc %ju (%jx), keyix %u 
rxkeyix %u>",
+           k->wk_cipher->ic_name, tid,
+           (intmax_t) rsc,
+           (intmax_t) rsc,
+           (intmax_t) k->wk_keyrsc[tid],
            (intmax_t) k->wk_keyrsc[tid],
            k->wk_keyix, k->wk_rxkeyix);
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to