From: John Crispin Date: Wed, 11 Dec 2024 11:06:55 +0000 (+0100) Subject: wifi-scripts: ucode: append global options on STA interfaces X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7e854bd9430c3f33dbbceb26390bdf476b27dd2d;p=openwrt%2Fstaging%2Fnbd.git wifi-scripts: ucode: append global options on STA interfaces Signed-off-by: John Crispin --- diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc index 04d7f216aa..0519e58177 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc @@ -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`;