mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: 정재훈 <jh80.chung@samsung.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] rfkill bug fixed in rfkill_set_sw_state
Date: Thu, 25 Feb 2010 13:26:32 +0900	[thread overview]
Message-ID: <000901cab5d2$b59aa150$20cfe3f0$%chung@samsung.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 47 bytes --]

?)7/ :N:P@87N 18<:5H MIME G|=D@G 8^=CAv@T4O4Y.

[-- Attachment #2: Type: text/plain, Size: 714 bytes --]

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

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>

---
 net/rfkill/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/rfkill/core.c b/net/rfkill/core.c
index c224cb2..dcc2d38 100644
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
@@ -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;
-- 
1.6.0.4



[-- Attachment #3: winmail.dat --]
[-- Type: application/ms-tnef, Size: 7970 bytes --]

             reply	other threads:[~2010-02-25  4:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25  4:26 정재훈 [this message]
2010-02-26  4:55 정재훈
2010-03-02 20:50 ` Andrew Morton
2010-03-03  0:47   ` Jaehoon Chung
2010-03-03  9:37     ` Alan Jenkins
2010-03-03 10:14       ` Jaehoon Chung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000901cab5d2$b59aa150$20cfe3f0$%chung@samsung.com' \
    --to=jh80.chung@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome