mac80211: implement cqm rssi check using rx data signal
PATCH v2 3/3 mac80211: implement cqm rssi check using rx data signal
From: Tamizh chelvam <[email protected]>
Triggers cfg80211_ap_sta_cqm_rssi_notify with the corresponding event when station signal goes lower than the configured rssi threshold. And notify back to user space once the station signal becomes greater than the configured value. It uses rx data signal and compare with rssi value given by user. This rssi threshold is bss specific and it is common for all the stations.
Signed-off-by Tamizh chelvam <[email protected]>
--- include/net/mac80211.h | 7 +++++++ net/mac80211/rx.c | 46 +++++++++++++++++++++++++++++++++++++++++++++- net/mac80211/sta_info.h | 3 +++ 3 files changed, 55 insertions(+), 1 deletion(-)
include/net/mac80211.h +7 -0
@@ -799,6 +799,13 @@ enum mac80211_rate_control_flags { }; +/* +* How many frames need to have been used in average station's +* signal strength before checking against the threshold +*/ +#define IEEE80211_STA_SIGNAL_AVE_MIN_COUNT 4 + +/* there are 40 bytes if you don't need the rateset to be kept */ #define IEEE80211_TX_INFO_DRIVER_DATA_SIZE 40
net/mac80211/rx.c +45 -1
66 lines not on this page · raw message
net/mac80211/sta_info.h +3 -0
@@ -579,6 +579,9 @@ struct sta_info {struct cfg80211_chan_def tdls_chandef; +int last_cqm_event_signal; +unsigned int count_rx_signal; +/* keep last! */ struct ieee80211_sta sta; };
Signature · 1 line
1.7.9.5