From: Felix Fietkau Date: Thu, 17 Aug 2023 15:44:58 +0000 (+0200) Subject: hostapd: fix bringing up mesh without supplicant when mcast rate is specified X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a61fd0f0bb0f70dc414b282ae20bdcd6a6e25926;p=openwrt%2Fstaging%2Fwigyori.git 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 --- diff --git a/package/network/services/hostapd/files/wdev.uc b/package/network/services/hostapd/files/wdev.uc index 5b321423eb..78037a9d27 100644 --- a/package/network/services/hostapd/files/wdev.uc +++ b/package/network/services/hostapd/files/wdev.uc @@ -47,7 +47,7 @@ function iface_start(wdev) system(cmd); } else if (wdev.mode == "mesh") { 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]) push(cmd, key, wdev[key]); system(cmd);