mac80211: fix interface setup for wds client sometimes an interface does not get...
authorFelix Fietkau <nbd@openwrt.org>
Tue, 9 Mar 2010 21:23:14 +0000 (21:23 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 9 Mar 2010 21:23:14 +0000 (21:23 +0000)
SVN-Revision: 20106

package/mac80211/files/lib/wifi/mac80211.sh

index 4d6d50f0bc6534ab2da1e10bfe4dda036dae5b5a..5991b4c16a3b6c04d7f452ae9005dd1d4f284aad 100644 (file)
@@ -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