Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759022AbZIPT7u (ORCPT ); Wed, 16 Sep 2009 15:59:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754693AbZIPT7o (ORCPT ); Wed, 16 Sep 2009 15:59:44 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:39845 "EHLO mail-ew0-f206.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752202AbZIPT7n (ORCPT ); Wed, 16 Sep 2009 15:59:43 -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; b=ZD3OwQujfpSSco6pFli9Qn5A1BFwfLirTU9JD9YE0h9UjehJ28gJw4bTsSch3Oe4fc TRTTGOTqixOf1nu6S0Lzvmqho1IFhICBwmbe0ZuEbti2RdDCoxW4dEuNBhFIGjZmvGV5 D+BSk3eQ6RsY+vqTAg9LpnKkytUqAo7wHOPFY= MIME-Version: 1.0 In-Reply-To: <1253124149.26521.438.camel@rc-desk> References: <8db1092f0909160236i5d2b1f31k3ec289fbd9ac0bfa@mail.gmail.com> <1253122055.26521.431.camel@rc-desk> <8db1092f0909161036t5bae781eqa6f0a0df308ec4cd@mail.gmail.com> <1253124149.26521.438.camel@rc-desk> Date: Wed, 16 Sep 2009 21:59:43 +0200 Message-ID: <8db1092f0909161259i5e007282i42f426bc2d0fc0c4@mail.gmail.com> Subject: Re: WARNING: at net/mac80211/scan.c:267 ieee80211_scan_completed+0x299/0x2b0 [mac80211]() From: Maciej Rutecki To: reinette chatre Cc: Linux Kernel Mailing List , Linux Wireless List , "ilw@linux.intel.com" , "Zhu, Yi" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 13842 Lines: 331 2009/9/16 reinette chatre : > > You mentioned that you tried to connect to two networks. From the logs I > can understand that the connection to the first network took a long > time. This is also not due to the warnings you encountered (the warnings > only showed up after you disconnected from second network). The reason > why the connection to the first network took so long was some protocol > exchange problems with AP. Here is the relevant information from your > log: > [...] > > As you can see the AP keeps deauthenticating you with Reason 6. This > means "Incorrect frame type or subtype received from unauthenticated > station". Can you try to connect using wpa_supplicant? When you do make > sure there is no other network managing applications (like network > manager, wicd, or even other instances of wpa_supplicant etc) running. > > The connection to the second network went very fast - completed in one > second. But a disconnection was requested locally just as fast. Do you > perhaps have more than one network managing application running? 1. Stop wicd daemon (I don't use another application to connect to the network). 2. Connect to network "x" (with WPA) 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 iwconfig $INTERFACE File /etc/wpa_supplicant/wpa_supplicant.conf: # WPA-PSK/TKIP ctrl_interface=/var/run/wpa_supplicant network={ ssid="x" key_mgmt=WPA-PSK proto=WPA pairwise=TKIP group=TKIP psk=