mt76: MT7921K monitor mode not working
Hi,
we are not able to obtain any packets when packet capturing with the Mediatek MT7921K in monitor mode on 2.4, 5 and 6 GHz.
tcpdump will show you 0 recorded packets. When doing a "iw dev wls1 scan" on a parallel running managed interface on the same phy, the packet capture will contain beacons and probe responses from the scan though. Can anyone confirm that?
mt76 (https://github.com/openwrt/mt76/commits/master): commit 6fad970893dd26ef6e6c8344b958344254f6362a (HEAD -> master, origin/master, origin/HEAD)
Kernel: 5.16.0-rc2-next-20211124+
WM Firmware Version: ____010000, Build Time: 20211014150922
Steps to reproduce:
sudo iw dev wls1 del
sudo iw phy phy0 interface add mon0 type monitor
sudo ip link set dev mon0 up
sudo iw dev mon0 set freq 6115
sudo tcpdump -i mon0 -w 6g-capture.pcap
Kinds regards, Jan
Quoted 1 line
Hi,
Hi Jan,
Quoted 8 lines
we are not able to obtain any packets when packet capturing with the Mediatek MT7921K in monitor mode on 2.4, 5 and 6 GHz.
tcpdump will show you 0 recorded packets. When doing a "iw dev wls1 scan" on a parallel running managed interface on the same phy, the packet capture will contain beacons and probe responses from the scan though. Can anyone confirm that?
Quoted 5 lines
mt76 (https://github.com/openwrt/mt76/commits/master): commit
6fad970893dd26ef6e6c8344b958344254f6362a(HEAD -> master, origin/master, origin/HEAD)
Kernel: 5.16.0-rc2-next-20211124+
WM Firmware Version: ____010000, Build Time: 20211014150922
IIRC you need to disable runtime-pm and deep-sleep to proper enable monitor mode:
echo 0 > /sys/kernel/debug/ieee80211/phy<x>/mt76/runtime-pm echo 0 > /sys/kernel/debug/ieee80211/phy<x>/mt76/deep-sleep
Can you please give it whirl?
Regards,
Lorenzo
Quoted 10 lines
Steps to reproduce:
sudo iw dev wls1 del
sudo iw phy phy0 interface add mon0 type monitor
sudo ip link set dev mon0 up
sudo iw dev mon0 set freq 6115
sudo tcpdump -i mon0 -w 6g-capture.pcapKinds regards, Jan
Quoted 7 lines · On Thursday, 2 December 2021 23:13:31 CET Lorenzo Bianconi wrote:
IIRC you need to disable runtime-pm and deep-sleep to proper enable monitor mode:
echo 0 > /sys/kernel/debug/ieee80211/phy<x>/mt76/runtime-pm echo 0 > /sys/kernel/debug/ieee80211/phy<x>/mt76/deep-sleep
Can you please give it whirl?
Jan gave me the card. I've set it to a rather busy channel (2.4GHz channel 11), created a monitor interface, attached tcpdump and then waited what happens. I didn't get anything and then I've tried to set runtime-pm and deep- sleep to 0. This didn't change the behavior for me at lot. I saw two packets and then it went silent again.
I wanted to try the same on a different card (ath11k) in the same system. But it crashed my complete system - so I had to recreate the test setup. This time, I've set runtime-pm + deep-sleep to 0 before creating mon0. After doing this, it seemed to work.
Kind regards,
Sven
Quoted 15 lines · On Thursday, 2 December 2021 23:13:31 CET Lorenzo Bianconi wrote:
Quoted 7 lines
IIRC you need to disable runtime-pm and deep-sleep to proper enable monitor mode:
echo 0 > /sys/kernel/debug/ieee80211/phy<x>/mt76/runtime-pm echo 0 > /sys/kernel/debug/ieee80211/phy<x>/mt76/deep-sleep
Can you please give it whirl?
Jan gave me the card. I've set it to a rather busy channel (2.4GHz channel 11), created a monitor interface, attached tcpdump and then waited what happens. I didn't get anything and then I've tried to set runtime-pm and deep- sleep to 0. This didn't change the behavior for me at lot. I saw two packets and then it went silent again.
Quoted 4 lines
I wanted to try the same on a different card (ath11k) in the same system. But it crashed my complete system - so I had to recreate the test setup. This time, I've set runtime-pm + deep-sleep to 0 before creating mon0. After doing this, it seemed to work.
interesting, adding Sean to the loop here.
It seems the fw is mainting a different state in this case.
@Sean: any pointers?
Regards,
Lorenzo
Quoted 3 lines
Kind regards,
Sven
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek