aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/lib/wifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-04-29 20:50:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-04-29 20:50:42 +0000
commit1ffb5db3782b68314f634f39138659ec26de1e7f (patch)
tree6fb9f7eee588bbf247204a6dd271b4bf24e272da /package/madwifi/files/lib/wifi
parent2a01af800c5593ec142e2a569036db108e59475f (diff)
downloadupstream-1ffb5db3782b68314f634f39138659ec26de1e7f.tar.gz
upstream-1ffb5db3782b68314f634f39138659ec26de1e7f.tar.bz2
upstream-1ffb5db3782b68314f634f39138659ec26de1e7f.zip
madwifi: fix static bssid setting for ad-hoc mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7067 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files/lib/wifi')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh6
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" ] && {