mbox series

[SRU,U/O,0/1] rtw89: Support hardware rfkill

Message ID 20240820070156.100518-1-en-wei.wu@canonical.com
Headers show
Series rtw89: Support hardware rfkill | expand

Message

En-Wei Wu Aug. 20, 2024, 7:01 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2077384

SRU Justification:

[Impact]
With RTL8851BE 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:

https://lore.kernel.org/linux-wireless/20240724052626.12774-1-pkshih@realtek.com/T/#m1361ad1d6125d64976677fea4ba2e3aff219d1ad

[Test Plan]
1. Enable Control WLAN radio in BIOS setting
2. Boot into OS
2. Plug in Ethernet cable.
3. Check if the WiFi function being HW blocked

[Where problems could occur]
May disrupt the software rfkill.

Kuan-Chung Chen (1):
  UBUNTU: SAUCE: 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(+)