Allow madwifi devices to be set in monitor mode
authorFlorian Fainelli <florian@openwrt.org>
Sat, 26 Jul 2008 18:32:54 +0000 (18:32 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 26 Jul 2008 18:32:54 +0000 (18:32 +0000)
SVN-Revision: 11943

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

index 97ad52bae27b5c0f96e1881fa0fee80dcf8e152f..5a47f70193b2c88f9a7360e80fc361e585858d46 100755 (executable)
@@ -14,7 +14,7 @@ scan_atheros() {
                
                config_get mode "$vif" mode
                case "$mode" in
-                       adhoc|ahdemo|sta|ap)
+                       adhoc|ahdemo|sta|ap|monitor)
                                append $mode "$vif"
                        ;;
                        wds)
@@ -43,7 +43,7 @@ scan_atheros() {
                *) echo "$device: Invalid mode combination in config"; return 1;;
        esac
 
-       config_set "$device" vifs "${ap:+$ap }${adhoc:+$adhoc }${ahdemo:+$ahdemo }${sta:+$sta }${wds:+$wds }"
+       config_set "$device" vifs "${ap:+$ap }${adhoc:+$adhoc }${ahdemo:+$ahdemo }${sta:+$sta }${wds:+$wds }${monitor:+$monitor}"
 }