mac80211: calculate beacon loss time accurately
authorFelix Fietkau <nbd@openwrt.org>
Fri, 19 Nov 2010 21:55:38 +0000 (22:55 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Nov 2010 21:19:34 +0000 (16:19 -0500)
commit7ccc8bd7593634d827e8bc55898a5038e29848b5
treec01c231a2f7448be34796c4c11358ffec42225aa
parentc8a7972c3b3633bf90daf50b135665d8ca4838c4
mac80211: calculate beacon loss time accurately

Instead of using a fixed 2 second timeout, calculate beacon loss interval
from the advertised beacon interval and a frame count.  With this beacon
loss happens after N (default 7) consecutive frames are missed which
for a typical setup (100TU beacon interval) is ~700ms (or ~1/3 previous).

Signed-off-by: Sam Leffler <sleffler@chromium.org>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c