From: Felix Fietkau Date: Tue, 9 Mar 2010 21:23:14 +0000 (+0000) Subject: mac80211: fix interface setup for wds client sometimes an interface does not get... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8b9afa6f75bad52bf16f03768fd13224dded36d0;p=openwrt%2Fstaging%2Fmans0n.git mac80211: fix interface setup for wds client sometimes an interface does not get added to the bridge properly this seems to be a race of interface setup vs wpa_supplicant fix this by configuring the interface only after wpa_supplicant has been started SVN-Revision: 20106 --- diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 4d6d50f0bc..5991b4c16a 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -353,8 +353,7 @@ enable_mac80211() { ifconfig "$ifname" up if [ ! "$mode" = "ap" ]; then - mac80211_start_vif "$vif" "$ifname" - + ifconfig "$ifname" up case "$mode" in adhoc) config_get bssid "$vif" bssid @@ -372,6 +371,7 @@ enable_mac80211() { fi ;; esac + mac80211_start_vif "$vif" "$ifname" fi done