madwifi: fix static bssid setting for ad-hoc mode
authorFelix Fietkau <nbd@openwrt.org>
Sun, 29 Apr 2007 20:50:42 +0000 (20:50 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 29 Apr 2007 20:50:42 +0000 (20:50 +0000)
SVN-Revision: 7067

package/madwifi/files/lib/wifi/madwifi.sh

index 69874b5..69230a7 100755 (executable)
@@ -142,15 +142,15 @@ enable_atheros() {
                                config_get addr "$vif" bssid
                                iwpriv "$ifname" wds_add "$addr"
                        ;;
-                       *)
-                               config_get ssid "$vif" ssid
-                       ;;
                        adhoc)
                                config_get addr "$vif" bssid
                                [ -z "$addr" ] || { 
                                        iwconfig "$ifname" ap "$addr"
                                }
                        ;;
+                       *)
+                               config_get ssid "$vif" ssid
+                       ;;
                esac
 
                [ "$mode" = "sta" ] && {