summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-03-22 16:27:47 +0000
committersam <sam@FreeBSD.org>2008-03-22 16:27:47 +0000
commit9eb2a09a7ead1fbf9bb1d02c9d5d1b3fc508ec0a (patch)
tree6ca46b9c80a0e12c6b424114b2780fb8fb9f7dd6
parent92ad9709eb4cc7193927c79c168c9138e3b77964 (diff)
downloadFreeBSD-src-9eb2a09a7ead1fbf9bb1d02c9d5d1b3fc508ec0a.zip
FreeBSD-src-9eb2a09a7ead1fbf9bb1d02c9d5d1b3fc508ec0a.tar.gz
(finally) add the hal status to the diagnostic generated after
a failed ath_hal_reset call MFC after: 3 days
-rw-r--r--sys/dev/ath/if_ath.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 1e30474..fd02770 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -4968,9 +4968,10 @@ ath_chan_set(struct ath_softc *sc, struct ieee80211_channel *chan)
ath_stoprecv(sc); /* turn off frame recv */
if (!ath_hal_reset(ah, sc->sc_opmode, &hchan, AH_TRUE, &status)) {
if_printf(ic->ic_ifp, "%s: unable to reset "
- "channel %u (%u Mhz, flags 0x%x hal flags 0x%x)\n",
- __func__, ieee80211_chan2ieee(ic, chan),
- chan->ic_freq, chan->ic_flags, hchan.channelFlags);
+ "channel %u (%u Mhz, flags 0x%x hal flags 0x%x), "
+ "hal status %u\n", __func__,
+ ieee80211_chan2ieee(ic, chan), chan->ic_freq,
+ chan->ic_flags, hchan.channelFlags, status);
return EIO;
}
sc->sc_curchan = hchan;
OpenPOWER on IntegriCloud