Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:52425 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753219Ab0CBUvO (ORCPT ); Tue, 2 Mar 2010 15:51:14 -0500 Date: Tue, 2 Mar 2010 12:50:03 -0800 From: Andrew Morton To: =?UTF-8?Q?=EC=A0=95=EC=9E=AC=ED=9B=88?= Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, "John W. Linville" , Johannes Berg , Alan Jenkins Subject: Re: [PATCH] rfkill bug fixed in rfkill_set_sw_state Message-Id: <20100302125003.f7919c53.akpm@linux-foundation.org> In-Reply-To: <000301cab69f$ec61ad00$c5250700$%chung@samsung.com> References: <000301cab69f$ec61ad00$c5250700$%chung@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-wireless-owner@vger.kernel.org List-ID: Suitable cc's (from scripts/get_maintainer.pl) added. On Fri, 26 Feb 2010 13:55:31 +0900 _________ wrote: > 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 > > --- > 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; Are you sure? What problems were you observing with the existing code? Please fully describe your hardware and the driver's behaviour. The current code _looks_ OK to me. If bool `blocked' is true, we set the RFKILL_BLOCK_SW bit?