summaryrefslogtreecommitdiffstats
path: root/sys/dev/wpi
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-05-03 23:35:11 +0000
committeradrian <adrian@FreeBSD.org>2015-05-03 23:35:11 +0000
commit735a372cff6015ddd6d2084f7c344efca5c9a277 (patch)
tree2f70bdc862f372f9891dce6be87ea3ec3fd96740 /sys/dev/wpi
parent9fe5db5c059f9d2feabd4694fa171aad00bf91af (diff)
downloadFreeBSD-src-735a372cff6015ddd6d2084f7c344efca5c9a277.zip
FreeBSD-src-735a372cff6015ddd6d2084f7c344efca5c9a277.tar.gz
Do not include WPI_START_SCAN event processing into non-debug builds.
PR: kern/197143 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
Diffstat (limited to 'sys/dev/wpi')
-rw-r--r--sys/dev/wpi/if_wpi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c
index d1cc492..eb351e8 100644
--- a/sys/dev/wpi/if_wpi.c
+++ b/sys/dev/wpi/if_wpi.c
@@ -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,
OpenPOWER on IntegriCloud