summaryrefslogtreecommitdiff
path: root/package/madwifi/files
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
commit269c00418ccc64dc7224054d826047ac8b45a278 (patch)
tree565e0af4842249c8e2d94ed19122b06c2fdc7b84 /package/madwifi/files
parent9507f89800bf73debbd25729e41eb322ae42db0e (diff)
downloadmtk-20170518-269c00418ccc64dc7224054d826047ac8b45a278.zip
mtk-20170518-269c00418ccc64dc7224054d826047ac8b45a278.tar.gz
mtk-20170518-269c00418ccc64dc7224054d826047ac8b45a278.tar.bz2
madwifi: fix static bssid setting for ad-hoc mode
SVN-Revision: 7067
Diffstat (limited to 'package/madwifi/files')
-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 69874b5..69230a7 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" ] && {