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:
David Bauer
2022-01-23 14:15:53 +01:00
parent e36967f219
commit c7830b5319
6 changed files with 19 additions and 2 deletions

2
main.c
View File

@@ -103,6 +103,8 @@ void usteer_init_defaults(void)
config.roam_scan_interval = 10 * 1000;
config.roam_trigger_interval = 60 * 1000;
config.min_snr_kick_delay = 5 * 1000;
config.load_kick_enabled = false;
config.load_kick_threshold = 75;
config.load_kick_delay = 10 * 1000;