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: Fri, 20 Mar 2009 13:20:47 +0800 Message-ID: References: <1237143683.24621.7.camel@johannes.local> <20090315202603.GA9077@elte.hu> <1237317742.31814.28.camel@johannes.local> <1237455534.5100.56.camel@johannes.local> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=RGzpjGXr0RsplIcYlL4rn8NcoaKYpCxfDsUZLkLhaE8=; b=ttzSi68EHD8KlpPLUr6iepfWx3/CWP3tDGvqRk7V7jt7kdHf2phHA4iBJ/jY9tuh4B tsAbWRuYOTPCcX1H4a1AicHh7qMHeFSWn6Q7b+dR9zrL4j/fmbwdLnAD+UuRy36xHYX0 LYbSwUvvAE1y3Zzq5Lw+lbQRqN9Nm6tf5QXlg= In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" 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" 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.