Skip to contentSkip to conversation

ideapad-laptop: Add Lenovo ideapad 310-15IKB to no_hw_rfkill dmi list

PATCH In review Sven Rebhan 2 participants 2 messages Feb 21, 2017 – Mar 8, 2017 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ideapad-laptop: Add Lenovo ideapad 310-15IKB to no_hw_rfkill dmi list

Like other Lenovo models the Lenovo ideapad 310-15IKB does not have a hw rfkill switch. This results in hard-blocked radios after boot, resulting in always blocked radios rendering them unusable.

The attached patch adds the ideapad 310-15IKB to the no_hw_rfkill dmi list and allows using the built-in radios.

---
 drivers/platform/x86/ideapad-laptop.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/platform/x86/ideapad-laptop.c +7 -0
index f46ece2ce3c4..cc6d91e18683 100644
@@ -872,6 +872,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
 		},
 	},
 	{
+		.ident = "Lenovo ideapad 310-15IKB",
+		.matches = {
+		        DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		        DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 310-15IKB"),
+		},
+	},
+	{
 		.ident = "Lenovo ideapad Y700-15ACZ",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
Signature · 1 line
2.11.1
#1 lore raw
Quoted 6 lines · Sven Rebhan

Like other Lenovo models the Lenovo ideapad 310-15IKB does not have a hw rfkill switch. This results in hard-blocked radios after boot, resulting in always blocked radios rendering them unusable.

The attached patch adds the ideapad 310-15IKB to the no_hw_rfkill dmi list and allows using the built-in radios.

Thanks.
Pushed to testing with massaged commit message.

Quoted 27 lines
---
 drivers/platform/x86/ideapad-laptop.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/platform/x86/ideapad-laptop.c +7 -1
index f46ece2ce3c4..cc6d91e18683 100644
@@ -872,6 +872,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
                },
        },
        {
+               .ident = "Lenovo ideapad 310-15IKB",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 310-15IKB"),
+               },
+       },
+       {
                .ident = "Lenovo ideapad Y700-15ACZ",
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
--

2.11.1

Signature · 2 lines
With Best Regards,
Andy Shevchenko