mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
Allow madwifi devices to be set in monitor mode
SVN-Revision: 11943
This commit is contained in:
parent
63622fbbec
commit
e63040663d
@ -14,7 +14,7 @@ scan_atheros() {
|
|||||||
|
|
||||||
config_get mode "$vif" mode
|
config_get mode "$vif" mode
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
adhoc|ahdemo|sta|ap)
|
adhoc|ahdemo|sta|ap|monitor)
|
||||||
append $mode "$vif"
|
append $mode "$vif"
|
||||||
;;
|
;;
|
||||||
wds)
|
wds)
|
||||||
@ -43,7 +43,7 @@ scan_atheros() {
|
|||||||
*) echo "$device: Invalid mode combination in config"; return 1;;
|
*) echo "$device: Invalid mode combination in config"; return 1;;
|
||||||
esac
|
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…
Reference in New Issue
Block a user