* [PATCH 2.6.31] sony: fix rfkill code again
@ 2009-06-11 10:08 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-06-11 10:08 UTC (permalink / raw)
To: John Linville; +Cc: Reinette Chatre, linux-wireless
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: Johannes Berg <johannes@sipsolutions.net>
Reported-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Reinette Chatre <reinette.chatre@intel.com>
---
Thanks Reinette!
drivers/platform/x86/sony-laptop.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- wireless-testing.orig/drivers/platform/x86/sony-laptop.c 2009-06-11 11:00:44.000000000 +0200
+++ wireless-testing/drivers/platform/x86/sony-laptop.c 2009-06-11 12:05:52.000000000 +0200
@@ -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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-11 10:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 10:08 [PATCH 2.6.31] sony: fix rfkill code again Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox