[openwrt/openwrt] wifi-scripts: fix mesh/sta setup with ucode scripts

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 13 01:57:25 PST 2024


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b6c7d8a0d60fddd162c77371e2500f485339e2c7

commit b6c7d8a0d60fddd162c77371e2500f485339e2c7
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Dec 13 10:56:50 2024 +0100

    wifi-scripts: fix mesh/sta setup with ucode scripts
    
    Ensure that the code doesn't pass macaddr_base with the wrong type (null)
    to the supplicant setup/start call.
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 .../wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 c7bfeb6b9a..2942767f0b 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
@@ -221,7 +221,7 @@ export function setup(config, data) {
 		config,
 		defer: true,
 		num_global_macaddr: data.config.num_global_macaddr,
-		macaddr_base: data.config.macaddr_base,
+		macaddr_base: data.config.macaddr_base ?? "",
 	});
 
 	if (ret)
@@ -236,6 +236,6 @@ export function start(data) {
 		phy: data.phy,
 		radio: data.config.radio,
 		num_global_macaddr: data.config.num_global_macaddr,
-		macaddr_base: data.config.macaddr_base,
+		macaddr_base: data.config.macaddr_base ?? "",
 	});
 };




More information about the lede-commits mailing list