ath9k: merge a ar93xx ht40 performance fix
authorFelix Fietkau <nbd@openwrt.org>
Mon, 30 Apr 2012 08:20:34 +0000 (08:20 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 30 Apr 2012 08:20:34 +0000 (08:20 +0000)
SVN-Revision: 31540

package/mac80211/patches/300-pending_work.patch

index c702cfeb1c23d82c47733ee957c61dd33f0fe180..eb982d53b1011ca746051997ffa1daa972baddcc 100644 (file)
        REG_RMW_FIELD(ah, AR_PHY_PAPRD_CTRL0_B0,
 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
 +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
+@@ -373,7 +373,7 @@ static void ar9003_hw_spur_ofdm_work(str
+                       else
+                               spur_subchannel_sd = 0;
+-                      spur_freq_sd = (freq_offset << 9) / 11;
++                      spur_freq_sd = ((freq_offset + 10) << 9) / 11;
+               } else {
+                       if (REG_READ_FIELD(ah, AR_PHY_GEN_CTRL,
+@@ -382,7 +382,7 @@ static void ar9003_hw_spur_ofdm_work(str
+                       else
+                               spur_subchannel_sd = 1;
+-                      spur_freq_sd = (freq_offset << 9) / 11;
++                      spur_freq_sd = ((freq_offset - 10) << 9) / 11;
+               }
 @@ -526,22 +526,10 @@ static void ar9003_hw_init_bb(struct ath
         * Value is in 100ns increments.
         */