morrownr / 7612u

Linux Support for USB WiFi Adapters that are based on the MT7612U Chipset
73 stars 9 forks source link

Bug Report: Wireless Network Freeze on Ubuntu 22.04.3 LTS #21

Open MightyMirko opened 8 months ago

MightyMirko commented 8 months ago

Experiencing persistent issues with the FRITZ!WLAN USB Stick AC 860 on Ubuntu 22.04.3 LTS. The wireless connection drops after some time, and attempting to bring the network interface down and up results in a complete system freeze. System Information:

Operating System:
    Ubuntu Version: 22.04.3 LTS (Jammy Jellyfish)
    Kernel Version: 6.2.0-39-generic

Wireless Device:
    FRITZ!WLAN USB Stick AC 860

Description:

Spoiler warning ```bash ➜ ~ sudo lspci -nnk 00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [8086:591f] (rev 05) Subsystem: Fujitsu Technology Solutions Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [1734:1233] Kernel driver in use: skl_uncore 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 630 [8086:5912] (rev 04) Subsystem: Fujitsu Technology Solutions HD Graphics 630 [1734:1233] Kernel driver in use: i915 Kernel modules: i915 00:14.0 USB controller [0c03]: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller [8086:a2af] Subsystem: Fujitsu Technology Solutions 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller [1734:1231] Kernel driver in use: xhci_hcd Kernel modules: xhci_pci 00:14.2 Signal processing controller [1180]: Intel Corporation 200 Series PCH Thermal Subsystem [8086:a2b1] Subsystem: Fujitsu Technology Solutions 200 Series PCH Thermal Subsystem [1734:1231] 00:16.0 Communication controller [0780]: Intel Corporation 200 Series PCH CSME HECI #1 [8086:a2ba] Subsystem: Fujitsu Technology Solutions 200 Series PCH CSME HECI [1734:1231] Kernel driver in use: mei_me Kernel modules: mei_me 00:16.3 Serial controller [0700]: Intel Corporation Device [8086:a2bd] Subsystem: Fujitsu Technology Solutions Device [1734:1231] Kernel driver in use: serial 00:17.0 SATA controller [0106]: Intel Corporation 200 Series PCH SATA controller [AHCI mode] [8086:a282] Subsystem: Fujitsu Technology Solutions 200 Series PCH SATA controller [AHCI mode] [1734:1231] Kernel driver in use: ahci Kernel modules: ahci 00:1f.0 ISA bridge [0601]: Intel Corporation 200 Series PCH LPC Controller (Q270) [8086:a2c6] Subsystem: Fujitsu Technology Solutions 200 Series PCH LPC Controller (Q270) [1734:1231] 00:1f.2 Memory controller [0580]: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller [8086:a2a1] Subsystem: Fujitsu Technology Solutions 200 Series/Z370 Chipset Family Power Management Controller [1734:1231] 00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0] Subsystem: Fujitsu Technology Solutions 200 Series PCH HD Audio [1734:1232] Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel, snd_soc_avs 00:1f.4 SMBus [0c05]: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller [8086:a2a3] Subsystem: Fujitsu Technology Solutions 200 Series/Z370 Chipset Family SMBus Controller [1734:1231] Kernel driver in use: i801_smbus Kernel modules: i2c_i801 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I219-LM [8086:15b7] Subsystem: Fujitsu Technology Solutions Ethernet Connection (2) I219-LM [1734:121f] Kernel driver in use: e1000e Kernel modules: e1000e ``` ```bash ➜ ~ lsusb Bus 002 Device 006: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter Bus 002 Device 005: ID 05e3:0612 Genesys Logic, Inc. Hub Bus 002 Device 004: ID 05e3:0612 Genesys Logic, Inc. Hub Bus 002 Device 003: ID 05e3:0612 Genesys Logic, Inc. Hub Bus 002 Device 002: ID 0781:558c SanDisk Corp. Extreme Portable SSD Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 006: ID 0b0e:0306 GN Netcom Jabra EVOLVE LINK Bus 001 Device 005: ID 04f2:1113 Chicony Electronics Co., Ltd USB Keyboard Bus 001 Device 008: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 001 Device 007: ID 05e3:0610 Genesys Logic, Inc. Hub Bus 001 Device 004: ID 05e3:0610 Genesys Logic, Inc. Hub Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub Bus 001 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter Bus 001 Device 010: ID 057c:8503 AVM GmbH FRITZ!WLAN AC 860 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub ``` ```bash ➜ ~ lsmod Module Size Used by mt76x2u 28672 0 mt76x2_common 28672 1 mt76x2u mt76x02_usb 28672 1 mt76x2u mt76_usb 45056 2 mt76x02_usb,mt76x2u mt76x02_lib 114688 3 mt76x02_usb,mt76x2u,mt76x2_common mt76 122880 5 mt76_usb,mt76x02_lib,mt76x02_usb,mt76x2u,mt76x2_common mac80211 1617920 4 mt76,mt76x02_lib,mt76x02_usb,mt76x2u cfg80211 1241088 5 mt76,mt76x02_lib,mac80211,mt76x02_usb,mt76x2_common libarc4 16384 1 mac80211 ntfs3 335872 0 xt_conntrack 16384 1 nft_chain_nat 16384 3 xt_MASQUERADE 20480 1 nf_nat 61440 2 nft_chain_nat,xt_MASQUERADE nf_conntrack_netlink 61440 0 nf_conntrack 204800 4 xt_conntrack,nf_nat,nf_conntrack_netlink,xt_MASQUERADE nf_defrag_ipv6 24576 1 nf_conntrack nf_defrag_ipv4 16384 1 nf_conntrack xfrm_user 61440 0 xfrm_algo 20480 1 xfrm_user xt_addrtype 16384 2 nft_compat 20480 4 nf_tables 352256 57 nft_compat,nft_chain_nat libcrc32c 16384 3 nf_conntrack,nf_nat,nf_tables nfnetlink 24576 3 nft_compat,nf_conntrack_netlink,nf_tables br_netfilter 32768 0 bridge 409600 1 br_netfilter stp 16384 1 bridge llc 16384 2 bridge,stp ipmi_devintf 20480 0 ipmi_msghandler 94208 1 ipmi_devintf overlay 188416 0 snd_hda_codec_hdmi 94208 1 snd_hda_codec_realtek 192512 1 snd_hda_codec_generic 118784 1 snd_hda_codec_realtek ledtrig_audio 16384 1 snd_hda_codec_generic joydev 32768 0 input_leds 16384 0 hid_jabra 16384 0 snd_soc_avs 176128 0 binfmt_misc 24576 1 snd_soc_hda_codec 24576 1 snd_soc_avs intel_rapl_msr 20480 0 intel_rapl_common 40960 1 intel_rapl_msr snd_hda_ext_core 36864 2 snd_soc_avs,snd_soc_hda_codec intel_tcc_cooling 16384 0 snd_soc_core 417792 2 snd_soc_avs,snd_soc_hda_codec nls_iso8859_1 16384 1 snd_compress 28672 2 snd_soc_avs,snd_soc_core ac97_bus 16384 1 snd_soc_core snd_pcm_dmaengine 20480 1 snd_soc_core hid_generic 16384 0 x86_pkg_temp_thermal 20480 0 mei_pxp 20480 0 mei_hdcp 28672 0 intel_powerclamp 24576 0 snd_hda_intel 61440 1 snd_intel_dspcfg 36864 2 snd_soc_avs,snd_hda_intel snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg coretemp 24576 0 i915 3899392 21 snd_hda_codec 204800 6 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_codec_realtek snd_usb_audio 425984 3 snd_usbmidi_lib 53248 1 snd_usb_audio snd_hda_core 135168 8 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek snd_hwdep 20480 2 snd_usb_audio,snd_hda_codec mc 81920 1 snd_usb_audio kvm_intel 503808 0 usbhid 73728 0 snd_seq_midi 20480 0 drm_buddy 20480 1 i915 snd_pcm 192512 10 snd_soc_avs,snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine snd_seq_midi_event 16384 1 snd_seq_midi hid 176128 3 usbhid,hid_generic,hid_jabra kvm 1347584 1 kvm_intel ttm 110592 1 i915 irqbypass 16384 1 kvm snd_rawmidi 53248 2 snd_seq_midi,snd_usbmidi_lib crct10dif_pclmul 16384 1 drm_display_helper 212992 1 i915 polyval_clmulni 16384 0 polyval_generic 16384 1 polyval_clmulni snd_seq 94208 2 snd_seq_midi,snd_seq_midi_event cec 94208 2 drm_display_helper,i915 ghash_clmulni_intel 16384 0 rc_core 77824 1 cec sha512_ssse3 53248 0 snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi aesni_intel 397312 0 drm_kms_helper 249856 2 drm_display_helper,i915 crypto_simd 20480 1 aesni_intel snd_timer 49152 2 snd_seq,snd_pcm cryptd 28672 2 crypto_simd,ghash_clmulni_intel i2c_algo_bit 16384 1 i915 syscopyarea 16384 1 drm_kms_helper snd 135168 22 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi rapl 20480 0 mei_me 57344 2 sysfillrect 20480 1 drm_kms_helper sysimgblt 20480 1 drm_kms_helper mei 167936 5 mei_hdcp,mei_pxp,mei_me soundcore 16384 1 snd intel_cstate 24576 0 fujitsu_laptop 32768 0 ee1004 20480 0 sparse_keymap 16384 1 fujitsu_laptop mac_hid 16384 0 acpi_pad 184320 0 sch_fq_codel 24576 4 msr 16384 0 parport_pc 53248 0 ppdev 24576 0 lp 28672 0 parport 73728 3 parport_pc,lp,ppdev drm 700416 12 drm_kms_helper,drm_display_helper,drm_buddy,i915,ttm efi_pstore 16384 0 ip_tables 36864 0 x_tables 65536 5 xt_conntrack,nft_compat,xt_addrtype,ip_tables,xt_MASQUERADE autofs4 57344 2 r8153_ecm 16384 0 cdc_ether 24576 1 r8153_ecm usbnet 65536 2 r8153_ecm,cdc_ether ses 20480 0 enclosure 24576 1 ses scsi_transport_sas 53248 1 ses uas 28672 4 usb_storage 86016 1 uas r8152 139264 1 r8153_ecm mii 20480 2 usbnet,r8152 crc32_pclmul 16384 0 e1000e 352256 0 i2c_i801 40960 0 ahci 49152 0 xhci_pci 24576 0 i2c_smbus 20480 1 i2c_i801 libahci 57344 1 ahci xhci_pci_renesas 20480 1 xhci_pci video 73728 2 fujitsu_laptop,i915 wmi 40960 1 video ➜ ~ ```

