APPLIED: [SRU][N][PATCH 0/1] rtw89: Support hardware rfkill

Stefan Bader stefan.bader at canonical.com
Wed Apr 23 08:07:18 UTC 2025


On 21.04.25 05:11, En-Wei Wu wrote:
> BugLink: https://bugs.launchpad.net/bugs/2077384
> 
> [Impact]
> With RTL8852BE and "Control WLAN radio" (in Dell BIOS setting) on, wifi
> function is not be disabled when we plug in the Ethernet cable. The
> issue is because the rtw89 driver doesn't have the hardware rfkill
> mechanism.
> 
> [Fix]
> Backport the Realtek patch in linux-next:
> 
> 0b38e6277aed wifi: rtw89: add support for hardware rfkill
> 
> This patch also adds the rfkill functionalities to RTL8852BT, which is
> currently
> not supported by Ubuntu kernels. So we omit the modification on
> drivers/net/wireless/realtek/rtw89/rtw8852bt.c.
> 
> [Test Plan]
> 1. Enable Control WLAN radio in BIOS setting
> 2. Boot into OS
> 2. Plug in Ethernet cable
> 3. Run `rfkill list` and see if the `phy0` is hard blocked (hard
>     blocked: yes on success)
> 
> [Where problems could occur]
> This patch adds the functionality of hardware rfkill by continuously
> polling the register of GPIO pin status and determines whether to
> block the device based on the value read. If the register read is
> somehow buggy, it may cause that the device is blocked unexpectedly.
> 
> Kuan-Chung Chen (1):
>    wifi: rtw89: add support for hardware rfkill
> 
>   drivers/net/wireless/realtek/rtw89/core.c     | 68 +++++++++++++++++++
>   drivers/net/wireless/realtek/rtw89/core.h     |  9 +++
>   drivers/net/wireless/realtek/rtw89/mac80211.c | 17 +++++
>   drivers/net/wireless/realtek/rtw89/reg.h      | 24 +++++++
>   drivers/net/wireless/realtek/rtw89/rtw8851b.c | 11 +++
>   drivers/net/wireless/realtek/rtw89/rtw8852a.c | 11 +++
>   drivers/net/wireless/realtek/rtw89/rtw8852b.c | 11 +++
>   drivers/net/wireless/realtek/rtw89/rtw8852c.c | 11 +++
>   drivers/net/wireless/realtek/rtw89/rtw8922a.c | 11 +++
>   9 files changed, 173 insertions(+)
> 

Applied to noble:linux/master-next. Thanks.

-Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE8675DEECBEECEA3.asc
Type: application/pgp-keys
Size: 47863 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20250423/8d4d9156/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20250423/8d4d9156/attachment-0001.sig>


More information about the kernel-team mailing list