hostapd: fix processing mbssid config option
authorFelix Fietkau <nbd@nbd.name>
Mon, 9 Dec 2024 18:19:46 +0000 (19:19 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 9 Dec 2024 19:10:43 +0000 (20:10 +0100)
Do not strip the first character from the field name

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

index c1db91e4d4f944ed0febc159804f52ad7bcccb7b..76a3d706f7f569996ace7714e48652da96d8950d 100644 (file)
@@ -746,9 +746,10 @@ function iface_load_config(phy, radio, filename)
                        continue;
                }
 
-               if (val[0] == "#num_global_macaddr" ||
-                   val[0] == "mbssid")
+               if (val[0] == "#num_global_macaddr")
                        config[substr(val[0], 1)] = int(val[1]);
+               else if (val[0] == "mbssid")
+                       config[val[0]] = int(val[1]);
 
                push(config.radio.data, line);
        }