Steps to Reproduce:

Connect FRITZ!WLAN USB Stick AC 860.
Observe network connection over time.
Attempt to bring the wireless interface down and up.
System freezes completely.

Expected Behavior:

Stable wireless connection without system freeze when manipulating the network interface. Actual Behavior:

Wireless connection drops over time, and attempting to bring the interface down and up results in a complete system freeze. Logs and Outputs:

Spoiler warning ```bash [ 32.336572] usb 1-2: new high-speed USB device number 9 using xhci_hcd [ 32.486209] usb 1-2: New USB device found, idVendor=057c, idProduct=62ff, bcdDevice= 3.17 [ 32.486213] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 32.486215] usb 1-2: Product: FRITZ!WLAN USB Stick AC 860 [ 32.486217] usb 1-2: Manufacturer: AVM Berlin [ 32.486218] usb 1-2: SerialNumber: 0C72746129DC [ 32.489743] usb-storage 1-2:1.0: USB Mass Storage device detected [ 32.490088] scsi host7: usb-storage 1-2:1.0 [ 33.204808] usb 1-2: USB disconnect, device number 9 [ 34.044583] usb 1-2: new high-speed USB device number 10 using xhci_hcd [ 34.194041] usb 1-2: New USB device found, idVendor=057c, idProduct=8503, bcdDevice= 1.00 [ 34.194046] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 34.194047] usb 1-2: Product: FRITZ!WLAN AC 860 [ 34.194049] usb 1-2: Manufacturer: AVM [ 34.194050] usb 1-2: SerialNumber: 0C72746129DC [ 34.261272] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 34.261495] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 34.468749] usb 1-2: reset high-speed USB device number 10 using xhci_hcd [ 34.618603] mt76x2u 1-2:1.0: ASIC revision: 76120044 [ 34.648362] mt76x2u 1-2:1.0: ROM patch build: 20141115060606a [ 34.781295] mt76x2u 1-2:1.0: Firmware Version: 0.0.00 [ 34.781299] mt76x2u 1-2:1.0: Build: 1 [ 34.781300] mt76x2u 1-2:1.0: Build Time: 201507311614____ [ 35.531657] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' [ 35.532501] usbcore: registered new interface driver mt76x2u [ 35.550564] mt76x2u 1-2:1.0 wlx0c72746129dc: renamed from wlan0 [ 38.869624] audit: type=1400 audit(1703680149.830:99): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=3575 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [ 38.872008] audit: type=1400 audit(1703680149.830:100): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=3575 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [ 38.872133] audit: type=1400 audit(1703680149.830:101): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=3575 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [ 38.872268] audit: type=1400 audit(1703680149.830:102): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=3575 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [ 43.193321] wlx0c72746129dc: authenticate with 0a:a0:57:58:fc:ab [ 43.759825] wlx0c72746129dc: send auth to 0a:a0:57:58:fc:ab (try 1/3) [ 43.761229] wlx0c72746129dc: authenticated [ 43.764423] wlx0c72746129dc: associate with 0a:a0:57:58:fc:ab (try 1/3) [ 43.767863] wlx0c72746129dc: RX AssocResp from 0a:a0:57:58:fc:ab (capab=0x1001 status=0 aid=3) [ 43.770624] wlx0c72746129dc: associated [ 43.771006] IPv6: ADDRCONF(NETDEV_CHANGE): wlx0c72746129dc: link becomes ready [ 43.820492] wlx0c72746129dc: Limiting TX power to 23 (23 - 0) dBm as advertised by 0a:a0:57:58:fc:ab ➜ ~ ```

