Bug 203657

Summary: mt76x2 based Netgear A6210 Wifi Adapter stops working after initial connection
Product: Drivers Reporter: Smurf (jksmurf)
Component: network-wirelessAssignee: 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 282851 [details]
dmesg Libreelec Alpha 0519 for ARM RPi2 Kernel 5.1.1

Librelec Alpha Matrix 19 with Linux 5.1.1 on RPi2, using Netgear A6210 Adapter. Linux newbie.

Can get brief initial Wifi connection, but then get reproducible disconnects after which I cannot get back in via SSH but at same time (a) my router shows the WiFi adpater is still connected and (b) Libreelec's Configuration shows the Wireless network as Active and the Connection still available. Cannot play any video or access apps requiring Wifi.

Power management is off on the Adapter. Power source OK and tried with and without a powered hub so power should be fine.

If I pull out the adapter and replug it (or pull the power on the RPi2 completely), it will work fine, reconnects (then goes through the above cycle). 

The system works great playing Kodi HD Videos (tested for an hour) using another Adapter, a TP-Link T4Uv2 [but this is an out of tree driver which Libreelec say they will remove in LE10]. Ethernet works too.

Post initial connect condition (OK):

LibreELEC (Milhouse): devel-20190519212154-#0519-g77c88ba (RPi2.arm)
QTPi2:~ # iw dev wlan0 link
Connected to xx:xx:xx:xx:xx:ac (on wlan0)
        SSID: SmurfNET
        freq: 5220
        RX: 295894 bytes (1320 packets)
        TX: 107120 bytes (728 packets)
        signal: -43 dBm
        tx bitrate: 650.0 MBit/s VHT-MCS 7 80MHz short GI VHT-NSS 2

        bss flags:      short-slot-time
        dtim period:    3
        beacon int:     100

QTPi2:~ # ethtool -i wlan0
driver: mt76x2u
version: 5.1.1
firmware-version: 0.0.00-b1
expansion-rom-version:
bus-info: 1-1.5:1.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

Typical dmesg output after Wifi failure http://ix.io/1JxK

[   25.415767] mt76u_complete_rx: 86774 callbacks suppressed
[   25.415783] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.415807] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.415827] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.415844] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.415862] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.415880] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.415898] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.415915] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.415933] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.415951] mt76x2u 1-1.4.3:1.0: rx urb failed: -71
[   25.419070] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   25.576132] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   25.729785] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   25.879456] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   26.030746] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   26.179051] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   26.310767] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   26.454223] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   26.600358] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   26.751313] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   26.900975] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   27.047424] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
[   27.194300] mt76x2u 1-1.4.3:1.0: vendor request req:07 off:1000 failed:-71
Comment 1 Smurf 2019-05-20 15:34:28 UTC
Created attachment 282853 [details]
iw wlan0 and iw event -t -f logs
Comment 2 Smurf 2019-05-20 15:34:51 UTC
Created attachment 282855 [details]
wlan and wiphy info
Comment 3 Smurf 2019-05-20 15:35:22 UTC
Created attachment 282857 [details]
iw dev wlan0 scan
Comment 4 Smurf 2019-05-21 23:48:59 UTC
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
Comment 5 stevenxxiu 2021-02-14 08:23:46 UTC
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.
Comment 6 Lorenzo Bianconi 2021-02-14 11:37:38 UTC
(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?
Comment 7 Smurf 2021-02-15 03:57:54 UTC
"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
Comment 8 stevenxxiu 2021-02-15 04:08:33 UTC
@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:
```
Comment 9 Smurf 2021-02-15 06:24:47 UTC
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.
Comment 10 Lorenzo Bianconi 2021-02-15 09:58:09 UTC
(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
Comment 11 Lorenzo Bianconi 2021-02-17 23:00:06 UTC
(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?
Comment 12 Smurf 2021-02-17 23:18:49 UTC
(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.
Comment 13 stevenxxiu 2021-02-18 01:17:18 UTC
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.
Comment 14 stevenxxiu 2021-02-23 02:59:39 UTC
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
Comment 15 stevenxxiu 2021-02-27 05:21:48 UTC
@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?
Comment 16 bjlockie 2021-04-14 00:58:38 UTC
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
Comment 17 stevenxxiu 2021-09-07 04:54:50 UTC
This is still happening. Just happened yesterday on kernel 5.13.13.
Comment 18 Marc Duponcheel 2022-01-31 16:24:42 UTC
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.
Comment 19 stevenxxiu 2022-02-01 00:04:40 UTC
@Marc Duponcheel That's a separate issue. Can you move this to another thread, thanks.
Comment 20 jason 2022-05-02 09:51:59 UTC
```
# 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