diff options
author | Adrian Granados <adrian@intuitibits.com> | 2022-10-07 20:50:37 -0400 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2022-10-31 13:20:06 +0000 |
commit | 420ec1511dcd467d33bf30d65c7a6dcb8f73734a (patch) | |
tree | 47b7cceae6f032c1beda569730d8d3aac10814be /extcap | |
parent | 3da9603b9e3e27fa8eb4f4e319f42df44b2d92da (diff) |
extcap: fix missing control frames from wifidump capture
Normally, 'control' and 'otherbss' flags are set when
using monitor mode, but certain Wi-Fi drivers (e.g. MT7921)
need to explicitly have these flags set in order to capture
control frames.
Diffstat (limited to 'extcap')
-rw-r--r-- | extcap/wifidump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extcap/wifidump.c b/extcap/wifidump.c index 212f4d0205..11d5b33c59 100644 --- a/extcap/wifidump.c +++ b/extcap/wifidump.c @@ -86,8 +86,8 @@ static const char * remote_capture_functions = "\n" "function iface_monitor {\n" " local iface=$1\n" -" sudo iw dev $iface set monitor none > /dev/null 2>&1 ||\n" -" sudo iw dev $iface set type monitor > /dev/null 2>&1\n" +" sudo iw dev $iface set monitor control otherbss > /dev/null 2>&1 ||\n" +" sudo iw dev $iface set type monitor control otherbss > /dev/null 2>&1\n" "}\n" "\n" "function iface_scan {\n" @@ -132,6 +132,8 @@ static const char * remote_capture_functions = " iface_down $iface &&\n" " iface_monitor $iface &&\n" " iface_up $iface\n" +" else\n" +" iface_monitor $iface\n" " fi\n" " iface_config $iface $freq $ch_width $center_freq &&\n" " iface_start $iface $count $filter\n" |