Return-path: Received: from [195.159.176.226] ([195.159.176.226]:54466 "EHLO blaine.gmane.org" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752129AbdC2Tg4 (ORCPT ); Wed, 29 Mar 2017 15:36:56 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ctJOa-0001Aa-Hc for linux-wireless@vger.kernel.org; Wed, 29 Mar 2017 21:36:40 +0200 To: linux-wireless@vger.kernel.org From: Dennis New Subject: Re: wlan0 keeps deauthenticating DEAUTH_LEAVING about every minute Date: Wed, 29 Mar 2017 15:36:23 -0400 Message-ID: <20170329153623.4a65bcf647c899f6bc5995ee@dennisn.mooo.com> (sfid-20170329_213741_422247_360039D9) References: <20170324213237.6f122a9173fa464a5d936f9d@dennisn.mooo.com> <1490772890.18052.8.camel@sipsolutions.net> <20170329062808.032e71a5327f3405f82df4b2@dennisn.mooo.com> <1490788146.7948.19.camel@sipsolutions.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <1490788146.7948.19.camel@sipsolutions.net> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, 29 Mar 2017 13:49:06 +0200, Johannes Berg wrote: > On Wed, 2017-03-29 at 06:28 -0400, Dennis New wrote: > > On Wed, 29 Mar 2017 09:34:50 +0200, Johannes Berg wrote: > > > On Fri, 2017-03-24 at 21:32 -0400, Dennis New wrote: > > > > Ever since I upgraded to the 4.10 kernels (I don't think this > > > > behavior existed in the 4.8 series), after I startup my laptop > > > > (either from cold boot, or from standby), my wlan0 interface > > > > keeps > > > > deauthenticating > > > > ... > > > > 19:23:29 kernel: wlan0: authenticate with 00:11:22:33:44:55 > > > > 19:23:29 kernel: ------------[ cut here ]------------ > > > > 19:23:29 kernel: WARNING: CPU: 0 PID: 18925 at > > > > net/mac80211/mlme.c:287 ieee80211_determine_chantype+0x12e/0x380 > > > > > > This is already indicating a severe problem. I don't know how you > > > end > > > up in this situation with b43, since that doesn't have any > > > regulatory > > > magic afaict. > > > > > > > 19:23:29 kernel: wlan0: associated > > > > > > > > 19:24:29 kernel: wlan0: deauthenticating from 00:11:22:33:44:55 > > > > by > > > > local choice (Reason: 3=DEAUTH_LEAVING) > > > > > > I'm convinced that this comes from reg_check_channels(). > > > > > > The above WARN_ON() already told you that the channel was > > > considered > > > invalid. > > > > > > Do you know what channel your AP is on? > > > > 6 > > > > > Perhaps show the output of "iw wlan0 scan dump" while it's > > > > connected (you have 60 seconds :P) > > > > I have been having stable connections for the past few days, > > simply by putting a 60 second sleep before starting my wlan0. > > Although > > if I /etc/init.d/net.wlan0 restart it (without the delay), it will > > still do this deauth'ing. > > Very strange. > > > * 2437 MHz [6]  > >   Maximum TX power: 20.0 dBm > >   Channel widths: > > That's quite odd, why isn't it listing any possible channel widths?! > > I get: > * 2437 MHz [6]  >   Maximum TX power: 15.0 dBm >   Channel widths: 20MHz HT40- HT40+ > > What's "iw reg get"? global country 00: DFS-UNSET (2402 - 2472 @ 92), (N/A, 20), (N/A) (2457 - 2482 @ 92), (N/A, 20), (N/A), PASSIVE-SCAN (2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN (5170 - 5250 @ 160), (N/A, 20), (N/A), PASSIVE-SCAN (5250 - 5330 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN (5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN (5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN (57240 - 63720 @ 2160), (N/A, 0), (N/A)