From owner-freebsd-wireless@freebsd.org Thu Nov 15 21:31:36 2018 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6548E110A7DE for ; Thu, 15 Nov 2018 21:31:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CB919802B6 for ; Thu, 15 Nov 2018 21:31:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 8FCB0110A7D8; Thu, 15 Nov 2018 21:31:35 +0000 (UTC) Delivered-To: wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DBF2110A7D7 for ; Thu, 15 Nov 2018 21:31:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B4183802B0 for ; Thu, 15 Nov 2018 21:31:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr1-x42a.google.com with SMTP id v18-v6so22740825wrt.8 for ; Thu, 15 Nov 2018 13:31:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HxUfZs2gT4Tw9wJDI6+BFpoYfrkiED9hjRG41CfYH40=; b=iBIQWxQquYD9HfbUdjS8blgK4bpignGKIGNA3Mf5fkkr4Nvw5coCFFEo29xwLA1/1/ rUz/CJxlqULyiXcdfnYFKeKJ3DKV38rQS+ofjRHvqH22sgCLpTm0pEmuGK6f3xL8+Tfb uCzGb1QclOrxn57TRyoyTbtr6shb2gTGn4NgDbCQd9+I9iuXoTycrc02ew/sP2POizOF oVZApEz6ixAnOH79W+4Ok6Jge6a7LoR7tzBpnwCgHRrD+oWnTbGBatvunMH/R04pdyux DXIiow8uNLQCF6pRozeuxaGn4C2ps5Mw5q224sy6gttO1RznHqo2DLpW+Hxl8FtiH2SP Vuyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HxUfZs2gT4Tw9wJDI6+BFpoYfrkiED9hjRG41CfYH40=; b=lC3kz/nemHO2NKI4kS8BKyNCCW5DYDKnEyDy4nMLJFk844rOgDBhoDrS6lF6wYfPQg q3lc8P4g2QMuP4aw2PUi9RPFuIEBu+yEAVMD7cLVmZJ6G1XTdYxS8rCDiYiFfIK1vzvw PviFZuoj65a8H0gmmvYWBmN3CaJr7V4bKPEaukfHtZ/sDrkVrxoUOvfSKOeQj1TfM7SP wSExCrk5OnfFa4G2yqivswqdtbs+HB9MfgkHcw8XPX0EYMqwe4vmZyy54JOSCPVl7wgB F54aWT/Jo+U33ZJHqF9bsm+3AidSudcO9tkv2/Kr/lFoNJ/gTp3oANbpR2Weoj4H+Iy1 cAgg== X-Gm-Message-State: AGRZ1gItPq9y26x0QvHJb6JJ7A1ofDp8PcoFh7z5Cve1NXqs/XbZ9pKM 6E5JitNpn2NiZA1vi8x85cy4bP+X47kj2j9jTIs= X-Google-Smtp-Source: AJdET5dMYlOTejIxi50TJgnCdZ3RcpduRJ2BARZMYYg8xOySOKmheCkF9OgN1xepjKcTBO31wspzEOqxgi7JvlK8nPc= X-Received: by 2002:adf:dc87:: with SMTP id r7-v6mr7318074wrj.143.1542317493594; Thu, 15 Nov 2018 13:31:33 -0800 (PST) MIME-Version: 1.0 References: <421db909-9c41-15bf-5ee1-b91311185321@b1t.name> In-Reply-To: <421db909-9c41-15bf-5ee1-b91311185321@b1t.name> From: Adrian Chadd Date: Thu, 15 Nov 2018 13:31:20 -0800 Message-ID: Subject: Re: Atheros 9220 - losing connectivity To: arcade@b1t.name Cc: "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: CB919802B6 X-Spamd-Result: default: False [-8.05 / 200.00]; FORGED_RECIPIENTS_FORWARDING(0.00)[]; FORWARDED(0.00)[wireless@mailman.ysv.freebsd.org]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; SPF_FAIL_FORWARDING(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_SPF_SOFTFAIL(0.00)[~all]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(0.00)[gmail.com,none]; RCVD_IN_DNSWL_MED(-0.20)[5.0.0.0.0.5.0.0.0.0.0.0.0.0.0.0.a.6.0.2.4.5.2.2.0.0.9.1.1.0.0.2.list.dnswl.org : 127.0.9.2]; DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-3.71)[ip: (-9.87), ipnet: 2001:1900:2254::/48(-4.81), asn: 10310(-3.75), country: US(-0.10)]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; TAGGED_FROM(0.00)[]; FORGED_RECIPIENTS(0.00)[arcade@b1t.name ..,freebsd-wireless@freebsd.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.937,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 15 Nov 2018 21:31:36 -0000 Hi! 11-stable to 12-stable shouldn't have resulted in a regression? interesting, okay. Which devices are they? -adrian On Thu, 15 Nov 2018 at 12:56, Volodymyr Kostyrko wrote: > Hello. > > I'm not quite sure what happens so I'll just dump here what I have in > mind so it would be easier to sort out later. > > I upgraded from 11-STABLE to 12-STABLE and my card is now working in HT > mode. And that is nice. Currnently it's detected as: > > ath0@pci0:4:5:0: class=0x028000 card=0x2093168c chip=0x0029168c > rev=0x01 hdr=0x00 > vendor = 'Qualcomm Atheros' > device = 'AR922X Wireless Network Adapter' > class = network > > ath0: mem 0xfebf0000-0xfebfffff irq 20 at device 5.0 on pci4 > ath0: [HT] enabling HT modes > ath0: [HT] 1 stream STBC receive enabled > ath0: [HT] 1 stream STBC transmit enabled > ath0: [HT] 2 RX streams; 2 TX streams > ath0: Enabling register serialisation > ath0: AR9220 mac 128.2 RF5133 phy 13.0 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > > # ifconfig wlan1 list chan > Channel 1 : 2412 MHz 11g ht Channel 8 : 2447 MHz 11g ht > Channel 2 : 2417 MHz 11g ht Channel 9 : 2452 MHz 11g ht > Channel 3 : 2422 MHz 11g ht Channel 10 : 2457 MHz 11g ht > Channel 4 : 2427 MHz 11g ht Channel 11 : 2462 MHz 11g ht > Channel 5 : 2432 MHz 11g ht Channel 12 : 2467* MHz 11g ht > Channel 6 : 2437 MHz 11g ht Channel 13 : 2472* MHz 11g ht > Channel 7 : 2442 MHz 11g ht > > Debug enabled: > dev.ath.0.hal.force_full_reset=1 > dev.ath.0.hal.debug=1 > > Everyting I see in logs is: > Nov 15 19:45:54 limbo kernel: ath0: stuck beacon; resetting (bmiss count 4) > Nov 15 19:45:57 limbo kernel: ath0: stuck beacon; resetting (bmiss count 4) > Nov 15 19:46:04 limbo kernel: ath0: stuck beacon; resetting (bmiss count 4) > > Though this happens all the time. > > What changed after going to 12-STABLE: > > 1. HT works. > 2. Devices are losing connection constantly. > > Sometimes devices are getting back on the network by themself. Sometimes > this requires interface down/up. That's so fast so that tcp connections > are staying intact. But sometimes putting server interface down/up is > required so the others can talk to it. On the other host I see interface > trying different channels, then hitting correct one, waiting a little > and going back to trying other channels. On correct channel it shows > status: no carrier, just sits there longer. > > It also looks like some devices have a good connection while others are > losing connection. There's one device that never gets off. > > Thanks for any pointers. > > -- > Sphinx of black quartz judge my vow. > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org > " >