madwifi: add support for the ahdemo (ad-hoc demo) mode in /etc/config/wireless. using...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 21 May 2007 07:22:02 +0000 (07:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 21 May 2007 07:22:02 +0000 (07:22 +0000)
SVN-Revision: 7302

package/madwifi/files/lib/wifi/madwifi.sh

index e24730f905dd03a081bdfe97bfe4e159c42ea6d1..51dedfa77ece42e981836d2c6cc14182bbc1d1fa 100755 (executable)
@@ -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"