Re: mt76x0 bug report
From: Lorenzo Bianconi <hidden>
Date: 2018-09-06 21:50:22
Also in:
linux-mediatek
On Thu, Sep 6, 2018 at 5:32 AM Stanislaw Gruszka [off-list ref] wrote:quoted
On Wed, Sep 05, 2018 at 08:52:18PM +0000, Sid Hayn wrote:quoted
On Tue, Sep 4, 2018 at 5:11 PM Lorenzo Bianconi [off-list ref] wrote:quoted
quoted
I have one mt76x2u (Alfa AWUS036ACM) and a few mt76x0. I've noticed two additional issues in my testing. First issue, is that it appears the mt76x0 devices don't work properly in monitor mode. Sometimes they seem to monitor one channel properly, but nothing else. The mt76x2u works great, channel control, lots of packets, etc.Could you elaborate a little bit please? how can you reproduce the issue? just add an interface in monitor mode and run a scan?Correct, standard stuff, use iw to create a monitor mode interface, use iw to remove managed mode interface, run some tool such as kismet or airodump-ng or even wireshark.But what exactly are the syptomps, I don't understand what you mean by "mt76x0 devices don't work properly in monitor mode" ?quoted
quoted
I guess it depends on eeprom values. Could you please enable debug messages a paste syslog output?I don't see a mediatek specific debug near the driver selection in menuconfig, what debug messages do you want me to enable and how?You need to uncomment this line: # ccflags-y := -DDEBUG in drivers/net/wireless/mediatek/mt76/mt76x0/MakefileI have done this change, rebooted, and plugged in the TP-Link t1u dongle which is 5GHz only. This is dmesg: [ 30.058587] usb 2-2: new high-speed USB device number 3 using xhci_hcd [ 30.200008] usb 2-2: New USB device found, idVendor=2357, idProduct=0105, bcdDevice= 1.00 [ 30.200010] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 30.200012] usb 2-2: Product: WiFi [ 30.200013] usb 2-2: Manufacturer: MediaTek [ 30.200015] usb 2-2: SerialNumber: 1.0 [ 30.332895] usb 2-2: reset high-speed USB device number 3 using xhci_hcd [ 30.466124] mt76x0 2-2:1.0: ASIC revision: 76100002 MAC revision: 76502000 [ 30.467534] mt76x0 2-2:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201308221655____ [ 30.789455] mt76x0 2-2:1.0: loading FW - ILM 68716 + IVB 64 [ 30.844588] mt76x0 2-2:1.0: loading FW - DLM 11476 [ 31.172677] mt76x0 2-2:1.0: Firmware running! [ 31.378879] mt76x0 2-2:1.0: MCU not ready [ 31.393770] BBP version f000f200 [ 31.410935] mt76x0 2-2:1.0: EEPROM ver:02 fae:01 [ 31.411086] mt76x0 2-2:1.0: NIC_CONF0: fd11 NIC_CONF1: 3084 [ 31.411088] mt76x0 2-2:1.0: Has 2GHZ 1 5GHZ 1
as you can see the eeprom reports both bands. I will review mt76x0 eeprom layout later today Regards, Lorenzo
[ 31.411089] mt76x0 2-2:1.0: PA Type 1 [ 31.411090] mt76x0 2-2:1.0: REG 2GHZ 0 REG 5GHZ 9 [ 31.411092] mt76x0 2-2:1.0: EEPROM country region 00 (channels 1-11) [ 31.416308] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht' [ 31.417285] usbcore: registered new interface driver mt76x0 What would you like next? -Zeroquoted
Thanks Stanislaw