]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "ath9k: Calculate sleep duration"
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Thu, 11 Sep 2014 13:35:48 +0000 (19:05 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 11 Sep 2014 18:17:20 +0000 (14:17 -0400)
commit618fa9c9c8742b972527fb9384f111881123fe51
tree1eeaa4174e1c1379a99ccf3305f17a36e6d50b56
parent8c55198738fe71aa9d78e5593a3c42710a1f28eb
Revert "ath9k: Calculate sleep duration"

This reverts commit 654d1df2e7c79f24a057c0107b2db8c33809f022.

ath9k_hw_set_sta_beacon_timers() configures AR_TIM_PERIOD with
the beacon interval. Before this commit, the sleepduration was
never greater than the beacon interval. But now, the behavior
has changed. For example, with an AP that uses a beacon interval of 100:

ath: phy9: next beacon 61128704
ath: phy9: beacon period 204800
ath: phy9: DTIM period 204800

If the sleepduration is calculated based on the listen time, then
the bmiss threshold should also be changed since the HW would
be in sleep state for a longer time, but that is not done currently.

To avoid configuring a higher beacon interval based on the sleepduration,
revert to the original behavior. Power consumption is not a
problem since PS is disabled in ath9k anyway.

Cc: stable@vger.kernel.org
Cc: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/common-beacon.c