Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755686AbZCSD0D (ORCPT ); Wed, 18 Mar 2009 23:26:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752950AbZCSDZr (ORCPT ); Wed, 18 Mar 2009 23:25:47 -0400 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 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=r2IO4x/WL8X9Li5jfy9XOaTDa3y2yfmZjE90YXpJFXszusA12jvVlYYJWRVqKwfgPS 2Aevq7V9rowX9xkYikhK3CNLMTmFOqk/ddgAhGRa0E6xWEbByYTcNKmX26WMiEre6N9/ HAoSqyNvzcNcU3DlWV/oHl/eJQyzG2zImUPuE= MIME-Version: 1.0 In-Reply-To: References: <1237140665.24621.2.camel@johannes.local> <1237143683.24621.7.camel@johannes.local> <20090315202603.GA9077@elte.hu> <1237317742.31814.28.camel@johannes.local> Date: Thu, 19 Mar 2009 11:25:44 +0800 Message-ID: Subject: Re: 2.6.29-rc8: Reported regressions from 2.6.28 From: Jeff Chua To: Johannes Berg Cc: Ingo Molnar , Linus Torvalds , "Rafael J. Wysocki" , Linux Kernel Mailing List , Adrian Bunk , Andrew Morton , Kernel Testers List , Network Development , "John W. Linville" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1523 Lines: 40 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. > ? ? ? ?iwconfig wlan0 mode Managed essid xxx key restricted xxx > ? ? ? ?iwconfig wlan0 ap auto channel auto ?# auto outside loop > ? ? ? ?for((i = 0; i < 5; i++)) > ? ? ? ?do > ? ? ? ? ? ? ? ?iwconfig wlan0 | grep -q "Not-Associated" > ? ? ? ? ? ? ? ?[ $? -ne 0 ] && break > ? ? ? ? ? ? ? ?echo ".\c" > ? ? ? ? ? ? ? ?sleep 1 > ? ? ? ?done 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 = 0; i < 5; i++)) do iwlist wlan0 scan >/dev/null #use scan instead of sleep 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. -- 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/