aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-05-21 07:22:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-05-21 07:22:02 +0000
commit85296fc1a63c00f960151b3668bd1ba9e1d32bff (patch)
tree986c909998ffec48c26cb06fe138104f39d1d729 /package
parent12fcc529af8de0ca039308ab5215b665b6ab800c (diff)
downloadupstream-85296fc1a63c00f960151b3668bd1ba9e1d32bff.tar.gz
upstream-85296fc1a63c00f960151b3668bd1ba9e1d32bff.tar.bz2
upstream-85296fc1a63c00f960151b3668bd1ba9e1d32bff.zip
madwifi: add support for the ahdemo (ad-hoc demo) mode in /etc/config/wireless. using it, simultaneous ap+mesh operation is possible
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7302 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-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 e24730f905..51dedfa77e 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -14,7 +14,7 @@ scan_atheros() {
config_get mode "$vif" mode
case "$mode" in
- adhoc|sta|ap)
+ adhoc|ahdemo|sta|ap)
append $mode "$vif"
;;
wds)
@@ -42,7 +42,7 @@ scan_atheros() {
*) echo "$device: Invalid mode combination in config"; return 1;;
esac
- config_set "$device" vifs "${ap:+$ap }${adhoc:+$adhoc }${sta:+$sta }${wds:+$wds }"
+ config_set "$device" vifs "${ap:+$ap }${adhoc:+$adhoc }${ahdemo:+$ahdemo }${sta:+$sta }${wds:+$wds }"
}
@@ -142,7 +142,7 @@ enable_atheros() {
config_get addr "$vif" bssid
iwpriv "$ifname" wds_add "$addr"
;;
- adhoc)
+ adhoc|ahdemo)
config_get addr "$vif" bssid
[ -z "$addr" ] || {
iwconfig "$ifname" ap "$addr"