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

WiFi connection failure after kernel upgrade ( 5.15.5 ) - Realtek RTL8188EUS #90

Open
agnath18K opened this issue Dec 5, 2021 · 0 comments

Comments

@agnath18K
Copy link

agnath18K commented Dec 5, 2021

Distribution (run cat /etc/os-release):
Pop!_OS 21.04.

Kernel Release(uname -r):
5.15.5-76051505-generic

Kernel Version(uname -v):
#202111250933163820157921.04~09f1aa7-Ubuntu SMP Tue Nov 30 02:

Device Info (lsusb):
Bus 001 Device 002: ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]

Issue/Bug Description:
WiFi reconnecting frequently after Kernel upgrade. Reverted to old Kernel (5.13.0-7620-generic) and it works fine!

Dmesg : dmesg.log

Extracted dmesg releated to wifi.

[ 9.929401] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 9.929888] ee1004 0-0050: 512 byte EE1004-compliant SPD EEPROM, read-only
[ 9.930054] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 9.934841] mei_me 0000:00:16.0: enabling device (0000 -> 0002)
[ 9.943250] input: MSI WMI hotkeys as /devices/virtual/input/input13
[ 9.943469] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[ 9.947472] Bluetooth: Core ver 2.22
[ 9.947485] NET: Registered PF_BLUETOOTH protocol family
[ 9.947486] Bluetooth: HCI device and connection manager initialized
[ 9.947488] Bluetooth: HCI socket layer initialized
[ 9.947489] Bluetooth: L2CAP socket layer initialized
[ 9.947491] Bluetooth: SCO socket layer initialized
[ 9.951426] Intel(R) Wireless WiFi driver for Linux
[ 9.951726] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[ 9.961079] iwlwifi 0000:00:14.3: WRT: Overriding region id 0
[ 9.961083] iwlwifi 0000:00:14.3: WRT: Overriding region id 1
[ 9.961084] iwlwifi 0000:00:14.3: WRT: Overriding region id 2
[ 9.961086] iwlwifi 0000:00:14.3: WRT: Overriding region id 3
[ 9.961087] iwlwifi 0000:00:14.3: WRT: Overriding region id 4
[ 9.961089] iwlwifi 0000:00:14.3: WRT: Overriding region id 6
[ 9.961090] iwlwifi 0000:00:14.3: WRT: Overriding region id 8
[ 9.961091] iwlwifi 0000:00:14.3: WRT: Overriding region id 9
[ 9.961092] iwlwifi 0000:00:14.3: WRT: Overriding region id 10
[ 9.961093] iwlwifi 0000:00:14.3: WRT: Overriding region id 11
[ 9.961094] iwlwifi 0000:00:14.3: WRT: Overriding region id 15
[ 9.961095] iwlwifi 0000:00:14.3: WRT: Overriding region id 16
[ 9.961096] iwlwifi 0000:00:14.3: WRT: Overriding region id 18
[ 9.961098] iwlwifi 0000:00:14.3: WRT: Overriding region id 19
[ 9.961099] iwlwifi 0000:00:14.3: WRT: Overriding region id 20
[ 9.961100] iwlwifi 0000:00:14.3: WRT: Overriding region id 21
[ 9.961102] iwlwifi 0000:00:14.3: WRT: Overriding region id 28
[ 9.961325] iwlwifi 0000:00:14.3: loaded firmware version 46.6b541b68.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
[ 9.965458] EEPROM ID = 0x8129
[ 9.981156] FAT-fs (nvme0n1p2): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 9.981612] FAT-fs (nvme0n1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 9.992708] usbcore: registered new interface driver r8188eu
[ 10.053947] RAPL PMU: hw unit of domain package 2^-14 Joules
[ 10.053948] RAPL PMU: hw unit of domain dram 2^-14 Joules
[ 10.053948] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
[ 10.053949] RAPL PMU: hw unit of domain psys 2^-14 Joules
[ 10.059707] input: CUST0001:00 04F3:30FA Mouse as /devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-CUST0001:00/0018:04F3:30FA.0001/input/input14
[ 10.066806] input: CUST0001:00 04F3:30FA Touchpad as /devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-CUST0001:00/0018:04F3:30FA.0001/input/input16
[ 10.079819] hid-multitouch 0018:04F3:30FA.0001: input,hidraw0: I2C HID v1.00 Mouse [CUST0001:00 04F3:30FA] on i2c-CUST0001:00
[ 10.132467] r8188eu 1-2:1.0 wlx503eaaee9d39: renamed from wlan0
[ 10.149582] iwlwifi 0000:00:14.3: Detected Intel(R) Wireless-AC 9560 160MHz, REV=0x318
[ 10.155783] thermal thermal_zone2: failed to read out thermal zone (-61)
[ 10.177058] Adding 4193784k swap on /dev/mapper/cryptswap. Priority:-2 extents:1 across:4193784k SSFS
[ 10.177515] input: gpio-keys as /devices/platform/ACPI0011:00/gpio-keys.3.auto/input/input17
[ 10.177724] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[ 10.189042] usbcore: registered new interface driver btusb
[ 10.189845] Bluetooth: hci0: Bootloader revision 0.1 build 42 week 52 2015
[ 10.190863] Bluetooth: hci0: Device revision is 2
[ 10.190866] Bluetooth: hci0: Secure boot is enabled
[ 10.190867] Bluetooth: hci0: OTP lock is enabled
[ 10.190868] Bluetooth: hci0: API lock is enabled
[ 10.190869] Bluetooth: hci0: Debug lock is disabled
[ 10.190870] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[ 10.195504] Bluetooth: hci0: Found device firmware: intel/ibt-17-16-1.sfi
[ 10.208734] iwlwifi 0000:00:14.3: base HW address: c8:b2:9b:c1:42:ba
[ 10.257022] intel_tcc_cooling: Programmable TCC Offset detected
[ 10.267210] intel_rapl_common: Found RAPL domain package
[ 10.267213] intel_rapl_common: Found RAPL domain core
[ 10.267214] intel_rapl_common: Found RAPL domain uncore
[ 10.267215] intel_rapl_common: Found RAPL domain dram
[ 10.267216] intel_rapl_common: Found RAPL domain psys
[ 10.277369] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[ 10.281997] iwlwifi 0000:00:14.3 wlo1: renamed from wlan0
[ 10.303574] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[ 10.303729] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 10.324312] pci 0000:01:00.0: Removing from iommu group 1
[ 10.338156] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 10.338159] Bluetooth: BNEP filters: protocol multicast
[ 10.338163] Bluetooth: BNEP socket layer initialized
[ 10.487012] Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
[ 10.687141] r8169 0000:03:00.0 enp3s0: Link is Down
[ 10.890705] R8188EU: Firmware Version 11, SubVersion 1, Signature 0x88e1
[ 11.263294] MAC Address = 50:3e:aa:ee:9d:39
[ 11.601362] Bluetooth: hci0: Waiting for firmware download to complete
[ 11.601829] Bluetooth: hci0: Firmware loaded in 1373361 usecs
[ 11.601862] Bluetooth: hci0: Waiting for device to boot
[ 11.615835] Bluetooth: hci0: Device booted in 13662 usecs
[ 11.616128] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-17-16-1.ddc
[ 11.617867] Bluetooth: hci0: Applying Intel DDC parameters completed
[ 11.620871] Bluetooth: hci0: Firmware revision 0.1 build 166 week 30 2021
[ 11.679947] Bluetooth: hci0: MSFT filter_enable is already on
[ 11.692377] NET: Registered PF_ALG protocol family
[ 12.600931] rfkill: input handler disabled
[ 12.837037] R8188EU: INFO indicate disassoc
[ 13.227329] R8188EU: INFO sta recv deauth reason code(9) sta:d8:38:fc:35:d8:f8, ignore = 0
[ 13.231040] R8188EU: INFO indicate disassoc
[ 15.177565] R8188EU: INFO sta recv deauth reason code(9) sta:d8:38:fc:35:db:c8, ignore = 0
[ 15.178331] R8188EU: INFO sta recv deauth reason code(9) sta:d8:38:fc:35:db:c8, ignore = 0
[ 15.182999] R8188EU: INFO indicate disassoc
[ 19.211041] R8188EU: INFO indicate disassoc
[ 21.903552] Bluetooth: RFCOMM TTY layer initialized
[ 21.903558] Bluetooth: RFCOMM socket layer initialized
[ 21.903562] Bluetooth: RFCOMM ver 1.11
[ 22.096002] rfkill: input handler enabled
[ 22.601457] R8188EU: INFO sta recv deauth reason code(9) sta:d8:38:fc:35:db:c8, ignore = 0
[ 22.606993] R8188EU: INFO indicate disassoc
[ 24.298984] R8188EU: INFO assoc success
[ 25.081824] rfkill: input handler disabled
[ 25.333784] IPv6: ADDRCONF(NETDEV_CHANGE): wlx503eaaee9d39: link becomes ready
[ 55.581614] R8188EU: INFO indicate disassoc
[ 59.275001] R8188EU: INFO indicate disassoc
[ 66.570726] R8188EU: INFO sta recv deauth reason code(9) sta:d8:38:fc:35:d8:f8, ignore = 0
[ 66.575006] R8188EU: INFO indicate disassoc
[ 68.521387] R8188EU: INFO sta recv deauth reason code(9) sta:d8:38:fc:35:db:c8, ignore = 0
[ 68.523056] R8188EU: INFO indicate disassoc
[ 70.479152] R8188EU: INFO sta recv deauth reason code(9) sta:d8:38:fc:35:db:c8, ignore = 0
[ 70.483019] R8188EU: INFO indicate disassoc
[ 72.425644] R8188EU: INFO sta recv deauth reason code(9) sta:d8:38:fc:35:db:c8, ignore = 0
[ 72.427036] R8188EU: INFO indicate disassoc
[ 74.049471] R8188EU: INFO assoc success
[ 94.312191] R8188EU: INFO sta recv deauth reason code(6) sta:d8:38:fc:35:db:c8, ignore = 0
[ 94.314664] R8188EU: INFO indicate disassoc
[ 95.964334] R8188EU: INFO assoc success

