svn commit: r282395 - head/sys/dev/wpi
Adrian Chadd
adrian at FreeBSD.org
Sun May 3 23:35:12 UTC 2015
Author: adrian
Date: Sun May 3 23:35:11 2015
New Revision: 282395
URL: https://svnweb.freebsd.org/changeset/base/282395
Log:
Do not include WPI_START_SCAN event processing into non-debug builds.
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:34:24 2015 (r282394)
+++ head/sys/dev/wpi/if_wpi.c Sun May 3 23:35:11 2015 (r282395)
@@ -2218,19 +2218,21 @@ wpi_notif_intr(struct wpi_softc *sc)
}
break;
}
+#ifdef WPI_DEBUG
case WPI_START_SCAN:
{
bus_dmamap_sync(sc->rxq.data_dmat, data->map,
BUS_DMASYNC_POSTREAD);
-#ifdef WPI_DEBUG
+
struct wpi_start_scan *scan =
(struct wpi_start_scan *)(desc + 1);
DPRINTF(sc, WPI_DEBUG_SCAN,
"%s: scanning channel %d status %x\n",
__func__, scan->chan, le32toh(scan->status));
-#endif
+
break;
}
+#endif
case WPI_STOP_SCAN:
{
bus_dmamap_sync(sc->rxq.data_dmat, data->map,
More information about the svn-src-all
mailing list