ath9k: backport the ANI listen time fix from trunk
[openwrt-10.03/.git] / package / mac80211 / patches / 550-ath9k_fix_ani_listen_time.patch
diff --git a/package/mac80211/patches/550-ath9k_fix_ani_listen_time.patch b/package/mac80211/patches/550-ath9k_fix_ani_listen_time.patch
new file mode 100644 (file)
index 0000000..92b08eb
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/ath/ath9k/ani.c
++++ b/drivers/net/wireless/ath/ath9k/ani.c
+@@ -544,7 +544,7 @@ static u8 ath9k_hw_chan_2_clockrate_mhz(
+       if (conf_is_ht40(conf))
+               return clockrate * 2;
+-      return clockrate * 2;
++      return clockrate;
+ }
+ static int32_t ath9k_hw_ani_get_listen_time(struct ath_hw *ah)