mac80211: add a maintenance script for upstream backport commits
[openwrt/staging/wigyori.git] / package / kernel / mac80211 / patches / 521-ath9k_cur_txpower.patch
index 83ff465b9753b54aaf1c71fe5975926ab41c8cfe..2ec64ac5e2c7c0d22440fc39ba5409f417b1391e 100644 (file)
@@ -1,7 +1,7 @@
 --- a/drivers/net/wireless/ath/ath9k/main.c
 +++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -310,8 +310,12 @@ static int ath_reset_internal(struct ath
-           (sc->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL))
+@@ -326,8 +326,12 @@ static int ath_reset_internal(struct ath
+           sc->cur_chan->offchannel)
                ath9k_mci_set_txpower(sc, true, false);
  
 -      if (!ath_complete_reset(sc, true))
  
  out:
        spin_unlock_bh(&sc->sc_pcu_lock);
-@@ -1405,6 +1409,7 @@ static int ath9k_config(struct ieee80211
-               sc->config.txpowlimit = 2 * conf->power_level;
+@@ -1470,6 +1474,7 @@ static int ath9k_config(struct ieee80211
+               sc->cur_chan->txpower = 2 * conf->power_level;
                ath9k_cmn_update_txpow(ah, sc->curtxpow,
-                                      sc->config.txpowlimit, &sc->curtxpow);
+                                      sc->cur_chan->txpower, &sc->curtxpow);
 +              hw->cur_power_level = sc->curtxpow / 2;
        }