forked from osmocom/wireshark
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.
This commit is contained in:
parent
3da9603b9e
commit
420ec1511d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue