summaryrefslogtreecommitdiff
path: root/package/madwifi
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
commitb7e8f1c3d1ed13cbd3a8f85a22e5461a107c375d (patch)
tree39d7791aa01823a247e41ab9d28111c4a31df9a3 /package/madwifi
parentb2db4e7f092abbc344d9c6734bd6377b30ba1f68 (diff)
downloadmtk-20170518-b7e8f1c3d1ed13cbd3a8f85a22e5461a107c375d.zip
mtk-20170518-b7e8f1c3d1ed13cbd3a8f85a22e5461a107c375d.tar.gz
mtk-20170518-b7e8f1c3d1ed13cbd3a8f85a22e5461a107c375d.tar.bz2
madwifi: add support for the ahdemo (ad-hoc demo) mode in /etc/config/wireless. using it, simultaneous ap+mesh operation is possible
SVN-Revision: 7302
Diffstat (limited to 'package/madwifi')
-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 e24730f..51dedfa 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"