summaryrefslogtreecommitdiff
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
commit8b9afa6f75bad52bf16f03768fd13224dded36d0 (patch)
tree0019f392077a151d7635d82cc9f1639f471d3346
parentad1507756b17a278d92721d7b9ec24f906d7bd2c (diff)
downloadmtk-20170518-8b9afa6f75bad52bf16f03768fd13224dded36d0.zip
mtk-20170518-8b9afa6f75bad52bf16f03768fd13224dded36d0.tar.gz
mtk-20170518-8b9afa6f75bad52bf16f03768fd13224dded36d0.tar.bz2
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
-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 4d6d50f..5991b4c 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