summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2024-12-09 18:19:46 +0000
committerFelix Fietkau2025-01-15 16:19:24 +0000
commite20047e5d4f369f1e25787d95996109b0f3933e4 (patch)
tree370b717043322e8866e2d31fca47d5795ac8eef3
parent06340650c5d056dd542b6c8cbcfa87cb4f9d9b27 (diff)
downloadopenwrt-e20047e5d4f369f1e25787d95996109b0f3933e4.tar.gz
hostapd: fix processing mbssid config option
Do not strip the first character from the field name Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 59dd9cddf9e72d1f9b4ff7e01ae32d2fa99259d9)
-rw-r--r--package/network/services/hostapd/files/hostapd.uc5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc
index ee24112059..771108ace8 100644
--- a/package/network/services/hostapd/files/hostapd.uc
+++ b/package/network/services/hostapd/files/hostapd.uc
@@ -747,9 +747,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);
}