Skip to content

Commit 1fbc01a

Browse files
Lee, Chun-YiMatthew Garrett
authored andcommitted
acer-wmi: check the existence of internal wireless device when set capability
That will be better to check the existence of internal wireless device when we set wireless capability and generate killswitch for it. It can avoid userland access wireless rfkill but the machine doesn't have internal wireless device. Tested on Acer Travelmate 8572 Cc: Carlos Corbacho <carlos@strangeworlds.co.uk> Cc: Matthew Garrett <mjg@redhat.com> Cc: Dmitry Torokhov <dtor@mail.ru> Cc: Corentin Chary <corentincj@iksaif.net> Cc: Thomas Renninger <trenn@suse.de> Signed-off-by: Lee, Chun-Yi <jlee@suse.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
1 parent 72e71de commit 1fbc01a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/platform/x86/acer-wmi.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,9 @@ static acpi_status WMID_set_capabilities(void)
10941094
return AE_ERROR;
10951095
}
10961096

1097-
interface->capability |= ACER_CAP_WIRELESS;
1097+
pr_info("Function bitmap for Communication Device: 0x%x\n", devices);
1098+
if (devices & 0x07)
1099+
interface->capability |= ACER_CAP_WIRELESS;
10981100
if (devices & 0x40)
10991101
interface->capability |= ACER_CAP_THREEG;
11001102
if (devices & 0x10)

0 commit comments

Comments
 (0)