summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc.h
diff options
context:
space:
mode:
authorSujith Manoharan <Sujith.Manoharan@atheros.com>2011-04-13 11:23:44 +0530
committerJohn W. Linville <linville@tuxdriver.com>2011-04-13 15:22:30 -0400
commitb0a6ba983e3663bf256ca2e79d17bb846878cd9e (patch)
treecbe44eca979372ee0e723552c406da55f1d8fb83 /drivers/net/wireless/ath/ath9k/htc.h
parent7d547eb4bb664c5a6b7c8790c2ecb0aec5d15385 (diff)
downloadblackbird-obmc-linux-b0a6ba983e3663bf256ca2e79d17bb846878cd9e.tar.gz
blackbird-obmc-linux-b0a6ba983e3663bf256ca2e79d17bb846878cd9e.zip
ath9k_htc: Fix beacon miss under heavy load
Transmission of beacons becomes erratic when TX load is high, since the latency involved in the generation of a SWBA interrupt on the target to the actual sending of a beacon is quite high for USB devices. Fix this by adjusting the beacon response time. Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h
index a072a9eb3f3e..133fc6dc3929 100644
--- a/drivers/net/wireless/ath/ath9k/htc.h
+++ b/drivers/net/wireless/ath/ath9k/htc.h
@@ -358,6 +358,13 @@ struct ath_led {
#define BSTUCK_THRESHOLD 10
+/*
+ * Adjust these when the max. no of beaconing interfaces is
+ * increased.
+ */
+#define DEFAULT_SWBA_RESPONSE 40 /* in TUs */
+#define MIN_SWBA_RESPONSE 10 /* in TUs */
+
struct htc_beacon_config {
struct ieee80211_vif *bslot[ATH9K_HTC_MAX_BCN_VIF];
u16 beacon_interval;
OpenPOWER on IntegriCloud