svn commit: r282393 - head/sys/dev/wpi
Adrian Chadd
adrian at FreeBSD.org
Sun May 3 23:30:05 UTC 2015
Author: adrian
Date: Sun May 3 23:30:04 2015
New Revision: 282393
URL: https://svnweb.freebsd.org/changeset/base/282393
Log:
Add debug output for WPI_BEACON_SENT event.
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios at gmail.com>
Modified:
head/sys/dev/wpi/if_wpi.c
Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c Sun May 3 23:28:54 2015 (r282392)
+++ head/sys/dev/wpi/if_wpi.c Sun May 3 23:30:04 2015 (r282393)
@@ -2150,6 +2150,27 @@ wpi_notif_intr(struct wpi_softc *sc)
break;
}
+#ifdef WPI_DEBUG
+ case WPI_BEACON_SENT:
+ {
+ struct wpi_tx_stat *stat =
+ (struct wpi_tx_stat *)(desc + 1);
+ uint64_t *tsf = (uint64_t *)(stat + 1);
+ uint32_t *mode = (uint32_t *)(tsf + 1);
+
+ bus_dmamap_sync(sc->rxq.data_dmat, data->map,
+ BUS_DMASYNC_POSTREAD);
+
+ DPRINTF(sc, WPI_DEBUG_BEACON,
+ "beacon sent: rts %u, ack %u, btkill %u, rate %u, "
+ "duration %u, status %x, tsf %ju, mode %x\n",
+ stat->rtsfailcnt, stat->ackfailcnt,
+ stat->btkillcnt, stat->rate, le32toh(stat->duration),
+ le32toh(stat->status), *tsf, *mode);
+
+ break;
+ }
+#endif
case WPI_UC_READY:
{
struct wpi_ucode_info *uc =
More information about the svn-src-head
mailing list