Skip to content

Commit

Permalink
hp-wmi: fix rfkill bug
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Maciej Rutecki <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
jmberg authored and linvjw committed Jul 7, 2009
1 parent 59615b5 commit 76d8b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/hp-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static int hp_wmi_tablet_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);
}
Expand Down

0 comments on commit 76d8b64

Please sign in to comment.