hp-wmi: fix rfkill bug
PATCH 1/1 hp-wmi: fix rfkill bug
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]>
--- drivers/platform/x86/hp-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/hp-wmi.c +1 -1
@@ -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); }