aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath.h2
-rw-r--r--drivers/net/wireless/ath/ath9k/recv.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h
index dd78ad13ea0..272dfef2545 100644
--- a/drivers/net/wireless/ath/ath.h
+++ b/drivers/net/wireless/ath/ath.h
@@ -267,6 +267,7 @@ enum ATH_DEBUG {
267 rtn; \ 267 rtn; \
268}) 268})
269#define ATH_DBG_WARN(foo, arg...) WARN(foo, arg) 269#define ATH_DBG_WARN(foo, arg...) WARN(foo, arg)
270#define ATH_DBG_WARN_ON_ONCE(foo) WARN_ON_ONCE(foo)
270 271
271#else 272#else
272 273
@@ -277,6 +278,7 @@ ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask,
277 return 0; 278 return 0;
278} 279}
279#define ATH_DBG_WARN(foo, arg...) do {} while (0) 280#define ATH_DBG_WARN(foo, arg...) do {} while (0)
281#define ATH_DBG_WARN_ON_ONCE(foo) do {} while (0)
280 282
281#endif /* CONFIG_ATH_DEBUG */ 283#endif /* CONFIG_ATH_DEBUG */
282 284
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index 70f3fa69c9a..3f8b2e32f36 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -528,8 +528,12 @@ bool ath_stoprecv(struct ath_softc *sc)
528 sc->rx.rxlink = NULL; 528 sc->rx.rxlink = NULL;
529 spin_unlock_bh(&sc->rx.rxbuflock); 529 spin_unlock_bh(&sc->rx.rxbuflock);
530 530
531 ATH_DBG_WARN(!stopped, "Could not stop RX, we could be " 531 if (unlikely(!stopped)) {
532 "confusing the DMA engine when we start RX up\n"); 532 ath_err(ath9k_hw_common(sc->sc_ah),
533 "Could not stop RX, we could be "
534 "confusing the DMA engine when we start RX up\n");
535 ATH_DBG_WARN_ON_ONCE(!stopped);
536 }
533 return stopped; 537 return stopped;
534} 538}
535 539