wifi-scripts: ucode: add support for scan_list
Some checks failed
Build all core packages / Build all core packages for selected target (push) Has been cancelled

Speed up connecting in client mode by allowing to limit the channels that
need to be scanned.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-08-15 19:41:44 +02:00
parent 4b6d81d7c1
commit 9736d42141
2 changed files with 10 additions and 1 deletions

View file

@ -618,6 +618,13 @@
"type": "boolean",
"default": true
},
"scan_list": {
"description": "List of frequencies (in MHz) to scan when looking for networks in client mode",
"type": "array",
"items": {
"type": "number"
}
},
"short_gi_160": {
"description": "Short GI for 160 MHz",
"type": "boolean",

View file

@ -190,8 +190,10 @@ export function generate(config_list, data, interface) {
interface.config.country = data.config.country_code;
interface.config.beacon_int = data.config.beacon_int;
if (data.config.scan_list)
interface.config.scan_list = join(" ", data.config.scan_list);
append_vars(interface.config, [ 'country', 'beacon_int' ]);
append_vars(interface.config, [ 'country', 'beacon_int', 'scan_list' ]);
setup_sta(data.config, interface.config);