diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-04-29 20:50:42 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-04-29 20:50:42 +0000 |
commit | c5bab4ae7e0c07bf2768a9bf668cfe2ed13b1a79 (patch) | |
tree | 6fb9f7eee588bbf247204a6dd271b4bf24e272da | |
parent | 2064758dc2d60183712577efa8b013b72fa0adb4 (diff) |
madwifi: fix static bssid setting for ad-hoc mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7067 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 69874b5c18..69230a71f1 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -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" ] && { |