diff options
author | Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> | 2011-07-08 11:46:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-11 15:02:06 -0400 |
commit | 615f7b9bb1f8e0e3188470245cec44f175189084 (patch) | |
tree | 4c0803460f682c34b11929a1fe22e150839efedb /net/mac80211/ieee80211_i.h | |
parent | 0a49b2c2a6bf2f774675e472afe68951900596fb (diff) |
mac80211: add driver RSSI threshold events
mac80211 maintains a running average of the RSSI when a STA
is associated to an AP. Report threshold events to any driver
that has registered callbacks for getting RSSI measurements.
Implement callbacks in mac80211 so that driver can set thresholds.
Add callbacks in mac80211 which is invoked when an RSSI threshold
event occurs.
mac80211: add tracing to rssi_reports api and remove extraneous fn argument
mac80211: scale up rssi thresholds from driver by 16 before storing
Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 4c7a831e7d1e..96600bec44c5 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -432,6 +432,14 @@ struct ieee80211_if_managed { | |||
432 | * generated for the current association. | 432 | * generated for the current association. |
433 | */ | 433 | */ |
434 | int last_cqm_event_signal; | 434 | int last_cqm_event_signal; |
435 | |||
436 | /* | ||
437 | * State variables for keeping track of RSSI of the AP currently | ||
438 | * connected to and informing driver when RSSI has gone | ||
439 | * below/above a certain threshold. | ||
440 | */ | ||
441 | int rssi_min_thold, rssi_max_thold; | ||
442 | int last_ave_beacon_signal; | ||
435 | }; | 443 | }; |
436 | 444 | ||
437 | struct ieee80211_if_ibss { | 445 | struct ieee80211_if_ibss { |