Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030478AbVKPUE6 (ORCPT ); Wed, 16 Nov 2005 15:04:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030480AbVKPUE6 (ORCPT ); Wed, 16 Nov 2005 15:04:58 -0500 Received: from linuxwireless.org.ve.carpathiahost.net ([66.117.45.234]:56534 "EHLO linuxwireless.org.ve.carpathiahost.net") by vger.kernel.org with ESMTP id S1030478AbVKPUE5 (ORCPT ); Wed, 16 Nov 2005 15:04:57 -0500 From: "Alejandro Bonilla" To: Pekka Enberg , Zilvinas Valinskas Cc: Zhu Yi , Andrew Morton , Alexandre Buisse , torvalds@osdl.org, linux-kernel@vger.kernel.org, jketreno@linux.intel.com Subject: Re: [PATCH] ipw2200: disallow direct scanning when device is down (was: Linuv 2.6.15-rc1) Date: Wed, 16 Nov 2005 14:04:40 -0600 Message-Id: <20051116200125.M12383@linuxwireless.org> In-Reply-To: <1132170906.7963.11.camel@localhost> References: <20051115100519.GA5567@gemtek.lt> <20051115115657.GA30489@gemtek.lt> <84144f020511150451l6ef30420g5a83a147c61f34a8@mail.gmail.com> <20051115140023.GB9910@gemtek.lt> <1132120145.18679.12.camel@debian.sh.intel.com> <20051116094551.GA23140@gemtek.lt> <20051116114052.GA14042@gemtek.lt> <20051116131505.GD31362@gemtek.lt> <1132158813.8902.6.camel@localhost> <20051116181537.GA21709@gemtek.lt> <1132170906.7963.11.camel@localhost> X-Mailer: Open WebMail 2.40 20040816 X-OriginatingIP: 16.90.17.175 (abonilla@linuxwireless.org) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1575 Lines: 51 On Wed, 16 Nov 2005 21:55:05 +0200, Pekka Enberg wrote > Yi, please consider applying the included patch. > > Pekka > > [PATCH] ipw2200: disallow direct scanning when device is down > > The function ipw_request_direct_scan() should bail out when the > device is down. This patch fixes an lockup caused by wpa_supplicant > triggering ipw_request_direct_scan() while the driver was in a > middle of a reset due to firmware errors. Hi, A user at the ipw mailing list has also reported this same problem today. Maybe this is a good idea to implement. Patch came in just on time ;-) .Alejandro > > Thanks to Zilvinas Valinskas for reporting the bug and helping me > debug it. > > Signed-off-by: Pekka Enberg > --- > > ipw2200.c | 4 ++++ > 1 file changed, 4 insertions(+) > > Index: 2.6/drivers/net/wireless/ipw2200.c > =================================================================== > --- 2.6.orig/drivers/net/wireless/ipw2200.c > +++ 2.6/drivers/net/wireless/ipw2200.c > @@ -8926,6 +8926,10 @@ static int ipw_request_direct_scan(struc > struct ipw_scan_request_ext scan; > int err = 0, scan_type; > > + if (!(priv->status & STATUS_INIT) || > + (priv->status & STATUS_EXIT_PENDING)) > + return 0; > + > down(&priv->sem); > > if (priv->status & STATUS_RF_KILL_MASK) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/