diff options
| author | Felix Fietkau | 2025-06-27 11:08:32 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-06-27 11:09:17 +0000 |
| commit | ba2ae60a00e8c109a4a73c6d98bff89f1a7bbd89 (patch) | |
| tree | 178c87a3b0450280e03d1ac6d7a55409ee9146e2 | |
| parent | 165ca3f3755c8219588bc54c74d387d55422fbd4 (diff) | |
| download | openwrt-ba2ae60a00e8c109a4a73c6d98bff89f1a7bbd89.tar.gz | |
wifi-scripts: ucode: fix invalid generated MAC address
macaddr_base can be NULL, in which case it needs to be passed as an empty string
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc index 780cab8a63..bfea26d462 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc @@ -231,7 +231,7 @@ function macaddr_random() { let mac_idx = 0; export function prepare(data, phy, num_global_macaddr, macaddr_base) { if (!data.macaddr) { - let pipe = fs.popen(`ucode /usr/share/hostap/wdev.uc ${phy} get_macaddr id=${mac_idx} num_global=${num_global_macaddr} mbssid=${data.mbssid ?? 0} macaddr_base=${macaddr_base}`); + let pipe = fs.popen(`ucode /usr/share/hostap/wdev.uc ${phy} get_macaddr id=${mac_idx} num_global=${num_global_macaddr} mbssid=${data.mbssid ?? 0} macaddr_base=${macaddr_base ?? ""}`); data.macaddr = trim(pipe.read("all"), '\n'); pipe.close(); |