Wireless: Enable RTL8852BE wifi driver

Bug #2002601 reported by koba
46
This bug affects 6 people
Affects Status Importance Assigned to Milestone
HWE Next
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Fix Released
Undecided
koba
Jammy
Won't Fix
Undecided
Unassigned
Lunar
Fix Released
Undecided
koba
Mantic
Fix Released
Undecided
koba
linux-firmware (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
koba
Lunar
Fix Released
Undecided
Unassigned
Mantic
Fix Released
Undecided
Unassigned
linux-oem-6.1 (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Released
Undecided
koba
Lunar
Invalid
Undecided
Unassigned
Mantic
Invalid
Undecided
Unassigned

Bug Description

[Justification]
Enable Realtek RLT8852BE WIFI.

[Test]
1. put rtw8852b_fw.bin in /lib/firmware/rtw89/
2. boot-up with kernel enabled RTL8852be.
3. Connect to WIFI-AP and test with ping.

* ping -I wlp2s0 8.8.8.8
~~~
PING 8.8.8.8 (8.8.8.8) from 10.102.137.55 wlp2s0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=5.86 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=6.21 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=116 time=18.9 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=116 time=6.09 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=116 time=6.13 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=116 time=5.77 ms
~~~
* Connected to AP
~~~
u@ubuntu:~$ nmcli dev
DEVICE TYPE STATE CONNECTION
enp3s0 ethernet connected Wired connection 1
wlp2s0 wifi connected Canonical
p2p-dev-wlp2s0 wifi-p2p disconnected --
lo loopback unmanaged --
~~~
* lsmod | grep 8852
~~~
lsmod | grep 8852
rtw89_8852be 16384 0
rtw89_8852b 368640 1 rtw89_8852be
rtw89_pci 61440 1 rtw89_8852be
rtw89_core 442368 2 rtw89_8852b,rtw89_pci
cfg80211 1081344 3 rtw89_8852b,rtw89_core,mac80211
~~~

4. cbd's built result,
Lunar,
~~~
remote: Resolving deltas: 100% (391/391), completed with 118 local objects.
remote: *** kernel-cbd *********************************************************
remote: * Queueing builds (your 'u_lMstrNxt'); ok to interrupt
remote: * For results: ssh cbd ls kobako-lunar-0e58018b43c1-ioeM
remote: * 96/480 cores busy (1/5 hosts), 0 builds queued
remote: 2023-01-12 03:16:35 kobako-lunar-0e58018b43c1-ioeM/amd64/BUILD-OK
remote: 2023-01-12 03:17:47 kobako-lunar-0e58018b43c1-ioeM/arm64/BUILD-OK
remote: 2023-01-12 03:11:36 kobako-lunar-0e58018b43c1-ioeM/armhf/BUILD-OK
remote: 2023-01-12 03:16:30 kobako-lunar-0e58018b43c1-ioeM/ppc64el/BUILD-OK
remote: 2023-01-12 03:10:24 kobako-lunar-0e58018b43c1-ioeM/s390x/BUILD-OK
remote: ************************************************************************
To cbd:lunar.git
~~~
OEM-6.1,
remote: Resolving deltas: 100% (399/399), completed with 121 local objects.
remote: *** kernel-cbd *********************************************************
remote: * Queueing builds (your 'oem-6.1-next'); ok to interrupt
remote: * For results: ssh cbd ls kobako-jammy-c1002f30ccc3-m65z
remote: * 0/192 cores busy (0/2 hosts), 0 builds queued
remote: 2023-01-12 05:25:23 kobako-jammy-c1002f30ccc3-m65z/amd64/BUILD-OK
remote: ************************************************************************
To cbd:jammy.git

[Where problems could occur]
Medium, a new driver so the current driver may have some edge cases didn't consider.

[Misc]
* For generic Jammy, need more patches to enable RTL8852be so only SRU for OEM-6.1.
* firmware, dae5d4603b07) rtw89: 8852b: update fw to v0.27.32.1 has landed on Lunar, so only SRU for Jammy.

CVE References

koba (kobako)
Changed in linux (Ubuntu Lunar):
status: New → In Progress
assignee: nobody → koba (kobako)
Changed in linux-oem-6.1 (Ubuntu Jammy):
status: New → In Progress
assignee: nobody → koba (kobako)
koba (kobako)
description: updated
tags: added: oem-priority originate-from-1978554 somerville
koba (kobako)
Changed in linux-firmware (Ubuntu Jammy):
assignee: nobody → koba (kobako)
status: New → In Progress
description: updated
koba (kobako)
description: updated
Timo Aaltonen (tjaalton)
Changed in linux (Ubuntu Jammy):
status: New → Invalid
Changed in linux-oem-6.1 (Ubuntu Lunar):
status: New → Invalid
Juerg Haefliger (juergh)
tags: added: kern-5334
Juerg Haefliger (juergh)
Changed in linux-firmware (Ubuntu Jammy):
status: In Progress → Fix Committed
Changed in linux-firmware (Ubuntu Lunar):
status: New → Invalid
status: Invalid → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello koba, or anyone else affected,

Accepted linux-firmware into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/linux-firmware/20220329.git681281e4-0ubuntu3.10 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in linux-oem-6.1 (Ubuntu Jammy):
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-oem-6.1/6.1.0-1006.6 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-oem-6.1 verification-needed-jammy
Revision history for this message
Andi (kandi4000) wrote (last edit ):

linux-oem-6.1 6.1.0-1006.6 and linux-firmware 20220329.git681281e4-0ubuntu3.10 fix it for me. Haven't done very extensive testing, but the Wifi module was working and throughput was good. Didn't see any Wifi or network related errors or warnings in the kernel log.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (77.0 KiB)

This bug was fixed in the package linux-oem-6.1 - 6.1.0-1006.6

---------------
linux-oem-6.1 (6.1.0-1006.6) jammy; urgency=medium

  * jammy/linux-oem-6.1: 6.1.0-1006.6 -proposed tracker (LP: #2003454)

  * Fix for S0i3 resume on GFX11 (LP: #2003369)
    - drm/amdgpu: skip MES for S0ix as well since it's part of GFX

  * Revoke & rotate to new signing key (LP: #2002812)
    - [Packaging] Revoke and rotate to new signing key

  * Mediatek FM350-GL wwan module failed to init: Invalid device status 0x1
    (LP: #2002089)
    - SAUCE: Revert "net: wwan: t7xx: Add AP CLDMA"
    - SAUCE: net: wwan: t7xx: Add AP CLDMA
    - SAUCE: net: wwan: t7xx: Infrastructure for early port configuration
    - SAUCE: net: wwan: t7xx: PCIe reset rescan
    - SAUCE: net: wwan: t7xx: Enable devlink based fw flashing and coredump
      collection
    - SAUCE: net: wwan: t7xx: Devlink documentation

  * Fix flicker display problem on some panels which support PSR2 (LP: #2002968)
    - drm/i915/psr: Add continuous full frame bit together with single

  * Fix speaker mute hotkey doesn't work on Dell G16 series (LP: #2003161)
    - SAUCE: platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010
      table

  * CVE-2023-0179
    - netfilter: nft_payload: incorrect arithmetics when fetching VLAN header bits

  * Wireless: Enable RTL8852BE wifi driver (LP: #2002601)
    - wifi: rtw89: 8852b: add BB and RF tables (1 of 2)
    - wifi: rtw89: 8852b: add BB and RF tables (2 of 2)
    - wifi: rtw89: 8852b: add tables for RFK
    - wifi: rtw89: phy: make generic txpwr setting functions
    - wifi: rtw89: debug: txpwr_table considers sign
    - wifi: rtw89: 8852b: add chip_ops::set_txpwr
    - wifi: rtw89: 8852b: add chip_ops to read efuse
    - wifi: rtw89: 8852b: add chip_ops to read phy cap
    - wifi: rtw89: 8852be: add 8852BE PCI entry
    - wifi: rtw89: phy: ignore warning of bb gain cfg_type 4
    - wifi: rtw89: coex: move chip_ops::btc_bt_aci_imp to a generic code
    - wifi: rtw89: parse PHY status only when PPDU is to_self
    - wifi: rtw89: 8852b: set proper configuration before loading NCTL
    - wifi: rtw89: 8852b: add HFC quota arrays
    - wifi: rtw89: make generic functions to convert subband gain index
    - wifi: rtw89: 8852b: add chip_ops::set_channel
    - wifi: rtw89: correct 6 GHz scan behavior
    - wifi: mac80211: add internal handler for wake_tx_queue
    - wifi: rtw89: 8852b: add chip_ops::set_channel_help
    - wifi: rtw89: 8852b: add power on/off functions
    - wifi: rtw89: 8852b: add basic baseband chip_ops
    - wifi: rtw89: 8852b: add chip_ops to get thermal
    - wifi: rtw89: 8852b: add chip_ops related to BT coexistence
    - wifi: rtw89: 8852b: add chip_ops to query PPDU
    - wifi: rtw89: 8852b: add chip_ops to configure TX/RX path
    - wifi: rtw89: 8852b: add functions to control BB to assist RF calibrations
    - wifi: rtw89: 8852b: add basic attributes of chip_info
    - wifi: rtw89: 8852b: rfk: add DACK
    - wifi: rtw89: 8852b: rfk: add RCK
    - wifi: rtw89: 8852b: rfk: add RX DCK
    - wifi: rtw89: 8852b: rfk: add IQK
    - wifi: rtw89: 8852b: rfk: add TSSI
    - wifi: rtw89: 8852b: rfk: add DPK
    - wifi: rtw89: 8852b: add ch...

Changed in linux-oem-6.1 (Ubuntu Jammy):
status: Fix Committed → Fix Released
Timo Aaltonen (tjaalton)
tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-firmware - 20220329.git681281e4-0ubuntu3.10

---------------
linux-firmware (20220329.git681281e4-0ubuntu3.10) jammy; urgency=medium

  * Update dg2_dmc to 2.08 (LP: #1999375)
    - i915: Add DMC v2.08 for DG2
  * Update firmware for hwe/oem kernel migrations (LP: #1999406)
    - [Packaging] scripts: add back list-lts-update-files
    - Mellanox: Add lc_ini_bundle for xx.2010.1006
    - qcom: add firmware files for Adreno a330
    - qcom: add firmware files for Adreno a420 & related generations
    - ath11k: QCN9074 hw1.0: add board-2.bin
    - ath11k: QCN9074 hw1.0: add to WLAN.HK.2.5.0.1-01208-QCAHKSWPL_SILICONZ-1
    - ath11k: WCN6750 hw1.0: add board-2.bin
    - ath11k: WCN6750 hw1.0: add to WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1
    - ath10k: QCA99X0 hw2.0: add board-2.bin
    - ath10k: WCN3990 hw1.0: add board-2.bin
    - Add initial AzureWave AW-CM256SM NVRAM file
    - [Packaging] rules: Don't build firmware during package build
    - Add pre-compiled echoaudio firmware
    - SAUCE: Revert "UBUNTU: SAUCE: check_whence.py: Ignore ea/ directory"
    - i915: Add versionless HuC files for current platforms
    - iwlwifi: add new FWs from core69-81 release
  * amdgpu: missing firmware for navi31 (LP: #2000133)
    - amdgpu: add DCN 3.2.0 firmware for amd-5.4
    - amdgpu: add GC 11.0.0 firmware for amd-5.4
    - amdgpu: add PSP 13.0.0 firmware for amd-5.4
    - amdgpu: Add SDMA 6.0.0 firmware for amd-5.4
    - amdgpu: add SMU 13.0.0 firmware for amd-5.4
    - amdgpu: add VCN 4.0.0 firmware for amd-5.4
    - amdgpu: update GC11.0.0 firmware from amd-5.4
    - amdgpu: update PSP13.0.0 firmware from amd-5.4
    - amdgpu: update SDMA6.0.0 firmware from amd-5.4
    - amdgpu: update SMU13.0.0 firmware from amd-5.4
    - amdgpu: update VCN4.0.0 firmware from amd-5.4
  * Wireless: Enable RTL8852BE wifi driver (LP: #2002601)
    - rtw89: 8852b: update fw to v0.27.32.1
    - Revert "rtw89: 8852b: update fw to v0.27.32.1"
    - rtw89: 8852b: add initial fw v0.27.32.0
    - rtw89: 8852b: update fw to v0.27.32.1
  * amdgpu: missing firmware for navi33 (LP: #2003846)
    - amdgpu: add DCN3.2.1 firmware from amd-5.4
    - amdgpu: add GC11.0.2 firmware from amd-5.4
    - amdgpu: add PSP13.0.7 firmware from amd-5.4
    - amdgpu: add SDMA6.0.2 firmware from amd-5.4
    - amdgpu: add SMU13.0.7 firmware from amd-5.4
    - amdgpu: add VCN4.0.4 firmware from amd-5.4

 -- Juerg Haefliger <email address hidden> Thu, 26 Jan 2023 09:10:12 +0100

Changed in linux-firmware (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Update Released

The verification of the Stable Release Update for linux-firmware has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Bin Li (binli)
tags: added: originate-from-2006879
tags: added: sutton
Revision history for this message
Devon Weinman (landrover74656) wrote :

Would it be possible to have the RTW89 driver for the RTL8852BE added to the kernel?

Every time I receive a kernel update I have to hook my machine up to a docking station (which has an RJ45) re-download and install the drivers in the terminal. This is a fairly popular wifi card, so I'm sure others are having the same issue.

The drivers from github (below) work extremely well between kernel updates on Ubuntu-based Mint 21:

https://github.com/HRex39/rtl8852be.git

Please let me know if you need any other information.

Revision history for this message
koba (kobako) wrote :

@Devon, are you using jammy/kinectic?

Revision history for this message
Devon Weinman (landrover74656) wrote :

@Koba I’m using Jammy. At least that’s what shows when I’m running >sudo apt-get update and >sudo apt-get install upgrade.

Revision history for this message
koba (kobako) wrote (last edit ):

@Devon, would you like to use oem kernel(6.1-oem)?
~~~
#sudo apt install linux-oem-22.04c
~~~

Revision history for this message
Devon Weinman (landrover74656) wrote :

@Koba, pardon what’s probably are silly questions, but does 6.1-oem have the RTL8852BE driver included in the kernel?

Also will linux-oem-22.-4c work in Mint?

Revision history for this message
koba (kobako) wrote :

rtl8852be has been enabled in 6.1-oem.
Could you find the linux-oem-22.04c in Mint?

Revision history for this message
Devon Weinman (landrover74656) wrote :

@Koba I was able to find the oem-22.-4c using the sudo command you provided in Mint. It installed successfully and when I restarted the wifi card still works and I’m showing kernel 6.1.0-1007-oem. Crossing my fingers the driver is retained with the next upgrade.

Thanks so much for your help, it’s greatly appreciated.

Revision history for this message
koba (kobako) wrote :

@Devon, thanks and enjoy your wireless.
because Jammy needs lots of patches to backport, it's high risky.
Lunar will have rtl8852be enablement.

Revision history for this message
Devon Weinman (landrover74656) wrote :

@Koba, are you saying I should upgrade to Lunar Lobster? If so how do I do that (apart from installing off a fresh ISO)? Whenever I run >sudo apt-get install upgrade it says there aren’t any upgrades to install.

Revision history for this message
koba (kobako) wrote :

@Devon, you could always use 6.1-oem kernel and that would keep upgrading to last.
if you want use the generic kernel, lunar may be a option but rtl8852be is still working on for Lunar.

Revision history for this message
koba (kobako) wrote (last edit ):
Revision history for this message
Pavlo Zhukov (p35) wrote :

~~~
#sudo apt install linux-oem-22.04c
~~~

It worked for me.

Also, a reboot was needed in my case.

Before, when I tried to use https://github.com/HRex39/rtl8852be.git, it didn't work anymore after the recent updates.

Revision history for this message
Brian Ford (brian-ford-in) wrote :

~~~
#sudo apt install linux-oem-22.04c
~~~

Worked for me as well. Clean OS install using latest KDE Neon iso and a USB wifi adapter for the install and kernel update. Everything just works (seemingly optimally for wifi - 500 Mbps using fast dot com) including Bluetooth. New HP Pavilion laptop - AMD Ryzen 7 5825U w/ Realtek Semiconductor Co., Ltd. Device b852

Thanks!

koba (kobako)
Changed in linux (Ubuntu Mantic):
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
Changed in linux (Ubuntu Lunar):
status: In Progress → Fix Released
Changed in hwe-next:
status: New → Fix Released
koba (kobako)
Changed in linux (Ubuntu Jammy):
status: Invalid → Won't Fix
Revision history for this message
Dave (isdaves) wrote :

Submitted request to update driver/firmware to latest v0.29 in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2033348

tags: added: fixed-linux-oem-6.5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.