wifi-scripts: ucode: append global options on STA interfaces
authorJohn Crispin <john@phrozen.org>
Wed, 11 Dec 2024 11:06:55 +0000 (12:06 +0100)
committerJohn Crispin <john@phrozen.org>
Wed, 11 Dec 2024 11:28:43 +0000 (12:28 +0100)
Signed-off-by: John Crispin <john@phrozen.org>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc

index 04d7f216aa68a7b77d89db938f92e878661fa39c..0519e5817770160cf6a6b8a8e4589b47d04b57b8 100644 (file)
@@ -182,9 +182,11 @@ export function generate(config_list, data, interface) {
                return 1;
        }
 
-       interface.config.country = data.config.country;
+       interface.config.country = data.config.country_code;
        interface.config.beacon_int = data.config.beacon_int;
 
+       append_vars(interface.config, [ 'country', 'beacon_int' ]);
+
        setup_sta(data.config, interface.config);
 
        let file_name = `/var/run/wpa-supplicant-${interface.config.ifname}.conf`;