Return-path: Received: from mx1.redhat.com ([209.132.183.28]:7791 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933898Ab3CSWKt (ORCPT ); Tue, 19 Mar 2013 18:10:49 -0400 Message-ID: <1363731087.8874.19.camel@dcbw.foobar.com> (sfid-20130319_231057_663084_B75B8D2C) Subject: Re: Brcmsmac driver woes, possible regression? From: Dan Williams To: Arend van Spriel Cc: =?ISO-8859-1?Q?Camale=F3n?= , Jonathan Nieder , 664767@bugs.debian.org, linux-wireless@vger.kernel.org Date: Tue, 19 Mar 2013 17:11:27 -0500 In-Reply-To: <5148DEC9.50003@broadcom.com> References: <20130317144603.GA4850@stt008.linux.site> <1363532310.3937.266.camel@deadeye.wl.decadent.org.uk> <20130317152428.GA4940@stt008.linux.site> <20130317175658.GA8181@elie.Belkin> <20130317182725.GA5811@stt008.linux.site> <20130317183344.GA8786@elie.Belkin> <20130318083752.GA6570@elie.Belkin> <51476D25.6030609@broadcom.com> <20130318211428.GA9136@stt008.linux.site> <20130318212544.GB5062@elie.Belkin> <5148DEC9.50003@broadcom.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, 2013-03-19 at 22:55 +0100, Arend van Spriel wrote: > On 03/19/2013 05:21 PM, CamaleĆ³n wrote: > > Mar 19 17:05:28 stt300 kernel: [26034.188562] wlan0: authenticated > > Mar 19 17:05:28 stt300 kernel: [26034.192108] wlan0: associate with 00:1a:2b:97:7a:97 (try 1/3) > > Mar 19 17:05:28 stt300 NetworkManager[30971]: (wlan0): supplicant interface state: authenticating -> associating > > Mar 19 17:05:30 stt300 kernel: [26036.586947] wlan0: RX AssocResp from 00:1a:2b:97:7a:97 (capab=0x411 status=0 aid=1) > > Mar 19 17:05:30 stt300 kernel: [26036.587560] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated > > Mar 19 17:05:30 stt300 kernel: [26036.587576] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: true (implement) > > Mar 19 17:05:30 stt300 kernel: [26036.587603] wlan0: associated > > Mar 19 17:05:30 stt300 kernel: [26036.587698] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready > > Mar 19 17:05:30 stt300 wpa_supplicant[2855]: wlan0: Associated with 00:1a:2b:97:7a:97 > > Seems to be heading in the right direction, but.... > > > Mar 19 17:05:30 stt300 NetworkManager[30971]: (wlan0): supplicant interface state: associating -> associated > > Mar 19 17:05:30 stt300 NetworkManager[30971]: (wlan0): supplicant interface state: associated -> 4-way handshake > > Mar 19 17:05:32 stt300 avahi-daemon[2630]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::ae81:12ff:fe34:6963. > > Mar 19 17:05:32 stt300 avahi-daemon[2630]: New relevant interface wlan0.IPv6 for mDNS. > > Mar 19 17:05:32 stt300 avahi-daemon[2630]: Registering new address record for fe80::ae81:12ff:fe34:6963 on wlan0.*. > > Mar 19 17:05:32 stt300 NetworkManager[30971]: Activation (wlan0/wireless): association took too long. > > Here it seem to go bad again... > > > Mar 19 17:05:32 stt300 NetworkManager[30971]: (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0] > > Mar 19 17:05:32 stt300 NetworkManager[30971]: Activation (wlan0/wireless): asking for new secrets > > Mar 19 17:05:32 stt300 kernel: [26039.005158] wlan0: deauthenticating from 00:1a:2b:97:7a:97 by local choice (reason=3) > > And we get a deauth request with WLAN_REASON_DEAUTH_LEAVING. That local choice (reason=3) is NetworkManager terminating the association attempt because it already took 25 seconds, which is way too long for a simple association. The cause is long before that. NM tells the supplicant to start associating here: Mar 19 17:05:07 stt300 NetworkManager[30971]: Config: set interface ap_scan to 1 and finally kills the attempt here: Mar 19 17:05:32 stt300 NetworkManager[30971]: Activation (wlan0/wireless): association took too long. So the supplicant gets a total of 25 seconds to associate to the AP, which, if you're not associated within that time, you're definitely not going to get associated if you're given more time. But between 17:05:07 and 17:05:32, NM is just waiting for the association to succeed. It really does look like the supplicant or driver tries to associate but then fails, eg: Mar 19 17:05:08 stt300 kernel: [26014.833011] wlan0: send auth to 00:1a:2b:97:7a:97 (try 1/3) Mar 19 17:05:13 stt300 kernel: [26019.834259] wlan0: deauthenticating from 00:1a:2b:97:7a:97 by local choice (reason=3) There's a whole lot of authentication/association failures in that log, which do appear to indicate that the STA can see the AP, but the AP can't hear the STA. Then we also have stuff like: Mar 19 17:05:24 stt300 wpa_supplicant[2855]: wlan0: SME: Authentication request to the driver failed where it would be nice to know why the request failed. Dan > > Mar 19 17:05:33 stt300 kernel: [26040.004150] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated > > Mar 19 17:05:33 stt300 kernel: [26040.004172] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement) > > Mar 19 17:05:34 stt300 kernel: [26040.504402] cfg80211: Calling CRDA to update world regulatory domain > > Mar 19 17:05:34 stt300 ntpd[2611]: Listen normally on 16 wlan0 fe80::ae81:12ff:fe34:6963 UDP 123 > > Mar 19 17:05:34 stt300 ntpd[2611]: peers refreshed > > Mar 19 17:05:34 stt300 wpa_supplicant[2855]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3 > > Mar 19 17:05:34 stt300 NetworkManager[30971]: (wlan0): supplicant interface state: 4-way handshake -> disconnected > > Mar 19 17:05:34 stt300 NetworkManager[30971]: Couldn't disconnect supplicant interface: This interface is not connected. > > I am trying to make sense of it, but it is getting late over here. Have > a fresh look tomorrow. > > Regards, > Arend > > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html