From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Chua Subject: Re: 2.6.29-rc8: Reported regressions from 2.6.28 Date: Thu, 19 Mar 2009 11:25:44 +0800 Message-ID: References: <1237140665.24621.2.camel@johannes.local> <1237143683.24621.7.camel@johannes.local> <20090315202603.GA9077@elte.hu> <1237317742.31814.28.camel@johannes.local> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Ingo Molnar , Linus Torvalds , "Rafael J. Wysocki" , Linux Kernel Mailing List , Adrian Bunk , Andrew Morton , Kernel Testers List , Network Development , "John W. Linville" To: Johannes Berg Return-path: Received: from rv-out-0506.google.com ([209.85.198.226]:37141 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751970AbZCSDZq convert rfc822-to-8bit (ORCPT ); Wed, 18 Mar 2009 23:25:46 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Mar 19, 2009 at 10:58 AM, Jeff Chua = wrote: > I've tracked down to the sequence of iwconfig that causes it to fail. > This loop only works 8 of 10 times with/without the patch. > =A0 =A0 =A0 =A0iwconfig wlan0 mode Managed essid xxx key restricted x= xx > =A0 =A0 =A0 =A0iwconfig wlan0 ap auto channel auto =A0# auto outside = loop > =A0 =A0 =A0 =A0for((i =3D 0; i < 5; i++)) > =A0 =A0 =A0 =A0do > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0iwconfig wlan0 | grep -q "Not-Associat= ed" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[ $? -ne 0 ] && break > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0echo ".\c" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sleep 1 > =A0 =A0 =A0 =A0done I've modified it a little, and now it works 100% without patch, by using "iwlist scan" instead of "sleep 1" ... iwconfig wlan0 mode Managed essid xxx key restricted xxx iwconfig wlan0 ap auto channel auto # auto outside loop for((i =3D 0; i < 5; i++)) do iwlist wlan0 scan >/dev/null #use scan instead of slee= p iwconfig $DEV | grep -q "Access Point: Not-Associated" [ $? -ne 0 ] && break echo ".\c" done So, this will work for older kernel and well as 2.6.29-rc8. Rafael, can we close the case? It's the iwconfig sequence that used to work on 2.6.28-rc3 but now needs to be updated for 2.6.29-rc8. Thanks, Jeff.