From owner-freebsd-wireless@freebsd.org Thu Nov 15 20:56:05 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 326001109A1F for ; Thu, 15 Nov 2018 20:56:05 +0000 (UTC) (envelope-from arcade@b1t.name) 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 9F6547E5F7 for ; Thu, 15 Nov 2018 20:56:04 +0000 (UTC) (envelope-from arcade@b1t.name) Received: by mailman.ysv.freebsd.org (Postfix) id 63F531109A1E; Thu, 15 Nov 2018 20:56:04 +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 284021109A1A for ; Thu, 15 Nov 2018 20:56:04 +0000 (UTC) (envelope-from arcade@b1t.name) Received: from limbo.b1t.name (limbo.b1t.name [78.25.32.206]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0EC957E5F1 for ; Thu, 15 Nov 2018 20:55:59 +0000 (UTC) (envelope-from arcade@b1t.name) Received: from [172.29.1.147] (unknown [172.29.1.147]) by limbo.b1t.name (Postfix) with ESMTPSA id 3D15077 for ; Thu, 15 Nov 2018 22:56:16 +0200 (EET) To: wireless@FreeBSD.org From: Volodymyr Kostyrko Subject: Atheros 9220 - losing connectivity Message-ID: <421db909-9c41-15bf-5ee1-b91311185321@b1t.name> Date: Thu, 15 Nov 2018 22:55:38 +0200 User-Agent: Mozilla/5.0 (X11; DragonFly x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=b1t.name; s=dkim; t=1542315377; bh=DXzNq7Jk9SFun3usM+0YKa8GmBmi8rrcPkr5pfwTmQU=; h=To:From:Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6IblsmiNe86h8WDXhjgD/OFdT1QbPeV5EoQifQWYIoLK+yug8+bhwgOHsW8+0+0wrYmgqRcT7d2qDZcAoRiBqiLHV6jGpCo4v76BhmvEP44vEy0nRuSnxqH6Ns2xeIOLIOIZLvJxVFNOfIGIAFcwbyiqrZijNd3Sun3FCRi8pHM= X-Rspamd-Queue-Id: 9F6547E5F7 X-Spamd-Result: default: False [-8.10 / 200.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FORGED_RECIPIENTS_FORWARDING(0.00)[]; FORWARDED(0.00)[wireless@mailman.ysv.freebsd.org]; SPF_FAIL_FORWARDING(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DKIM_TRACE(0.00)[b1t.name:+]; DMARC_POLICY_ALLOW(0.00)[b1t.name,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: limbo.b1t.name]; 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)]; NEURAL_HAM_SHORT(-0.98)[-0.983,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; FORGED_RECIPIENTS(0.00)[wireless@FreeBSD.org,freebsd-wireless@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_SPF_FAIL(0.00)[-all]; R_DKIM_ALLOW(-0.20)[b1t.name]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1] X-Rspamd-Server: mx1.freebsd.org 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 20:56:05 -0000 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.