Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mt7601u active monitor mode is not working as expected #778

Closed
ZerBea opened this issue May 9, 2023 · 2 comments
Closed

mt7601u active monitor mode is not working as expected #778

ZerBea opened this issue May 9, 2023 · 2 comments

Comments

@ZerBea
Copy link

ZerBea commented May 9, 2023

Running monitor mode with active monitor mode flag (NL80211_FEATURE_ACTIVE_MONITOR), only frames addressed to BROADCAST MAC (ff:ff:ff:ff:ff:ff:ff) or addressed to the device MAC are received.

tested mt7601u devices (both showing the same behavior):
ID 7392:7710 Edimax Technology Co., Ltd Edimax Wi-Fi
ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter

tested kernels:
5.15 (Raspbian)
6.1 (Raspbian)
6.3 (Arch Linux)

To reproduce:
run latest git head hcxdumptool (https://github.com/ZerBea/hcxdumptool)
run Wireshark in parallel
Wireshark only show frames addressed to the device MAC
on transmission branch, only frames coming from the device MAC are transmitted

deactivate active monitor mode by option -p
run latest git head hcxdumptool -p
run Wireshark in parallel
Wireshark show all frames regardless if they addressed to the device MAC or not

The behavior of mt7601u is more like a device running in AP mode than a device running in monitor mode.

Please also notice my last commit (as a workaround) to disable active monitor mode on mt7601u devices:
ZerBea/hcxdumptool@afd0073ZerBea/hcxdumptool@afd0073
and the changelog:
https://github.com/ZerBea/hcxdumptool/blob/master/changelog

At the moment, I'm not sure if the problem is related to the driver or to the firmware, because mt76x0u devices, e.g.:
ID 0b05:17d1 ASUSTek Computer, Inc. AC51 802.11a/b/g/n/ac Wireless Adapter [Mediatek MT7610U]
ID 148f:761a Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter
and mt76x2u devices e.g.:
ID 0e8d:7612 MediaTek Inc. MT7612U 802.11a/b/g/n/ac Wireless Adapter
are not affected.

Active monitor mode is working as expected (confirmed by Wireshark running in parallel on the same device).

@lukasz1992
Copy link

mt76 driver does not support mt7601u chipset

@ZerBea
Copy link
Author

ZerBea commented May 19, 2023

Good point and you're absolutely right. Thanks.
Closed it here and moved it to:
https://bugzilla.kernel.org/show_bug.cgi?id=217465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants