summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-07-26 18:32:54 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-07-26 18:32:54 +0000
commite63040663dc6a7860c39f8624fd33fd2d431c5aa (patch)
tree882e93ea511422fa7d796738028ca691569e980c /package
parent63622fbbec84f8d3b895933d2db4ae06b41ed0d6 (diff)
downloadmtk-20170518-e63040663dc6a7860c39f8624fd33fd2d431c5aa.zip
mtk-20170518-e63040663dc6a7860c39f8624fd33fd2d431c5aa.tar.gz
mtk-20170518-e63040663dc6a7860c39f8624fd33fd2d431c5aa.tar.bz2
Allow madwifi devices to be set in monitor mode
SVN-Revision: 11943
Diffstat (limited to 'package')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh4
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 97ad52b..5a47f70 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}"
}