mac80211: apply mesh parameters after starting authsae/wpa_supplicant (#16697)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 9 May 2015 08:58:12 +0000 (08:58 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 9 May 2015 08:58:12 +0000 (08:58 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45651 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

index d2641a4..824c87a 100644 (file)
@@ -590,11 +590,6 @@ mac80211_setup_vif() {
 
        case "$mode" in
                mesh)
-                       for var in $MP_CONFIG_INT $MP_CONFIG_BOOL $MP_CONFIG_STRING; do
-                               json_get_var mp_val "$var"
-                               [ -n "$mp_val" ] && iw dev "$ifname" set mesh_param "$var" "$mp_val"
-                       done
-
                        # authsae or wpa_supplicant
                        json_get_vars key
                        if [ -n "$key" ]; then
@@ -606,6 +601,11 @@ mac80211_setup_vif() {
                                        mac80211_setup_supplicant || failed=1
                                fi
                        fi
+
+                       for var in $MP_CONFIG_INT $MP_CONFIG_BOOL $MP_CONFIG_STRING; do
+                               json_get_var mp_val "$var"
+                               [ -n "$mp_val" ] && iw dev "$ifname" set mesh_param "$var" "$mp_val"
+                       done
                ;;
                adhoc)
                        wireless_vif_parse_encryption