Skip to content

Commit 8e2b576

Browse files
Jorge Lopezgregkh
authored andcommitted
platform/x86: hp_wmi: Fix rfkill causing soft blocked wifi
commit 1598bfa upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cb3ab0e commit 8e2b576

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
@@ -984,8 +984,16 @@ static int __init hp_wmi_bios_setup(struct platform_device *device)
984984
wwan_rfkill = NULL;
985985
rfkill2_count = 0;
986986

987-
if (hp_wmi_rfkill_setup(device))
988-
hp_wmi_rfkill2_setup(device);
987+
/*
988+
* In pre-2009 BIOS, command 1Bh return 0x4 to indicate that
989+
* BIOS no longer controls the power for the wireless
990+
* devices. All features supported by this command will no
991+
* longer be supported.
992+
*/
993+
if (!hp_wmi_bios_2009_later()) {
994+
if (hp_wmi_rfkill_setup(device))
995+
hp_wmi_rfkill2_setup(device);
996+
}
989997

990998
thermal_profile_setup();
991999

0 commit comments

Comments
 (0)