From owner-freebsd-wireless@freebsd.org Sun Dec 11 00:07:44 2016 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F62EC71E29 for ; Sun, 11 Dec 2016 00:07:44 +0000 (UTC) (envelope-from DoctorLan@DoctorLan.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 66C111F26 for ; Sun, 11 Dec 2016 00:07:44 +0000 (UTC) (envelope-from DoctorLan@DoctorLan.com) Received: by mailman.ysv.freebsd.org (Postfix) id 6345CC71E28; Sun, 11 Dec 2016 00:07:44 +0000 (UTC) Delivered-To: wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61311C71E27 for ; Sun, 11 Dec 2016 00:07:44 +0000 (UTC) (envelope-from DoctorLan@DoctorLan.com) Received: from ecbiz135.inmotionhosting.com (ecbiz135.inmotionhosting.com [23.235.201.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 368E21F25 for ; Sun, 11 Dec 2016 00:07:43 +0000 (UTC) (envelope-from DoctorLan@DoctorLan.com) Received: from [64.245.0.218] (port=47537 helo=[192.168.103.142]) by ecbiz135.inmotionhosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cFqlq-0006lu-Nr; Sat, 10 Dec 2016 18:09:40 -0500 Subject: Re: TP-Link TL-WDN3200 device periodically loses connection on some networks To: adrian.chadd@gmail.com, wireless@freebsd.org References: <4e1ec741-6732-49d4-8614-d3583f85eefb@rawbw.com> From: yuri@rawbw.com Message-ID: Date: Sat, 10 Dec 2016 15:06:55 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ecbiz135.inmotionhosting.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - DoctorLan.com X-Get-Message-Sender-Via: ecbiz135.inmotionhosting.com: authenticated_id: doctorlan@doctorlan.com X-Authenticated-Sender: ecbiz135.inmotionhosting.com: doctorlan@doctorlan.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2016 00:07:44 -0000 On 12/06/2016 21:48, adrian.chadd at gmail.com (Adrian Chadd) wrote: > ry compiling with IEEE80211_DEBUG and then wlandebug +crypto +assoc +state > > let's see if it's something to do with going rx deaf, or RX crypto errors:( Today I stumbled upon another network that fails with the same symptom, loss of IP connectivity. Nothing new is printed at and after the moment of failure, see below. Yuri wlan0: start running, 0 vaps running wlan0: ieee80211_start_locked: up parent run0 run0: firmware RT3071 ver. 0.33 loaded wlan0: start running, 1 vaps running wlan0: ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0) wlan0: ieee80211_newstate_cb: INIT -> SCAN arg 0 wlan0: sta_newstate: INIT -> SCAN (0) wlan0: [00:23:33:20:5d:94] station assoc via MLME wlan0: ieee80211_new_state_locked: SCAN -> AUTH (nrunning 0 nscanning 0) wlan0: ieee80211_newstate_cb: SCAN -> AUTH arg 192 wlan0: sta_newstate: SCAN -> AUTH (192) wlan0: ieee80211_new_state_locked: AUTH -> ASSOC (nrunning 0 nscanning 0) wlan0: ieee80211_newstate_cb: AUTH -> ASSOC arg 0 wlan0: sta_newstate: AUTH -> ASSOC (0) wlan0: [00:23:33:20:5d:94] assoc success at aid 1: short preamble, short slot time, QoS wlan0: ieee80211_new_state_locked: ASSOC -> RUN (nrunning 0 nscanning 0) wlan0: ieee80211_newstate_cb: ASSOC -> RUN arg 16 wlan0: sta_newstate: ASSOC -> RUN (16) wlan0: link state changed to UP wlan0: ieee80211_crypto_newkey: cipher 3 flags 0x3 keyix 65535 wlan0: ieee80211_crypto_setkey: AES-CCM keyix 0 flags 0x103 mac 00:23:33:20:5d:94 rsc 0 tsc 0 len 16 wlan0: ieee80211_crypto_newkey: cipher 1 flags 0x6 keyix 1 wlan0: ieee80211_crypto_setkey: TKIP keyix 1 flags 0x106 mac ff:ff:ff:ff:ff:ff rsc 0 tsc 0 len 16