aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-03-09 21:23:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-03-09 21:23:14 +0000
commite3754d3bad9433a1fb0e20f9c46db1c0f0c070e9 (patch)
treeadc5185694f9485d2f5298d67a4281bf2ea0dd33 /package
parentd16b006295e2112f9147cf4281a33a773d77ab37 (diff)
downloadupstream-e3754d3bad9433a1fb0e20f9c46db1c0f0c070e9.tar.gz
upstream-e3754d3bad9433a1fb0e20f9c46db1c0f0c070e9.tar.bz2
upstream-e3754d3bad9433a1fb0e20f9c46db1c0f0c070e9.zip
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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20106 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh4
1 files changed, 2 insertions, 2 deletions
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