hostapd: fix bringing up mesh without supplicant when mcast rate is specified

The iw command expects a specific command line argument

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2023-08-17 17:44:58 +02:00
parent 09fd59938b
commit a61fd0f0bb

View File

@ -47,7 +47,7 @@ function iface_start(wdev)
system(cmd); system(cmd);
} else if (wdev.mode == "mesh") { } else if (wdev.mode == "mesh") {
let cmd = [ "iw", "dev", ifname, "mesh", "join", wdev.ssid, "freq", wdev.freq, wdev.htmode ]; let cmd = [ "iw", "dev", ifname, "mesh", "join", wdev.ssid, "freq", wdev.freq, wdev.htmode ];
for (let key in [ "beacon-interval", "mcast-rate" ]) for (let key in [ "mcast-rate", "beacon-interval" ])
if (wdev[key]) if (wdev[key])
push(cmd, key, wdev[key]); push(cmd, key, wdev[key]);
system(cmd); system(cmd);