Bug 203657
Summary: | mt76x2 based Netgear A6210 Wifi Adapter stops working after initial connection | ||
---|---|---|---|
Product: | Drivers | Reporter: | Smurf (jksmurf) |
Component: | network-wireless | Assignee: | drivers_network-wireless (drivers_network-wireless) |
Status: | NEW --- | ||
Severity: | normal | CC: | bjlockie, lorenzo.bianconi83, marc, stevenxxiu, vh12345 |
Priority: | P1 | ||
Hardware: | ARM | ||
OS: | Linux | ||
Kernel Version: | 5.1.1 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
dmesg Libreelec Alpha 0519 for ARM RPi2 Kernel 5.1.1
iw wlan0 and iw event -t -f logs wlan and wiphy info iw dev wlan0 scan |
Description
Smurf
2019-05-20 15:26:11 UTC
Created attachment 282853 [details]
iw wlan0 and iw event -t -f logs
Created attachment 282855 [details]
wlan and wiphy info
Created attachment 282857 [details]
iw dev wlan0 scan
Just another trial, same thing dmesg output http://ix.io/1GOy This is from when it gets recognized to when it hangs and I cannot SSH back in. [ 132.875525] usb 1-1.4.4: Product: A6210 [ 132.875536] usb 1-1.4.4: Manufacturer: NETGEAR [ 132.875546] usb 1-1.4.4: SerialNumber: 100 [ 132.957448] usb 1-1.4.4: reset high-speed USB device number 7 using dwc_otg [ 133.051953] mt76x2u 1-1.4.4:1.0: ASIC revision: 76120044 [ 133.084573] mt76x2u 1-1.4.4:1.0: ROM patch build: 20141115060606a [ 133.260292] mt76x2u 1-1.4.4:1.0: Firmware Version: 0.0.00 [ 133.260310] mt76x2u 1-1.4.4:1.0: Build: 1 [ 133.260321] mt76x2u 1-1.4.4:1.0: Build Time: 201507311614____ [ 134.436187] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht' [ 135.137071] wlan0: authenticate with ac:9e:17:7b:f5:70 [ 135.602043] wlan0: send auth to ac:9e:17:7b:f5:70 (try 1/3) [ 135.604216] wlan0: authenticated [ 135.607910] wlan0: associate with ac:9e:17:7b:f5:70 (try 1/3) [ 135.611795] wlan0: RX AssocResp from ac:9e:17:7b:f5:70 (capab=0x1411 status=0 aid=2) [ 135.618032] wlan0: associated [ 135.649370] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 185.186264] wlan0: disconnect from AP ac:9e:17:7b:f5:70 for new auth to 0c:9d :92:49:2c:ac [ 186.719571] wlan0: authenticate with 0c:9d:92:49:2c:ac [ 187.289556] wlan0: send auth to 0c:9d:92:49:2c:ac (try 1/3) [ 187.298626] wlan0: authenticated [ 187.308777] wlan0: associate with 0c:9d:92:49:2c:ac (try 1/3) [ 187.314079] wlan0: RX ReassocResp from 0c:9d:92:49:2c:ac (capab=0x11 status=0 aid=1) [ 187.324039] wlan0: associated [ 1037.385617] wlan0: disconnect from AP 0c:9d:92:49:2c:ac for new auth to 0c:9d :92:49:2c:a8 [ 1039.171683] wlan0: authenticate with 0c:9d:92:49:2c:a8 [ 1039.642429] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 1/3) [ 1039.655712] wlan0: authenticated [ 1039.661732] wlan0: associate with 0c:9d:92:49:2c:a8 (try 1/3) [ 1039.665828] wlan0: RX ReassocResp from 0c:9d:92:49:2c:a8 (capab=0x411 status= 0 aid=1) [ 1039.673367] wlan0: associated [ 1043.036117] wlan0: deauthenticated from 0c:9d:92:49:2c:a8 (Reason: 4=DISASSOC _DUE_TO_INACTIVITY) [ 1043.642816] wlan0: authenticate with 0c:9d:92:49:2c:a8 [ 1044.111840] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 1/3) [ 1044.231104] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 2/3) [ 1044.347776] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 3/3) [ 1044.464408] wlan0: authentication with 0c:9d:92:49:2c:a8 timed out [ 1046.461628] wlan0: authenticate with 0c:9d:92:49:2c:ac [ 1048.133128] wlan0: send auth to 0c:9d:92:49:2c:ac (try 1/3) [ 1048.143905] wlan0: authenticated [ 1048.161013] wlan0: associate with 0c:9d:92:49:2c:ac (try 1/3) [ 1048.162186] wlan0: RX AssocResp from 0c:9d:92:49:2c:ac (capab=0x11 status=0 a id=1) [ 1048.169655] wlan0: associated [ 1122.644163] wlan0: authenticate with 0c:9d:92:49:2c:a8 [ 1124.259692] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 1/3) [ 1124.889477] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 2/3) [ 1125.439743] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 3/3) [ 1126.080173] wlan0: authentication with 0c:9d:92:49:2c:a8 timed out [ 4081.073175] mt76u_complete_rx: 2934 callbacks suppressed [ 4081.074540] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.077534] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.078912] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.080648] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.080694] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.080731] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.080766] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.080806] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.080842] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.080877] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 [ 4081.187404] usb 1-1.4.4: USB disconnect, device number 7 [ 4081.196896] mt76x2u 1-1.4.4:1.0: mac specific condition occurred [ 4084.140447] usb 1-1.4.4: new high-speed USB device number 8 using dwc_otg [ 4084.231901] usb 1-1.4.4: New USB device found, idVendor=0846, idProduct=9053, bcdDevice= 1.00 [ 4084.231925] usb 1-1.4.4: New USB device strings: Mfr=1, Product=2, SerialNumb er=3 [ 4084.231937] usb 1-1.4.4: Product: A6210 [ 4084.231948] usb 1-1.4.4: Manufacturer: NETGEAR [ 4084.231959] usb 1-1.4.4: SerialNumber: 100 [ 4084.307115] usb 1-1.4.4: reset high-speed USB device number 8 using dwc_otg [ 4084.398258] mt76x2u 1-1.4.4:1.0: ASIC revision: 76120044 [ 4084.431333] mt76x2u 1-1.4.4:1.0: ROM patch build: 20141115060606a [ 4084.592529] mt76x2u 1-1.4.4:1.0: Firmware Version: 0.0.00 [ 4084.592547] mt76x2u 1-1.4.4:1.0: Build: 1 [ 4084.592558] mt76x2u 1-1.4.4:1.0: Build Time: 201507311614____ [ 4085.769446] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht' [ 4095.371864] wlan0: authenticate with 0c:9d:92:49:2c:ac [ 4097.038274] wlan0: send auth to 0c:9d:92:49:2c:ac (try 1/3) [ 4097.044436] wlan0: authenticated [ 4097.048004] wlan0: associate with 0c:9d:92:49:2c:ac (try 1/3) [ 4097.049437] wlan0: RX AssocResp from 0c:9d:92:49:2c:ac (capab=0x11 status=0 a id=1) [ 4097.058186] wlan0: associated [ 4097.081407] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready This bug is still present for kernel 5.10.16. It usually stops working after a lot of packets are sent/received for 1-2 hours, when playing web games. After the disconnect happens, I have the following logs: Feb 14 18:45:19 arch dhcpcd[590]: wlp0s20f0u14: failed to renew DHCP, rebinding Feb 14 18:45:19 arch dhcpcd[590]: wlp0s20f0u14: leased 192.168.0.231 for 3600 seconds Feb 14 18:46:21 arch kernel: mt76x2u 1-14:1.0: vendor request req:07 off:1798 failed:-110 Feb 14 18:46:24 arch kernel: mt76x2u 1-14:1.0: vendor request req:07 off:1718 failed:-110 The last line continues until I have to hard shut-down. (In reply to Smurf from comment #4) > Just another trial, same thing > > dmesg output > http://ix.io/1GOy > > This is from when it gets recognized to when it hangs and I cannot SSH back > in. > > [ 132.875525] usb 1-1.4.4: Product: A6210 > [ 132.875536] usb 1-1.4.4: Manufacturer: NETGEAR > [ 132.875546] usb 1-1.4.4: SerialNumber: 100 > [ 132.957448] usb 1-1.4.4: reset high-speed USB device number 7 using > dwc_otg > [ 133.051953] mt76x2u 1-1.4.4:1.0: ASIC revision: 76120044 > [ 133.084573] mt76x2u 1-1.4.4:1.0: ROM patch build: 20141115060606a > [ 133.260292] mt76x2u 1-1.4.4:1.0: Firmware Version: 0.0.00 > [ 133.260310] mt76x2u 1-1.4.4:1.0: Build: 1 > [ 133.260321] mt76x2u 1-1.4.4:1.0: Build Time: 201507311614____ > [ 134.436187] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht' > [ 135.137071] wlan0: authenticate with ac:9e:17:7b:f5:70 > [ 135.602043] wlan0: send auth to ac:9e:17:7b:f5:70 (try 1/3) > [ 135.604216] wlan0: authenticated > [ 135.607910] wlan0: associate with ac:9e:17:7b:f5:70 (try 1/3) > [ 135.611795] wlan0: RX AssocResp from ac:9e:17:7b:f5:70 (capab=0x1411 > status=0 > aid=2) > [ 135.618032] wlan0: associated > [ 135.649370] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready > [ 185.186264] wlan0: disconnect from AP ac:9e:17:7b:f5:70 for new auth to > 0c:9d > :92:49:2c:ac > [ 186.719571] wlan0: authenticate with 0c:9d:92:49:2c:ac > [ 187.289556] wlan0: send auth to 0c:9d:92:49:2c:ac (try 1/3) > [ 187.298626] wlan0: authenticated > [ 187.308777] wlan0: associate with 0c:9d:92:49:2c:ac (try 1/3) > [ 187.314079] wlan0: RX ReassocResp from 0c:9d:92:49:2c:ac (capab=0x11 > status=0 > aid=1) > [ 187.324039] wlan0: associated > [ 1037.385617] wlan0: disconnect from AP 0c:9d:92:49:2c:ac for new auth to > 0c:9d > :92:49:2c:a8 > [ 1039.171683] wlan0: authenticate with 0c:9d:92:49:2c:a8 > [ 1039.642429] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 1/3) > [ 1039.655712] wlan0: authenticated > [ 1039.661732] wlan0: associate with 0c:9d:92:49:2c:a8 (try 1/3) > [ 1039.665828] wlan0: RX ReassocResp from 0c:9d:92:49:2c:a8 (capab=0x411 > status= > 0 aid=1) > [ 1039.673367] wlan0: associated > [ 1043.036117] wlan0: deauthenticated from 0c:9d:92:49:2c:a8 (Reason: > 4=DISASSOC > _DUE_TO_INACTIVITY) > [ 1043.642816] wlan0: authenticate with 0c:9d:92:49:2c:a8 > [ 1044.111840] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 1/3) > [ 1044.231104] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 2/3) > [ 1044.347776] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 3/3) > [ 1044.464408] wlan0: authentication with 0c:9d:92:49:2c:a8 timed out > [ 1046.461628] wlan0: authenticate with 0c:9d:92:49:2c:ac > [ 1048.133128] wlan0: send auth to 0c:9d:92:49:2c:ac (try 1/3) > [ 1048.143905] wlan0: authenticated > [ 1048.161013] wlan0: associate with 0c:9d:92:49:2c:ac (try 1/3) > [ 1048.162186] wlan0: RX AssocResp from 0c:9d:92:49:2c:ac (capab=0x11 > status=0 a > id=1) > [ 1048.169655] wlan0: associated > [ 1122.644163] wlan0: authenticate with 0c:9d:92:49:2c:a8 > [ 1124.259692] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 1/3) > [ 1124.889477] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 2/3) > [ 1125.439743] wlan0: send auth to 0c:9d:92:49:2c:a8 (try 3/3) > [ 1126.080173] wlan0: authentication with 0c:9d:92:49:2c:a8 timed out > [ 4081.073175] mt76u_complete_rx: 2934 callbacks suppressed > [ 4081.074540] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.077534] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.078912] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.080648] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.080694] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.080731] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.080766] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.080806] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.080842] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.080877] mt76x2u 1-1.4.4:1.0: rx urb failed: -71 > [ 4081.187404] usb 1-1.4.4: USB disconnect, device number 7 > [ 4081.196896] mt76x2u 1-1.4.4:1.0: mac specific condition occurred > [ 4084.140447] usb 1-1.4.4: new high-speed USB device number 8 using dwc_otg > [ 4084.231901] usb 1-1.4.4: New USB device found, idVendor=0846, > idProduct=9053, > bcdDevice= 1.00 > [ 4084.231925] usb 1-1.4.4: New USB device strings: Mfr=1, Product=2, > SerialNumb > er=3 > [ 4084.231937] usb 1-1.4.4: Product: A6210 > [ 4084.231948] usb 1-1.4.4: Manufacturer: NETGEAR > [ 4084.231959] usb 1-1.4.4: SerialNumber: 100 > [ 4084.307115] usb 1-1.4.4: reset high-speed USB device number 8 using > dwc_otg > [ 4084.398258] mt76x2u 1-1.4.4:1.0: ASIC revision: 76120044 > [ 4084.431333] mt76x2u 1-1.4.4:1.0: ROM patch build: 20141115060606a > [ 4084.592529] mt76x2u 1-1.4.4:1.0: Firmware Version: 0.0.00 > [ 4084.592547] mt76x2u 1-1.4.4:1.0: Build: 1 > [ 4084.592558] mt76x2u 1-1.4.4:1.0: Build Time: 201507311614____ > [ 4085.769446] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht' > [ 4095.371864] wlan0: authenticate with 0c:9d:92:49:2c:ac > [ 4097.038274] wlan0: send auth to 0c:9d:92:49:2c:ac (try 1/3) > [ 4097.044436] wlan0: authenticated > [ 4097.048004] wlan0: associate with 0c:9d:92:49:2c:ac (try 1/3) > [ 4097.049437] wlan0: RX AssocResp from 0c:9d:92:49:2c:ac (capab=0x11 > status=0 a > id=1) > [ 4097.058186] wlan0: associated > [ 4097.081407] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready Can you please try loading the mt76_usb module with disable_usb_sg=1? "try loading the mt76_usb module with disable_usb_sg=1?" I'm terribly sorry Lorenzo, I am as much a Linux newbie now as I was in May 2019 when I first posted this. Could you please point me to a website where I can work out how to load the module with these parameters and into which file (i.e. file name) I must add them? Thank you! Kristian @Smurf I put them in `/etc/modprobe.d/modprobe.conf` (or any `.conf` file like `mt76_usb.conf`, but I like to put them all in `modprobe.conf`): ``` # Fix possible wifi crash when using the Netgear A6210 Adapter options mt76_usb disable_usb_sg=1 ``` To check that it works when you reload the module/reboot: ``` $ systool -v -m mt76_usb Module = "mt76_usb" Attributes: coresize = "36864" initsize = "0" initstate = "live" refcnt = "2" srcversion = "7053B45E27B11BC2C7BE023" taint = "" uevent = <store method only> Parameters: disable_usb_sg = "Y" Sections: ``` Thanks steven. I put it in /storage/.config/modprobe.d/mt76_usb.conf My RPi4 runs using Librelec and unfortunately it doesn't seem to respond to systool so I cannot test as your recommendation. WIll just have to see if it works :-). Cheers k. (In reply to Smurf from comment #9) > Thanks steven. > > I put it in /storage/.config/modprobe.d/mt76_usb.conf > > My RPi4 runs using Librelec and unfortunately it doesn't seem to respond to > systool so I cannot test as your recommendation. WIll just have to see if it > works :-). > > Cheers > > k. you can just check in the sys fs: # cat /sys/module/mt76_usb/parameters/disable_usb_sg N (In reply to Smurf from comment #9) > Thanks steven. > > I put it in /storage/.config/modprobe.d/mt76_usb.conf > > My RPi4 runs using Librelec and unfortunately it doesn't seem to respond to > systool so I cannot test as your recommendation. WIll just have to see if it > works :-). > > Cheers > > k. do you have any news? (In reply to Lorenzo Bianconi from comment #11) > (In reply to Smurf from comment #9) > > Thanks steven. > > > > I put it in /storage/.config/modprobe.d/mt76_usb.conf > > > > My RPi4 runs using Librelec and unfortunately it doesn't seem to respond to > > systool so I cannot test as your recommendation. Will just have to see if > it > > works :-). > > > > Cheers > > > > k. > > do you have any news? Hi Lorenzo, I haven;t found time this week due to work commitments to run this as you advsied above: "you can just check in the sys fs: # cat /sys/module/mt76_usb/parameters/disable_usb_sg N" But I ran the RPi4 for a wee while using the Netgear A6210 Adapter as WiFi (not the in-built one) and it seemed to work OK running various tests on TV shows. Will try again on the weekend hopefully. Hope Steven gets back to you too. Cheers k. Well played some games occasionally and this hasn't crashed yet, but I'll report back if it does. It used to take a couple of tries before it crashes. If this is indicative of anything, usually when it crashes, my keyboard/mouse/USB wifi sometimes don't work on the next startup either. To fix this, after I shutdown, I have to turn off the desktop's power button and turn it back on again. Hmm yesterday this happened again, and I had to hard reset. The flag was enabled: $ cat /sys/module/mt76_usb/parameters/disable_usb_sg Y @Lorenzo Bianconi Is there any logs I can provide to make it easier to debug why it's crashing? Or some way for me to log some data you need when the crash occurs? This doesn't help but I had a similar problem (mac specific condition occurred) but disable_usb_sg fixed it for me. https://github.com/openwrt/mt76/issues/405 This is still happening. Just happened yesterday on kernel 5.13.13. fwiw I have issue with NetGear A6210 on x86_64 with mt76x2u as well: [ 13.582638] mt76x2u 1-5:1.0: ASIC revision: 76120044 [ 14.044312] mt76x2u 1-5:1.0: ROM patch build: 20141115060606a [ 14.263574] mt76x2u 1-5:1.0: Firmware Version: 0.0.00 [ 14.263579] mt76x2u 1-5:1.0: Build: 1 [ 14.263581] mt76x2u 1-5:1.0: Build Time: 201507311614____ [ 15.093199] usbcore: registered new interface driver mt76x2u [ 15.234008] mt76x2u 1-5:1.0 wlx80cc9c9950d2: renamed from wlan0 I get IPv6 address but no IPv4 address even if it gets offered by server Jan 31 15:52:37 helper dhcpd: DHCPDISCOVER from 80:cc:9c:99:50:d2 (desktop-kubuntu) via enp2s0 Jan 31 15:52:37 helper dhcpd: DHCPOFFER on 192.168.168.152 to 80:cc:9c:99:50:d2 (desktop-kubuntu) via enp2s0 So finally interface configuration (via Kubuntu Netweok manager) bails out and one sees deauthenticating: [ 1396.057802] wlx80cc9c9950d2: authenticate with 94:83:c4:0c:d7:96 [ 1396.631761] wlx80cc9c9950d2: send auth to 94:83:c4:0c:d7:96 (try 1/3) [ 1396.637664] wlx80cc9c9950d2: authenticated [ 1396.641678] wlx80cc9c9950d2: associate with 94:83:c4:0c:d7:96 (try 1/3) [ 1396.644022] wlx80cc9c9950d2: RX AssocResp from 94:83:c4:0c:d7:96 (capab=0x11 status=0 aid=1) [ 1396.649238] wlx80cc9c9950d2: associated [ 1447.058552] wlx80cc9c9950d2: deauthenticating from 94:83:c4:0c:d7:96 by local choice (Reason: 3=DEAUTH_LEAVING) Let me know if I can help tropubleshooting, Have a nice day. @Marc Duponcheel That's a separate issue. Can you move this to another thread, thanks. ``` # Fix possible wifi crash when using the Netgear A6210 Adapter options mt76_usb disable_usb_sg=1 ``` Works for me, thank you. This is much better than patch the file. https://github.com/openwrt/mt76/issues/454 Tested on Mint 20.3 with A6210 Linux 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux |