diff options
author | Jouni Malinen <j@w1.fi> | 2010-08-27 22:22:00 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-31 14:20:40 -0400 |
commit | 391a200a89bf85bd38f117f34898c24299e3d53d (patch) | |
tree | 9f85575e7d48ed7fb6907816f1c148002796c8d1 /net/mac80211/ieee80211_i.h | |
parent | 3ba06c6fbd651ed3377e584026d1c112b492cc8b (diff) | |
download | blackbird-op-linux-391a200a89bf85bd38f117f34898c24299e3d53d.tar.gz blackbird-op-linux-391a200a89bf85bd38f117f34898c24299e3d53d.zip |
mac80211: Do not generate CQM events based on first Beacon frames
The signal strength value in a single RX frame is not that reliable,
so it is better to delay start of CQM events until there is a real
average signal strength from more than a single Beacon frame
available.
Signed-off-by: Jouni Malinen <j@w1.fi>
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 9af50fbcd48b..16f7fb164c2d 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -369,6 +369,13 @@ struct ieee80211_if_managed { int ave_beacon_signal; /* + * Number of Beacon frames used in ave_beacon_signal. This can be used + * to avoid generating less reliable cqm events that would be based + * only on couple of received frames. + */ + unsigned int count_beacon_signal; + + /* * Last Beacon frame signal strength average (ave_beacon_signal / 16) * that triggered a cqm event. 0 indicates that no event has been * generated for the current association. |