Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1fbf346 authored by Matthew Garrett's avatar Matthew Garrett Committed by Len Brown
Browse files

dell-laptop: Fix rfkill state queries



The current code in dell-laptop is confused about the hardware rfkill
state. Fix it up such that it's always reported correctly.

Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
Tested-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 22763c5c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -197,8 +197,8 @@ static void dell_rfkill_query(struct rfkill *rfkill, void *data)
	dell_send_request(&buffer, 17, 11);
	dell_send_request(&buffer, 17, 11);
	status = buffer.output[1];
	status = buffer.output[1];


	if (status & BIT(bit))
	rfkill_set_sw_state(rfkill, !!(status & BIT(bit)));
		rfkill_set_hw_state(rfkill, !!(status & BIT(16)));
	rfkill_set_hw_state(rfkill, !(status & BIT(16)));
}
}


static const struct rfkill_ops dell_rfkill_ops = {
static const struct rfkill_ops dell_rfkill_ops = {