platform/x86: ideapad-laptop: Add Y520-15IKBN to no_hw_rfkill
authorOlle Liljenzin <olle@liljenzin.se>
Sun, 18 Jun 2017 11:09:31 +0000 (13:09 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 18 Jun 2017 12:35:23 +0000 (15:35 +0300)
Lenovo Legion Y520-15IKBN is yet another Lenovo model that does not
have an hw rfkill switch, resulting in wifi always reported as hard
blocked.

Add the model to the list of models without rfkill switch.

Signed-off-by: Olle Liljenzin <olle@liljenzin.se>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/ideapad-laptop.c

index 4bf93c0c7e36c70095c7daed2c10fb89cf5c9797..f929bf12b506cd9f756ec4c37543acf50a17e972 100644 (file)
@@ -950,6 +950,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
                        DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad Y700-17ISK"),
                },
        },
+       {
+               .ident = "Lenovo Legion Y520-15IKBN",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Y520-15IKBN"),
+               },
+       },
        {
                .ident = "Lenovo Yoga 2 11 / 13 / Pro",
                .matches = {