Skip to contentSkip to conversation

rfkill bug fixed in rfkill_set_sw_state

PATCH New 정재훈 1 participant 1 message Feb 25, 2010 Rfkill

lore
Share & tools
lore

정재훈

author
#0 lore raw

PATCH 1/1 rfkill bug fixed in rfkill_set_sw_state

Don’t work expected operation in __rfkill_set_sw_state.
when rfkill initialized. Rfkill’s blocked & unblocked is operating on the contrary.

---
 net/rfkill/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/rfkill/core.c +0 -0
index c224cb2..dcc2d38 100644
@@ -488,7 +488,7 @@ static void __rfkill_set_sw_state(struct rfkill

*rfkill, bool blocked)
if (rfkill->state & RFKILL_BLOCK_SW_SETCALL)
bit = RFKILL_BLOCK_SW_PREV;

- if (blocked)
+ if (!blocked)
rfkill->state |= bit;
else
rfkill->state &= ~bit;

Signature · 1 line
1.6.0.4