diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2014-09-15 20:13:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-16 16:18:38 -0400 |
commit | 7aefa8aacbd4694db9a7ea7cbff490a1e31c3613 (patch) | |
tree | 2a8a6f1442ca1c60ca02045d369d33e9257b406f /drivers/net/wireless/ath/ath9k/hw.c | |
parent | ce7191526854f79b90bf627c5a8b8993491a3c2b (diff) |
ath9k: do not overwrite ACK timeout estimation
Do not overwrite ACK timeout estimation in ath9k_hw_init_global_settings() if
dynack processing has been enabled
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index e71f824cb040..949d5d6fe56d 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -1055,6 +1055,14 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah) | |||
1055 | ctstimeout += 48 - sifstime - ah->slottime; | 1055 | ctstimeout += 48 - sifstime - ah->slottime; |
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | if (ah->dynack.enabled) { | ||
1059 | acktimeout = ah->dynack.ackto; | ||
1060 | ctstimeout = acktimeout; | ||
1061 | slottime = (acktimeout - 3) / 2; | ||
1062 | } else { | ||
1063 | ah->dynack.ackto = acktimeout; | ||
1064 | } | ||
1065 | |||
1058 | ath9k_hw_set_sifs_time(ah, sifstime); | 1066 | ath9k_hw_set_sifs_time(ah, sifstime); |
1059 | ath9k_hw_setslottime(ah, slottime); | 1067 | ath9k_hw_setslottime(ah, slottime); |
1060 | ath9k_hw_set_ack_timeout(ah, acktimeout); | 1068 | ath9k_hw_set_ack_timeout(ah, acktimeout); |