Re: [PATCH 3/3] mac80211: Implement functionality to monitor station's signal stregnth

2018-11-11 Thread Tamizh chelvam
On 2018-11-09 17:25, Johannes Berg wrote: Oh, umm, that patch is still here ... I guess we can combine 2 and 3 too. Sure. + if (sta->rssi_low && bss_conf->enable_beacon) { + int last_event = + sta->last_rssi_event_value; + int sig =

Re: [PATCH 3/3] mac80211: Implement functionality to monitor station's signal stregnth

2018-11-09 Thread Johannes Berg
Oh, umm, that patch is still here ... I guess we can combine 2 and 3 too. > + if (sta->rssi_low && bss_conf->enable_beacon) { > + int last_event = > + sta->last_rssi_event_value; > + int sig = -ewma_signal_read(>rx_stats_avg.signal); > +

Re: [PATCH 3/3] mac80211: Implement functionality to monitor station's signal stregnth

2018-10-16 Thread Sergey Matyukevich
> +/* > + * 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

[PATCH 3/3] mac80211: Implement functionality to monitor station's signal stregnth

2018-10-15 Thread Tamizh chelvam
Triggers cfg80211_sta_mon_rssi_notify with the corresponding event when station signal goes out of configured threshold. It uses rx data signal to check against rssi threshold configured by the user. And update the lower and upper RSSI threshold for the station if it is not configured as a fixed