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
This commit is contained in:
Felix Fietkau 2007-05-21 07:22:02 +00:00
parent b2db4e7f09
commit b7e8f1c3d1

View File

@ -14,7 +14,7 @@ scan_atheros() {
config_get mode "$vif" mode config_get mode "$vif" mode
case "$mode" in case "$mode" in
adhoc|sta|ap) adhoc|ahdemo|sta|ap)
append $mode "$vif" append $mode "$vif"
;; ;;
wds) wds)
@ -42,7 +42,7 @@ scan_atheros() {
*) echo "$device: Invalid mode combination in config"; return 1;; *) echo "$device: Invalid mode combination in config"; return 1;;
esac 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 config_get addr "$vif" bssid
iwpriv "$ifname" wds_add "$addr" iwpriv "$ifname" wds_add "$addr"
;; ;;
adhoc) adhoc|ahdemo)
config_get addr "$vif" bssid config_get addr "$vif" bssid
[ -z "$addr" ] || { [ -z "$addr" ] || {
iwconfig "$ifname" ap "$addr" iwconfig "$ifname" ap "$addr"