* [PATCH 2.6.31] hp-wmi: fix rfkill bug
@ 2009-06-29 8:53 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-06-29 8:53 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless, Maciej Rutecki, Frans Pop
Fix the third (I think) polarity error I accidentally
introduced in the rfkill rewrite to make wireless work
again on (certain?) HP laptops.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Maciej Rutecki <maciej.rutecki@gmail.com>
---
drivers/platform/x86/hp-wmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- wireless-testing.orig/drivers/platform/x86/hp-wmi.c 2009-06-29 10:51:45.000000000 +0200
+++ wireless-testing/drivers/platform/x86/hp-wmi.c 2009-06-29 10:51:55.000000000 +0200
@@ -157,7 +157,7 @@ static int hp_wmi_dock_state(void)
static int hp_wmi_set_block(void *data, bool blocked)
{
unsigned long b = (unsigned long) data;
- int query = BIT(b + 8) | ((!!blocked) << b);
+ int query = BIT(b + 8) | ((!blocked) << b);
return hp_wmi_perform_query(HPWMI_WIRELESS_QUERY, 1, query);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-29 8:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 8:53 [PATCH 2.6.31] hp-wmi: fix rfkill bug Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox