| Index: chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/main.c
|
| diff --git a/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/main.c b/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/main.c
|
| index 3caa32316e7b4567c5cbb7372aef8330b8d2a747..2864fdb6d6dc74c50da3b597dc8ae461d98aebcb 100644
|
| --- a/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/main.c
|
| +++ b/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/main.c
|
| @@ -257,9 +257,11 @@ int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw,
|
| if (!(sc->sc_flags & (SC_OP_OFFCHANNEL | SC_OP_SCANNING))) {
|
| ath_start_ani(common);
|
| ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0);
|
| - ath_beacon_config(sc, NULL);
|
| }
|
|
|
| + if (!(sc->sc_flags & (SC_OP_OFFCHANNEL)))
|
| + ath_beacon_config(sc, NULL);
|
| +
|
| ps_restore:
|
| ath9k_ps_restore(sc);
|
| return r;
|
| @@ -951,7 +953,7 @@ int ath_reset(struct ath_softc *sc, bool retry_tx)
|
|
|
| ath_update_txpow(sc);
|
|
|
| - if (sc->sc_flags & SC_OP_BEACONS)
|
| + if ((sc->sc_flags & SC_OP_BEACONS) || !(sc->sc_flags & (SC_OP_OFFCHANNEL)))
|
| ath_beacon_config(sc, NULL); /* restart beacons */
|
|
|
| ath9k_hw_set_interrupts(ah, ah->imask);
|
|
|