[PATCH] platform/x86: wireless-hotkey: Re-enable HP 14s radios on resume

From: Oto Skýpala

Date: Mon Nov 30 2026 - 06:06:30 EST


On the HP Laptop 14s-dq1xxx (board 86C8, BIOS F.42, Intel AX201), Wi-Fi is
hard-blocked and Bluetooth drops off USB after every resume from S3:

iwlwifi 0000:00:14.3: RF_KILL bit toggled to disable radio.
iwlwifi 0000:00:14.3: reporting RF_KILL (radio disabled)
usb 1-10: USB disconnect, device number 124

The radios are enabled by two GPIOs, which the DSDT sets in the _STA method
of the HPQ6001 device. Linux does not evaluate _STA again on resume, and
both GPIOs read 0 after S3. The firmware saves the GPIOs before S3 and
restores them in _WAK only if OSYS < 0x07DC, i.e. for OSes older than
Windows 8.

Evaluate _STA again in the resume callback on this board. Other machines
are not changed, as the other HPQ6001 devices' _STA may behave differently.

Tested on the HP Laptop 14s-dq1xxx with this driver built as a module for
Ubuntu's 7.0.0-43 kernel, with Secure Boot. With the stock driver, both
GPIOs are 0 and Wi-Fi is hard-blocked after resume. With this patch, both
are 1, Wi-Fi is not blocked and Bluetooth stays on the bus (2 of 2
resumes). Not tested on a mainline kernel.

An AI assistant (Claude Code, Claude Opus 5.5) analysed the ACPI tables and
logs, and wrote the patch, the test script and this changelog.

Signed-off-by: Oto Skýpala <otoskypala0@xxxxxxxxx>
---
drivers/platform/x86/wireless-hotkey.c | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/drivers/platform/x86/wireless-hotkey.c b/drivers/platform/x86/wireless-hotkey.c
index cbe92c967..d64bd9d36 100644
--- a/drivers/platform/x86/wireless-hotkey.c
+++ b/drivers/platform/x86/wireless-hotkey.c
@@ -9,6 +9,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
+#include <linux/dmi.h>
#include <linux/input.h>
#include <linux/leds.h>
#include <linux/platform_device.h>
@@ -176,10 +177,31 @@ static void wl_remove(struct platform_device *pdev)
wireless_input_destroy(&pdev->dev);
}

-/* The firmware does not keep the LED state across suspend. */
+/*
+ * On these models _STA also sets the GPIOs that enable the Wi-Fi and Bluetooth
+ * radios. They are off after S3 and the firmware's _WAK only restores them for
+ * OSes older than Windows 8, so _STA has to be evaluated again on resume.
+ */
+static const struct dmi_system_id wl_sta_on_resume[] = {
+ {
+ /* HP Laptop 14s-dq1xxx */
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "HP"),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "86C8"),
+ },
+ },
+ { }
+};
+
+/* The firmware does not keep the LED and radio state across suspend. */
static int wl_resume(struct device *dev)
{
struct wl_button *button = dev_get_drvdata(dev);
+ unsigned long long sta;
+
+ if (dmi_check_system(wl_sta_on_resume) &&
+ ACPI_FAILURE(acpi_evaluate_integer(button->handle, "_STA", NULL, &sta)))
+ dev_warn(dev, "Failed to re-enable the radios\n");

if (button->has_led)
wireless_led_set(&button->led, button->led.brightness);
--
2.53.0