From: Felix Fietkau Date: Wed, 9 Aug 2023 08:50:53 +0000 (+0200) Subject: mac80211: fix setting mesh parameters after hostapd reload change X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4bd9f2eda5d544c4f9a5f39a995a339d64a92ceb;p=openwrt%2Fstaging%2Fjow.git mac80211: fix setting mesh parameters after hostapd reload change Signed-off-by: Felix Fietkau --- diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index d87a2c6312..81c08b00bb 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -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 }