Skip to content

Commit

Permalink
hostapd: fix processing mbssid config option
Browse files Browse the repository at this point in the history
Do not strip the first character from the field name

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Dec 9, 2024
1 parent 3d8d818 commit 59dd9cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package/network/services/hostapd/files/hostapd.uc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 59dd9cd

Please sign in to comment.