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 69874b5c1873a70c2851c6a321d5aa9b7276feb3..69230a71f1d10cef8a748350be17cc692decf58c 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" ] && {