wifi-scripts: fix mesh/sta setup with ucode scripts
authorFelix Fietkau <nbd@nbd.name>
Fri, 13 Dec 2024 09:56:50 +0000 (10:56 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 13 Dec 2024 09:57:18 +0000 (10:57 +0100)
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@nbd.name>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc

index c7bfeb6b9a63a6425b61a3c0a7e110edd958a137..2942767f0b752bb5410d17e3d6af5197a76f45e3 100644 (file)
@@ -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 ?? "",
        });
 };