Skip to content

Commit 9b071a4

Browse files
rzrdvhart
authored andcommitted
ideapad_laptop: Add Lenovo G40-30 to devices without radio switch
Lenovo G40-30 does not provide any physical radio switch to user. Therefore disable the rfkill switch identically to the Yoga 2 approach. (Note for later, models ids are sorted alphabetically). Benefit is to make wireless available again without unloading module. It was tested successfully on 4.1.0-rc1 base with this model: (LENOVO_MT_80FY_BU_idea_FM_Lenovo G40-30). BugLink: https://bugs.launchpad.net/ideapad-laptop/+bug/1450946 Cc: platform-driver-x86@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Philippe Coval <rzr@gna.org> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
1 parent b787f68 commit 9b071a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/platform/x86/ideapad-laptop.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,13 @@ static void ideapad_acpi_notify(acpi_handle handle, u32 event, void *data)
829829
* report all radios as hardware-blocked.
830830
*/
831831
static const struct dmi_system_id no_hw_rfkill_list[] = {
832+
{
833+
.ident = "Lenovo G40-30",
834+
.matches = {
835+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
836+
DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo G40-30"),
837+
},
838+
},
832839
{
833840
.ident = "Lenovo Yoga 2 11 / 13 / Pro",
834841
.matches = {

0 commit comments

Comments
 (0)