Skip to content

Commit 225d1ee

Browse files
antheasij-intel
authored andcommitted
platform/x86: asus-wmi: Re-add extra keys to ignore_key_wlan quirk
It turns out that the dual screen models use 0x5E for attaching and detaching the keyboard instead of 0x5F. So, re-add the codes by reverting commit cf3940a ("platform/x86: asus-wmi: Remove extra keys from ignore_key_wlan quirk"). For our future reference, add a comment next to 0x5E indicating that it is used for that purpose. Fixes: cf3940a ("platform/x86: asus-wmi: Remove extra keys from ignore_key_wlan quirk") Reported-by: Rahul Chandra <[email protected]> Closes: https://lore.kernel.org/all/10020-68c90c80-d-4ac6c580@106290038/ Cc: [email protected] Signed-off-by: Antheas Kapenekakis <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 1b09d08 commit 225d1ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/platform/x86/asus-nb-wmi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,8 @@ static void asus_nb_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code,
673673
if (atkbd_reports_vol_keys)
674674
*code = ASUS_WMI_KEY_IGNORE;
675675
break;
676+
case 0x5D: /* Wireless console Toggle */
677+
case 0x5E: /* Wireless console Enable / Keyboard Attach, Detach */
676678
case 0x5F: /* Wireless console Disable / Special Key */
677679
if (quirks->key_wlan_event)
678680
*code = quirks->key_wlan_event;

0 commit comments

Comments
 (0)