Skip to contentSkip to conversation

mac80211: implement cqm rssi check using rx data signal

PATCH Superseded Tamizh chelvam 1 participant 1 message Feb 13, 2018 mac80211

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 906e902..8fbf633 100644
@@ -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
index cd53619..76e8877 100644
@@ -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