aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index daa3c9feca66..ef298f41ab4a 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -900,8 +900,7 @@ void ath_radio_enable(struct ath_softc *sc, struct ieee80211_hw *hw)
900 ath_update_txpow(sc); 900 ath_update_txpow(sc);
901 if (ath_startrecv(sc) != 0) { 901 if (ath_startrecv(sc) != 0) {
902 ath_err(common, "Unable to restart recv logic\n"); 902 ath_err(common, "Unable to restart recv logic\n");
903 spin_unlock_bh(&sc->sc_pcu_lock); 903 goto out;
904 return;
905 } 904 }
906 if (sc->sc_flags & SC_OP_BEACONS) 905 if (sc->sc_flags & SC_OP_BEACONS)
907 ath_beacon_config(sc, NULL); /* restart beacons */ 906 ath_beacon_config(sc, NULL); /* restart beacons */
@@ -915,6 +914,7 @@ void ath_radio_enable(struct ath_softc *sc, struct ieee80211_hw *hw)
915 ath9k_hw_set_gpio(ah, ah->led_pin, 0); 914 ath9k_hw_set_gpio(ah, ah->led_pin, 0);
916 915
917 ieee80211_wake_queues(hw); 916 ieee80211_wake_queues(hw);
917out:
918 spin_unlock_bh(&sc->sc_pcu_lock); 918 spin_unlock_bh(&sc->sc_pcu_lock);
919 919
920 ath9k_ps_restore(sc); 920 ath9k_ps_restore(sc);