Additional Information:

Network Manager logs indicate a new lease with IP address 10.172.95.199.
FRITZ!WLAN USB Stick AC 860 is used for wireless connection.
Ethernet connection uses Intel Ethernet Connection I219-LM and two usb nic for two different subnets in Robot LAN
Spoiler warning ```bash ~ nmcli -o wlx0c72746129dc: connected to KA-WLAN "AVM FRITZ!WLAN AC 860" wifi (mt76x2u), 0C:72:74:61:29:DC, hw, mtu 1500 ip4 default inet4 10.172.95.199/19 route4 10.172.64.0/19 metric 600 route4 default via 10.172.64.1 metric 600 inet6 fe80::810c:796a:96b7:f4ff/64 route6 fe80::/64 metric 1024 docker0: connected (externally) to docker0 "docker0" bridge, 02:42:2D:DB:F4:DB, sw, mtu 1500 inet4 172.17.0.1/16 route4 172.17.0.0/16 metric 0 enx00e04c000a05: connected to robonet "Realtek RTL8153" ethernet (r8152), 42:92:22:A5:AA:51, hw, mtu 1500 inet4 172.31.1.21/24 route4 172.31.1.0/24 metric 101 enx00e04c680542: connected to FRI iTEC USB NIC "Realtek RTL8153" ethernet (r8152), 00:E0:4C:68:05:42, hw, mtu 1500 inet4 172.31.0.21/24 route4 172.31.0.0/24 metric 100 route4 169.254.0.0/16 metric 1000 p2p-dev-wlx0c72746129dc: disconnected "p2p-dev-wlx0c72746129dc" wifi-p2p, hw enp0s31f6: unavailable "Intel I219-LM" ethernet (e1000e), 4C:52:62:0C:F2:D6, hw, mtu 1500 lo: unmanaged "lo" loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536 DNS configuration: servers: 185.52.244.24 interface: wlx0c72746129dc servers: 172.31.1.2 193.196.64.1 193.196.64.2 domains: robonet.hs-karlsruhe.de hs-karlsruhe.de interface: enx00e04c000a05 ```

Community Discussion:

No related discussions found on community forums.

Please let me know if you need further information or if there are specific details you'd like to add to this bug report.

MightyMirko commented 8 months ago

It seems like it is happening if i try to download docker images, or apt upgrade

MightyMirko commented 8 months ago

Ubuntu was installed to usbc ssd and was sharing usb host with avm 860. Now i copied ubuntu to internal hdd and it seems to work fine :-)

morrownr commented 8 months ago

Can you install wavemon for testing?

$ sudp apt install wavemon $ wavemon

What are the link quality and signal level numbers?

Is the adapter in a usb2 or usb3 port?

MightyMirko commented 8 months ago

image

morrownr commented 8 months ago

Ubuntu was installed to usbc ssd and was sharing usb host with avm 860. Now i copied ubuntu to internal hdd and it seems to work fine :-)

That makes sense. Running a system from a drive plugged into usb3 is not always reliable. USB3 is not mankind's great invention.

I see wavemon now. You have a solid, strong signal and should be getting good throughput numbers. Hopefully it is stable for you with Ubuntu installed on an internal driver.