mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
Allow madwifi devices to be set in monitor mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11943 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
563db98da8
commit
daeb78fccc
@ -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}"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user