The branch main has been updated by adrian:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f53137556059764f5c028880d09d3c234877d37f

commit f53137556059764f5c028880d09d3c234877d37f
Author:     Adrian Chadd <[email protected]>
AuthorDate: 2025-09-14 19:36:18 +0000
Commit:     Adrian Chadd <[email protected]>
CommitDate: 2025-10-04 02:54:30 +0000

    iwx: add some missed beacon debugging
    
    I'm seeing random disconnects in iwx without any useful information
    as to why.  I'll start by adding missed beacon debugging here; hopefully
    they're generally useful.
    
    Differential Revision:   https://reviews.freebsd.org/D52524
    Reviewed by:    bz
---
 sys/dev/iwx/if_iwx.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/sys/dev/iwx/if_iwx.c b/sys/dev/iwx/if_iwx.c
index 8422fcb787c3..5be7f2755598 100644
--- a/sys/dev/iwx/if_iwx.c
+++ b/sys/dev/iwx/if_iwx.c
@@ -4890,11 +4890,19 @@ iwx_rx_bmiss(struct iwx_softc *sc, struct iwx_rx_packet 
*pkt,
        bus_dmamap_sync(sc->rxq.data_dmat, data->map,
            BUS_DMASYNC_POSTREAD);
 
+       IWX_DPRINTF(sc, IWX_DEBUG_BEACON,
+           "%s: mac_id=%u, cmslrx=%u, cmb=%u, neb=%d, nrb=%u\n",
+           __func__,
+           le32toh(mbn->mac_id),
+           le32toh(mbn->consec_missed_beacons_since_last_rx),
+           le32toh(mbn->consec_missed_beacons),
+           le32toh(mbn->num_expected_beacons),
+           le32toh(mbn->num_recvd_beacons));
+
        missed = le32toh(mbn->consec_missed_beacons_since_last_rx);
        if (missed > vap->iv_bmissthreshold) {
                ieee80211_beacon_miss(ic);
        }
-
 }
 
 static int
@@ -8985,10 +8993,10 @@ iwx_rx_pkt(struct iwx_softc *sc, struct iwx_rx_data 
*data, struct mbuf *ml)
                        break;
 
                case IWX_MISSED_BEACONS_NOTIFICATION:
+                       IWX_DPRINTF(sc, IWX_DEBUG_BEACON,
+                           "%s: IWX_MISSED_BEACONS_NOTIFICATION\n",
+                           __func__);
                        iwx_rx_bmiss(sc, pkt, data);
-                       DPRINTF(("%s: IWX_MISSED_BEACONS_NOTIFICATION\n",
-                           __func__));
-                       ieee80211_beacon_miss(ic);
                        break;
 
                case IWX_MFUART_LOAD_NOTIFICATION:

Reply via email to