Return-path: Received: from mga02.intel.com ([134.134.136.20]:15524 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753551AbZIPWNV (ORCPT ); Wed, 16 Sep 2009 18:13:21 -0400 Subject: Re: WARNING: at net/mac80211/scan.c:267 ieee80211_scan_completed+0x299/0x2b0 [mac80211]() From: reinette chatre To: Maciej Rutecki Cc: Linux Kernel Mailing List , Linux Wireless List , "ilw@linux.intel.com" , "Zhu, Yi" In-Reply-To: <8db1092f0909161259i5e007282i42f426bc2d0fc0c4@mail.gmail.com> References: <8db1092f0909160236i5d2b1f31k3ec289fbd9ac0bfa@mail.gmail.com> <1253122055.26521.431.camel@rc-desk> <8db1092f0909161036t5bae781eqa6f0a0df308ec4cd@mail.gmail.com> <1253124149.26521.438.camel@rc-desk> <8db1092f0909161259i5e007282i42f426bc2d0fc0c4@mail.gmail.com> Content-Type: text/plain Date: Wed, 16 Sep 2009 15:13:06 -0700 Message-Id: <1253139186.26521.449.camel@rc-desk> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Maciej, On Wed, 2009-09-16 at 12:59 -0700, Maciej Rutecki wrote: > Script (wifi_wpa.sh): > #!/bin/sh > INTERFACE=wlan0 > WPA_FILE=/etc/wpa_supplicant/wpa_supplicant.conf > DRIVER=wext > ifconfig eth0 down > ifconfig $INTERFACE up > sleep 3 > killall wpa_supplicant &> /dev/null > wpa_supplicant -c $WPA_FILE -D $DRIVER -i $INTERFACE -B > dhclient $INTERFACE I think there is a potential race here. You start wpa_supplicant in background and then immediately request an IP. It is not guaranteed at this point that you are associated. Could you perform the last three steps of your script manually? Reinette