policy: add min_snr_kick_delay
Currently the min_snr option will result in kicking clients the first time their SNR dips below. This might not be desirable, as drivers (notably ath10k) sometimes report a much lower RSSI for a short timeframe after returning to sensible values. Also, a device might be in the process of roaming just to be kicked before. Add the min_snr_kick_delay option. A client will be kicked after this timeframe when it's SNR is below the min_snr threshold value over the complete timeframe. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
3
usteer.h
3
usteer.h
@@ -165,6 +165,7 @@ struct usteer_config {
|
||||
uint32_t remote_node_timeout;
|
||||
|
||||
int32_t min_snr;
|
||||
uint32_t min_snr_kick_delay;
|
||||
int32_t min_connect_snr;
|
||||
uint32_t signal_diff_threshold;
|
||||
|
||||
@@ -242,6 +243,8 @@ struct sta_info {
|
||||
|
||||
int kick_count;
|
||||
|
||||
uint32_t below_min_snr;
|
||||
|
||||
uint8_t scan_band : 1;
|
||||
uint8_t connected : 2;
|
||||
};
|
||||
|
Reference in New Issue
Block a user