ath5k: better beacon timer calculation
authorBruno Randolf <bruno@thinktube.com>
Sat, 19 Jan 2008 09:17:59 +0000 (18:17 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:10:51 +0000 (15:10 -0800)
commit9804b98d57f9b3b02a8906b0b45f461ce0c08428
tree6221cc08c4e9a71f45296fc9862f6e137d0712be
parente535c1ac7e431f85e9c8ead6dbc977a1e1906736
ath5k: better beacon timer calculation

update ath5k_beacon_update_timers() for better beacon timer calculation in a
variety of situations. most important is the possibility to call it with the
timestamp of a received beacon, when we detected that a HW merge has happened
and we need to reconfigure the beacon timers based on that.

we call this from the mac80211 callback reset_tsf now instead of beacon_update,
and there will be more use of it in the next patch.

drivers/net/wireless/ath5k/base.c:      Changes-licensed-under: 3-Clause-BSD

Signed-off-by: Bruno Randolf <bruno@thinktube.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/base.c