mac80211: rework the current tx power display patch
[openwrt/staging/dedeckeh.git] / package / mac80211 / patches / 521-ath9k_cur_txpower.patch
index 1cc4da23e6d62b26dce45392235041381af21d70..1133cfa6ba581170c06bf95b26b4a35d81427ce1 100644 (file)
@@ -4,7 +4,7 @@
                        return -EINVAL;
                }
  
-+              conf->cur_power_level = sc->curtxpow / 2;
++              hw->cur_power_level = sc->curtxpow / 2;
 +
                /*
                 * The most recent snapshot of channel->noisefloor for the old
@@ -13,7 +13,7 @@
                sc->config.txpowlimit = 2 * conf->power_level;
                ath9k_cmn_update_txpow(ah, sc->curtxpow,
                                       sc->config.txpowlimit, &sc->curtxpow);
-+              conf->cur_power_level = sc->curtxpow / 2;
++              hw->cur_power_level = sc->curtxpow / 2;
        }
  
        mutex_unlock(&sc->mutex);