hostapd: fix bringing up mesh without supplicant when mcast rate is specified
authorFelix Fietkau <nbd@nbd.name>
Thu, 17 Aug 2023 15:44:58 +0000 (17:44 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 17 Aug 2023 15:44:59 +0000 (17:44 +0200)
The iw command expects a specific command line argument

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/wdev.uc

index 5b321423eb2df2ea390e692c41f9efd6a8da2d92..78037a9d27131b58a41422b86c6f4b01e9536a6c 100644 (file)
@@ -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);