diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-26 18:32:54 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-26 18:32:54 +0000 |
commit | 982604693e5d59d2e47a11af1ab39679c57f6e0f (patch) | |
tree | bfbe76ad7e27565c164fbf4062aae468d6a4098f | |
parent | 37a3e9fa619ba8148e973eb8d2db6d9b0c5b61d5 (diff) |
Allow madwifi devices to be set in monitor mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11943 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 97ad52bae..5a47f7019 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|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}" } |