mac80211: fix setting mesh parameters after hostapd reload change
authorFelix Fietkau <nbd@nbd.name>
Wed, 9 Aug 2023 08:50:53 +0000 (10:50 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 9 Aug 2023 08:50:53 +0000 (10:50 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

index d87a2c63122c3f59429eb06821519bd5b95c8001..81c08b00bbc77e6fa5ac781da6170681f52348db 100644 (file)
@@ -765,7 +765,7 @@ mac80211_prepare_iw_htmode() {
 
 mac80211_add_mesh_params() {
        for var in $MP_CONFIG_INT $MP_CONFIG_BOOL $MP_CONFIG_STRING; do
-               eval "mp_val=\"\$var\""
+               eval "mp_val=\"\$$var\""
                [ -n "$mp_val" ] && json_add_string "$var" "$mp_val"
        done
 }