From nobody@FreeBSD.org  Wed Jun 19 08:52:14 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 9AFA276E
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Jun 2013 08:52:14 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 73FCD121A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Jun 2013 08:52:14 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5J8qDD0086481
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Jun 2013 08:52:13 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5J8qDwM086478;
	Wed, 19 Jun 2013 08:52:13 GMT
	(envelope-from nobody)
Message-Id: <201306190852.r5J8qDwM086478@oldred.freebsd.org>
Date: Wed, 19 Jun 2013 08:52:13 GMT
From: Gennady Proskurin <gpr@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ath - Atheros 5212 does not work: stuck beacon; resetting (bmiss count 4)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179709
>Category:       kern
>Synopsis:       [ath] Atheros 5212 does not work: stuck beacon; resetting (bmiss count 4) [regression]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 19 09:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Thu Jun 20 15:50:00 UTC 2013
>Originator:     Gennady Proskurin
>Release:        FreeBSD 10.0-CURRENT
>Organization:
>Environment:
FreeBSD gpr.nnz-home.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251945+1330981: Wed Jun 19 08:09:32 MSK 2013     gpr@gpr.nnz-home.ru:/usr/obj/usr/src/freebsd-head/sys/GPR  amd64
>Description:
After upgrading to r251945 my ath card does not work.
Earlier revision r251541 worked.

Now it spams log and console and my kernel log with messages:

Jun 19 10:04:27 gpr kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jun 19 10:04:58 gpr last message repeated 101 times
Jun 19 10:05:42 gpr last message repeated 143 times
Jun 19 10:05:42 gpr kernel: ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing
Jun 19 10:05:42 gpr kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jun 19 10:05:47 gpr last message repeated 11 times
Jun 19 10:05:47 gpr kernel: ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing
Jun 19 10:05:47 gpr kernel: ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing
Jun 19 10:05:47 gpr kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jun 19 10:05:53 gpr last message repeated 19 times
..
Jun 19 10:06:20 gpr kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jun 19 10:06:21 gpr last message repeated 4 times
Jun 19 10:06:22 gpr kernel: ath0: ath_tx_should_swq_frame: f0:4f:7c:fc:b3:22: Node is asleep; sending mgmt (type=0, subtype=176)
Jun 19 10:06:22 gpr kernel: ath0: ath_tx_should_swq_frame: f0:4f:7c:fc:b3:22: Node is asleep; sending mgmt (type=0, subtype=176)
Jun 19 10:06:22 gpr kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jun 19 10:06:23 gpr kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jun 19 10:06:23 gpr kernel: ath0: ath_tx_node_wakeup: an=0xffffff8002322000: node was already awake
Jun 19 10:06:24 gpr kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jun 19 10:06:25 gpr kernel: ath0: stuck beacon; resetting (bmiss count 4)


Boot log device info:
Jun 19 10:04:18 gpr kernel: ath0: <Atheros 5212> mem 0xfbdf0000-0xfbdfffff irq 19 at device 10.0 on pci0
Jun 19 10:04:18 gpr kernel: ath0: AR2413 mac 7.9 RF2413 phy 4.5
Jun 19 10:04:18 gpr kernel: ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0056

# pciconf -lv
ath0@pci0:0:10:0:       class=0x020000 card=0x2051168c chip=0x0013168c rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = 'AR5212/AR5213 Wireless Network Adapter'
    class      = network
    subclass   = ethernet

# rc.conf
wlans_ath0="wlan0"
create_args_wlan0="wlandev ath0 wlanmode hostap"
ifconfig_wlan0="10.X.X.X/24"
hostapd_enable="YES"



Earlier revision r251541 worked without any problem. Sometimes it wrote the following to kernel log:

ath0: ath_tx_should_swq_frame: f0:4f:7c:fc:b3:22: Node is asleep; sending mgmt (type=0, subtype=176)

But it seemed harmless, it just worked.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jun 19 12:22:26 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179709 

From: Gennady Proskurin <gprspb@mail.ru>
To: bug-followup@FreeBSD.org, gpr@mail.ru
Cc:  
Subject: Re: kern/179709: [ath] Atheros 5212 does not work: stuck beacon;
 resetting (bmiss count 4) [regression]
Date: Thu, 20 Jun 2013 19:45:52 +0400

 I reverted kernel and world to r251541 and card does not work. So, bug is not
 caused by source changes.
 
 It seems my card have "unstable" hardware, or something like that.
 
 Corresponding thread in freebsd-wireless maillist:
 http://lists.freebsd.org/pipermail/freebsd-wireless/2013-June/003445.html
 
>Unformatted:
