ath9k: Print hw reset failure status as signed int
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
5bb644a0fd
commit
6b45784fbe
@@ -280,7 +280,7 @@ int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw,
|
|||||||
if (r) {
|
if (r) {
|
||||||
DPRINTF(sc, ATH_DBG_FATAL,
|
DPRINTF(sc, ATH_DBG_FATAL,
|
||||||
"Unable to reset channel (%u Mhz) "
|
"Unable to reset channel (%u Mhz) "
|
||||||
"reset status %u\n",
|
"reset status %d\n",
|
||||||
channel->center_freq, r);
|
channel->center_freq, r);
|
||||||
spin_unlock_bh(&sc->sc_resetlock);
|
spin_unlock_bh(&sc->sc_resetlock);
|
||||||
return r;
|
return r;
|
||||||
@@ -1094,7 +1094,7 @@ void ath_radio_enable(struct ath_softc *sc)
|
|||||||
if (r) {
|
if (r) {
|
||||||
DPRINTF(sc, ATH_DBG_FATAL,
|
DPRINTF(sc, ATH_DBG_FATAL,
|
||||||
"Unable to reset channel %u (%uMhz) ",
|
"Unable to reset channel %u (%uMhz) ",
|
||||||
"reset status %u\n",
|
"reset status %d\n",
|
||||||
channel->center_freq, r);
|
channel->center_freq, r);
|
||||||
}
|
}
|
||||||
spin_unlock_bh(&sc->sc_resetlock);
|
spin_unlock_bh(&sc->sc_resetlock);
|
||||||
@@ -1146,7 +1146,7 @@ void ath_radio_disable(struct ath_softc *sc)
|
|||||||
if (r) {
|
if (r) {
|
||||||
DPRINTF(sc, ATH_DBG_FATAL,
|
DPRINTF(sc, ATH_DBG_FATAL,
|
||||||
"Unable to reset channel %u (%uMhz) "
|
"Unable to reset channel %u (%uMhz) "
|
||||||
"reset status %u\n",
|
"reset status %d\n",
|
||||||
channel->center_freq, r);
|
channel->center_freq, r);
|
||||||
}
|
}
|
||||||
spin_unlock_bh(&sc->sc_resetlock);
|
spin_unlock_bh(&sc->sc_resetlock);
|
||||||
@@ -1709,7 +1709,7 @@ int ath_reset(struct ath_softc *sc, bool retry_tx)
|
|||||||
r = ath9k_hw_reset(ah, sc->sc_ah->curchan, false);
|
r = ath9k_hw_reset(ah, sc->sc_ah->curchan, false);
|
||||||
if (r)
|
if (r)
|
||||||
DPRINTF(sc, ATH_DBG_FATAL,
|
DPRINTF(sc, ATH_DBG_FATAL,
|
||||||
"Unable to reset hardware; reset status %u\n", r);
|
"Unable to reset hardware; reset status %d\n", r);
|
||||||
spin_unlock_bh(&sc->sc_resetlock);
|
spin_unlock_bh(&sc->sc_resetlock);
|
||||||
|
|
||||||
if (ath_startrecv(sc) != 0)
|
if (ath_startrecv(sc) != 0)
|
||||||
@@ -2001,7 +2001,7 @@ static int ath9k_start(struct ieee80211_hw *hw)
|
|||||||
r = ath9k_hw_reset(sc->sc_ah, init_channel, false);
|
r = ath9k_hw_reset(sc->sc_ah, init_channel, false);
|
||||||
if (r) {
|
if (r) {
|
||||||
DPRINTF(sc, ATH_DBG_FATAL,
|
DPRINTF(sc, ATH_DBG_FATAL,
|
||||||
"Unable to reset hardware; reset status %u "
|
"Unable to reset hardware; reset status %d "
|
||||||
"(freq %u MHz)\n", r,
|
"(freq %u MHz)\n", r,
|
||||||
curchan->center_freq);
|
curchan->center_freq);
|
||||||
spin_unlock_bh(&sc->sc_resetlock);
|
spin_unlock_bh(&sc->sc_resetlock);
|
||||||
|
@@ -1070,7 +1070,7 @@ void ath_drain_all_txq(struct ath_softc *sc, bool retry_tx)
|
|||||||
r = ath9k_hw_reset(ah, sc->sc_ah->curchan, true);
|
r = ath9k_hw_reset(ah, sc->sc_ah->curchan, true);
|
||||||
if (r)
|
if (r)
|
||||||
DPRINTF(sc, ATH_DBG_FATAL,
|
DPRINTF(sc, ATH_DBG_FATAL,
|
||||||
"Unable to reset hardware; reset status %u\n",
|
"Unable to reset hardware; reset status %d\n",
|
||||||
r);
|
r);
|
||||||
spin_unlock_bh(&sc->sc_resetlock);
|
spin_unlock_bh(&sc->sc_resetlock);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user