]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ath9k_hw: remove ah->txpower_indexoffset
authorFelix Fietkau <nbd@openwrt.org>
Sat, 11 Dec 2010 23:51:14 +0000 (00:51 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Dec 2010 20:23:32 +0000 (15:23 -0500)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_mac.c
drivers/net/wireless/ath/ath9k/ar9003_mac.c
drivers/net/wireless/ath/ath9k/hw.h

index f3f9c589158e2c2f5986d88b88b5bcf5bf19c8df..399ab3bb299bca9338649a060a7fa2ac678f7299 100644 (file)
@@ -283,7 +283,6 @@ static void ar9002_hw_set11n_txdesc(struct ath_hw *ah, void *ds,
 {
        struct ar5416_desc *ads = AR5416DESC(ds);
 
-       txPower += ah->txpower_indexoffset;
        if (txPower > 63)
                txPower = 63;
 
index bfba6a2b741ddfadc1c03374374327f5c70a067c..b6e4ee48ef78e2ff539c8f8269352d35ad5818d2 100644 (file)
@@ -322,7 +322,6 @@ static void ar9003_hw_set11n_txdesc(struct ath_hw *ah, void *ds,
        if (txpower > ah->txpower_limit)
                txpower = ah->txpower_limit;
 
-       txpower += ah->txpower_indexoffset;
        if (txpower > 63)
                txpower = 63;
 
index 0db0ef69b4be3b53f4a09ec4d85393acf92e4e17..c20e0476ee449d9a995bd6edbfe0fc9c14742865 100644 (file)
@@ -762,7 +762,6 @@ struct ath_hw {
        u32 *bank6Temp;
 
        u8 txpower_limit;
-       int16_t txpower_indexoffset;
        int coverage_class;
        u32 slottime;
        u32 globaltxtimeout;