ath9k: Add workaround to recover from failed channel changes
It looks like channel change may fail in some cases and end up leaving the hardware in state where it cannot transmit any frames. Add a workaround to recover from this state if we detect that wiphy selection is failing due to wiphys not leaving PAUSING state. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
ee166a0e71
commit
7ec3e514d9
@@ -1090,7 +1090,7 @@ fail:
|
||||
/* Rfkill */
|
||||
/*******************/
|
||||
|
||||
static void ath_radio_enable(struct ath_softc *sc)
|
||||
void ath_radio_enable(struct ath_softc *sc)
|
||||
{
|
||||
struct ath_hw *ah = sc->sc_ah;
|
||||
struct ieee80211_channel *channel = sc->hw->conf.channel;
|
||||
@@ -1131,7 +1131,7 @@ static void ath_radio_enable(struct ath_softc *sc)
|
||||
ath9k_ps_restore(sc);
|
||||
}
|
||||
|
||||
static void ath_radio_disable(struct ath_softc *sc)
|
||||
void ath_radio_disable(struct ath_softc *sc)
|
||||
{
|
||||
struct ath_hw *ah = sc->sc_ah;
|
||||
struct ieee80211_channel *channel = sc->hw->conf.channel;
|
||||
|
Reference in New Issue
Block a user