mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-14 20:51:56 +01:00
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
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:
parent
4b6d81d7c1
commit
9736d42141
2 changed files with 10 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue