diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-11-19 21:55:38 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-24 21:19:34 (GMT) |
commit | 7ccc8bd7593634d827e8bc55898a5038e29848b5 (patch) | |
tree | c01c231a2f7448be34796c4c11358ffec42225aa /net/mac80211/ieee80211_i.h | |
parent | c8a7972c3b3633bf90daf50b135665d8ca4838c4 (diff) | |
download | linux-fsl-qoriq-7ccc8bd7593634d827e8bc55898a5038e29848b5.tar.xz |
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>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 3598abf..ff7bc30 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -349,6 +349,7 @@ struct ieee80211_if_managed { struct work_struct chswitch_work; struct work_struct beacon_connection_loss_work; + unsigned long beacon_timeout; unsigned long probe_timeout; int probe_send_count; |