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

Commit e1f8a19e authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

sony: fix rfkill code again

When the hard state changes, we shouldn't set the soft
state to blocked as well -- we have no such indication
from the device in that case so leave it untouched.

Fixes http://bugzilla.kernel.org/show_bug.cgi?id=13458

.

Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Reported-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Tested-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9cbc1cb8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1133,8 +1133,9 @@ static void sony_nc_rfkill_update()
			continue;

		if (hwblock) {
			if (rfkill_set_hw_state(sony_rfkill_devices[i], true))
				sony_nc_rfkill_set((void *)i, true);
			if (rfkill_set_hw_state(sony_rfkill_devices[i], true)) {
				/* we already know we're blocked */
			}
			continue;
		}