diff options
| author | Felix Fietkau | 2024-12-09 18:19:46 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2024-12-09 19:10:43 +0000 |
| commit | 59dd9cddf9e72d1f9b4ff7e01ae32d2fa99259d9 (patch) | |
| tree | d78df6f06f3b32495b90c03a7f86fdbc9a7f4e8f | |
| parent | 3d8d81883fb2e607590bcb523587e37e1485b3b8 (diff) | |
| download | openwrt-59dd9cddf9e72d1f9b4ff7e01ae32d2fa99259d9.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>
| -rw-r--r-- | package/network/services/hostapd/files/hostapd.uc | 5 |
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 c1db91e4d4..76a3d706f7 100644 --- a/package/network/services/hostapd/files/hostapd.uc +++ b/package/network/services/hostapd/files/hostapd.uc @@ -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); } |