platform/x86: asus-nb-wmi: Add wapf4 quirk for the X302UA
authorSanteri Toivonen <santeri.toivonen@vatsul.com>
Tue, 4 Apr 2017 18:09:00 +0000 (21:09 +0300)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:14:37 +0000 (10:14 -0700)
Asus laptop X302UA starts up with Wi-Fi disabled,
without a way to enable it. Set wapf=4 to fix the problem.

Signed-off-by: Santeri Toivonen <santeri.toivonen@vatsul.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/asus-nb-wmi.c

index dea98ffb6f606a6079f40607c8f5476c7a738f7d..1ae58d906536e5af21126b603d437cd8df03af5a 100644 (file)
@@ -142,6 +142,15 @@ static const struct dmi_system_id asus_quirks[] = {
                 */
                .driver_data = &quirk_asus_wapf4,
        },
+       {
+               .callback = dmi_matched,
+               .ident = "ASUSTeK COMPUTER INC. X302UA",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "X302UA"),
+               },
+               .driver_data = &quirk_asus_wapf4,
+       },
        {
                .callback = dmi_matched,
                .ident = "ASUSTeK COMPUTER INC. X401U",