aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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