Skip to content

Commit 1598bfa

Browse files
Jorge Lopezjwrdegoede
authored andcommitted
platform/x86: hp_wmi: Fix rfkill causing soft blocked wifi
After upgrading BIOS to U82 01.02.01 Rev.A, the console is flooded strange char "^@" which printed out every second and makes login nearly impossible. Also the below messages were shown both in console and journal/dmesg every second: usb 1-3: Device not responding to setup address. usb 1-3: device not accepting address 4, error -71 usb 1-3: device descriptor read/all, error -71 usb usb1-port3: unable to enumerate USB device Wifi is soft blocked by checking rfkill. When unblocked manually, after few seconds it would be soft blocked again. So I was suspecting something triggered rfkill to soft block wifi. At the end it was fixed by removing hp_wmi module. The root cause is the way hp-wmi driver handles command 1B on post-2009 BIOS. In pre-2009 BIOS, command 1Bh return 0x4 to indicate that BIOS no longer controls the power for the wireless devices. Signed-off-by: Jorge Lopez <[email protected]> Link: https://bugzilla.kernel.org/show_bug.cgi?id=216468 Reviewed-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 0df044b commit 1598bfa

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

drivers/platform/x86/hp-wmi.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,8 +1300,16 @@ static int __init hp_wmi_bios_setup(struct platform_device *device)
13001300
wwan_rfkill = NULL;
13011301
rfkill2_count = 0;
13021302

1303-
if (hp_wmi_rfkill_setup(device))
1304-
hp_wmi_rfkill2_setup(device);
1303+
/*
1304+
* In pre-2009 BIOS, command 1Bh return 0x4 to indicate that
1305+
* BIOS no longer controls the power for the wireless
1306+
* devices. All features supported by this command will no
1307+
* longer be supported.
1308+
*/
1309+
if (!hp_wmi_bios_2009_later()) {
1310+
if (hp_wmi_rfkill_setup(device))
1311+
hp_wmi_rfkill2_setup(device);
1312+
}
13051313

13061314
err = hp_wmi_hwmon_init();
13071315

0 commit comments

Comments
 (0)