From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753751AbZCTFVJ (ORCPT ); Fri, 20 Mar 2009 01:21:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753211AbZCTFUw (ORCPT ); Fri, 20 Mar 2009 01:20:52 -0400 Received: from mail-gx0-f208.google.com ([209.85.217.208]:33477 "EHLO mail-gx0-f208.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752768AbZCTFUu (ORCPT ); Fri, 20 Mar 2009 01:20:50 -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=dt5SWariNktkoc2taYGhv9y5+GB7E1oIADlL0m3gcPWURBBYV/H9q+ogIFbCEdkdjC VTpInaCLxxP8QRO109QVOm+vZ01HbNSh060SHJL7SOr/YPiLVlYj+gU7irTTGrxikn8W pBvhyGmEMV1XK/KSRbNbRanuxHGk9OcCivhfQ= MIME-Version: 1.0 In-Reply-To: References: <1237143683.24621.7.camel@johannes.local> <20090315202603.GA9077@elte.hu> <1237317742.31814.28.camel@johannes.local> <1237455534.5100.56.camel@johannes.local> Date: Fri, 20 Mar 2009 13:20:47 +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: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 20, 2009 at 12:55 PM, Jeff Chua wrote: > On Thu, Mar 19, 2009 at 5:38 PM, Johannes Berg > wrote: >> On Thu, 2009-03-19 at 12:49 +0800, Jeff Chua wrote: >> >>> Ignore the above loop thing. The cause seems to be this one instead. >>> >>> >>> # this needs patch to work ... >>> iwconfig wlan0 mode Managed >>> ifconfig wlan0 up >>> iwconfig wlan0 essid xxx >>> iwconfig wlan0 key restricted xxx >>> iwconfig wlan0 ap auto channel auto >> >> If you swap the key and essid lines, it will probably always work. But >> I've yet to analyse your data to see why it doesn't in the other case. > > Doesn't. Taking away "hiwconfig wlan0 ap auto channel auto" makes it works. More discoveries... It seems position of "ifconfig wlan0 up" matters 1) It can't be before iwconfig which will result in "SET failed on device wlan0 ; Device or resource busy". 2) _Before_ "essid" and "key" settings. "ap auto channel auto" MUST NOT BE SET. 3) _After_ "essid" and "key". Ensure all iwconfig settings comes before "ifconfig". So, it seems "ifconfig" must be done as the last stage. Thanks, Jeff.