jackpot51 pushed a commit that referenced this issue Oct 22, 2022
[ Upstream commit 1727fd5 ]

Current code produces a warning as shown below when total characters
in the constituent block device names plus the slashes exceeds 200.
snprintf() returns the number of characters generated from the given
input, which could cause the expression “200 – len” to wrap around
to a large positive number. Fix this by using scnprintf() instead,
which returns the actual number of characters written into the buffer.

[ 1513.267938] ------------[ cut here ]------------
[ 1513.267943] WARNING: CPU: 15 PID: 37247 at <snip>/lib/vsprintf.c:2509 vsnprintf+0x2c8/0x510
[ 1513.267944] Modules linked in:  <snip>
[ 1513.267969] CPU: 15 PID: 37247 Comm: mdadm Not tainted 5.4.0-1085-azure #90~18.04.1-Ubuntu
[ 1513.267969] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 05/09/2022
[ 1513.267971] RIP: 0010:vsnprintf+0x2c8/0x510
<-snip->
[ 1513.267982] Call Trace:
[ 1513.267986]  snprintf+0x45/0x70
[ 1513.267990]  ? disk_name+0x71/0xa0
[ 1513.267993]  dump_zones+0x114/0x240 [raid0]
[ 1513.267996]  ? _cond_resched+0x19/0x40
[ 1513.267998]  raid0_run+0x19e/0x270 [raid0]
[ 1513.268000]  md_run+0x5e0/0xc50
[ 1513.268003]  ? security_capable+0x3f/0x60
[ 1513.268005]  do_md_run+0x19/0x110
[ 1513.268006]  md_ioctl+0x195e/0x1f90
[ 1513.268007]  blkdev_ioctl+0x91f/0x9f0
[ 1513.268010]  block_ioctl+0x3d/0x50
[ 1513.268012]  do_vfs_ioctl+0xa9/0x640
[ 1513.268014]  ? __fput+0x162/0x260
[ 1513.268016]  ksys_ioctl+0x75/0x80
[ 1513.268017]  __x64_sys_ioctl+0x1a/0x20
[ 1513.268019]  do_syscall_64+0x5e/0x200
[ 1513.268021]  entry_SYSCALL_64_after_hwframe+0x44/0xa9

Fixes: 7660388 ("md/raid0: replace printk() with pr_*()")
Reviewed-by: Michael Kelley <[email protected]>
Acked-by: Guoqing Jiang <[email protected]>
Signed-off-by: Saurabh Sengar <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
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

1 participant