hostapd: fix anqp_3gpp_cell_net list delimiter
authorSarah Maedel <[email protected]>
Wed, 28 Aug 2024 09:27:05 +0000 (11:27 +0200)
committerDavid Bauer <[email protected]>
Wed, 28 Aug 2024 10:00:23 +0000 (12:00 +0200)
This patch fixes the list delimiter between 3GPP networks
passed to hostapd.

> list iw_anqp_3gpp_cell_net '262,001'
> list iw_anqp_3gpp_cell_net '262,002'

When passing a list of "iw_anqp_3gpp_cell_net" parameters via UCI,
hostapd would crash at startup:
> daemon.err hostapd: Line 73: Invalid anqp_3gpp_cell_net: 262,001:262,002

Using a semicolon as a delimiter, hostapd will start as expected.

Signed-off-by: Sarah Maedel <[email protected]>
(cherry picked from commit 8de185a176079e738984ab0fc89841bc2e613fb1)

package/network/services/hostapd/files/hostapd.sh

index 8e0cf4f091242efc3e1f64d4548abbc7840ff4c5..6b4371960b0b8db3a5d95e4a4d0ae763dad93937 100644 (file)
@@ -434,7 +434,7 @@ append_iw_anqp_3gpp_cell_net() {
        if [ -z "$iw_anqp_3gpp_cell_net_conf" ]; then
                iw_anqp_3gpp_cell_net_conf="$1"
        else
-               iw_anqp_3gpp_cell_net_conf="$iw_anqp_3gpp_cell_net_conf:$1"
+               iw_anqp_3gpp_cell_net_conf="$iw_anqp_3gpp_cell_net_conf;$1"
        fi
 }