From adrian@FreeBSD.org  Fri Jul  2 16:38:13 2010
Return-Path: <adrian@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 231B8106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  2 Jul 2010 16:38:13 +0000 (UTC)
	(envelope-from adrian@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28])
	by mx1.freebsd.org (Postfix) with ESMTP id EC12F8FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  2 Jul 2010 16:38:12 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o62GcCGH068929
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 2 Jul 2010 16:38:12 GMT
	(envelope-from adrian@freefall.freebsd.org)
Received: (from adrian@localhost)
	by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o62GcCsk068928;
	Fri, 2 Jul 2010 16:38:12 GMT
	(envelope-from adrian)
Message-Id: <201007021638.o62GcCsk068928@freefall.freebsd.org>
Date: Fri, 2 Jul 2010 16:38:12 GMT
From: Adrian Chadd <adrian@FreeBSD.org>
Reply-To: Adrian Chadd <adrian@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Triggering atheros wifi beacon misses in hostap mode under no radio traffic load
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         148322
>Category:       kern
>Synopsis:       [ath] Triggering atheros wifi beacon misses in hostap mode under no radio traffic load
>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:   Fri Jul 02 16:40:04 UTC 2010
>Closed-Date:    
>Last-Modified:  Mon Apr 11 11:41:19 UTC 2011
>Originator:     Adrian Chadd
>Release:        FreeBSD wap1 9.0-CURRENT
>Organization:
>Environment:

* ubiquiti routerstation pro
* ubiquiti SR-2 card, AR5213A based
* running -current from local USB hard disk

FreeBSD wap1 9.0-CURRENT FreeBSD 9.0-CURRENT #5: Fri Jul  2 23:33:56 WST 2010     adrian@pcbsd-3114:/data/freebsd/mips/head/obj-mip
s/mips.mips/data/freebsd/mips/head/src/sys/AR71XX  mips

>Description:

Reproducing "missed x consecutive beacon" debug messages by doing SPI flash IO.

This isn't -necessarily- a radio stability/signal strength issue (but I'll
re-test that comment when I acquire something spectrum analyzer-y) but it
could indicate some other problem. The flash IO is through the AR71XX SPI bus.
It shouldn't interfere with the beacon transmission, right?

>How-To-Repeat:

* setup interface in hostap mode:

rc.conf:
wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap mode 11g country AU txpower 2 bgscan"
ifconfig_wlan0="ssid cacheboy_test_1 mode 11g channel 6 txpower 2 up"

* create hostapd config to make sure neighbors don't steal wifi:

interface=wlan0
driver=bsd
ssid=cacheboy_test_1
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_passphrase=XXXX
wpa_pairwise=CCMP TKIP

* create bridge group just for testing normal traffic:

rc.conf:
cloned_interfaces="bridge0"
ifconfig_bridge0="addm wlan0 stp wlan0 addm wlan1 stp wlan1 addm arge0 stp arge0 up"

* enable beacon debug messages (assuming the kernel has been compiled with atheros debugging):

# sysctl dev.ath.0.debug=0x80

* dd from flash:
wap1# dd if=/dev/redboot/kernel of=/dev/null bs=64k
ath0: ath_beacon_proc: missed 1 consecutive beacons
ath0: ath_beacon_proc: resume beacon xmit after 1 misses
ath0: ath_beacon_proc: missed 1 consecutive beacons
ath0: ath_beacon_proc: resume beacon xmit after 1 misses
<etc, etc>

>Fix:

Weirdly enough, tweaking the HAL DMA/software beacon timings quieten those messages:

# sysctl hw.ath.hal.dma_brt=1000
# sysctl hw.ath.hal.sw_brt=3000
# ifconfig wlan0 down
#ifconfig wlan0 up
# dd if=/dev/redboot/kernel of=/dev/null bs=64k

I haven't tried passing any traffic through the AP yet with these HAL settings.

100/300 also works. Dropping it back to the default of 2/10 sees the missed beacon messages.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jul 3 11:16:04 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148322: commit references a PR
Date: Thu,  9 Sep 2010 22:28:07 +0000 (UTC)

 pgollucci    2010-09-09 22:28:03 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel                Makefile 
   Added files:
     devel/pecl-xhprof    Makefile distinfo pkg-descr 
   Log:
   XHProf is a function-level hierarchical profiler for PHP and has a simple HTML
   based navigational interface. The raw data collection component is implemented
   in C (as a PHP extension). The reporting/UI layer is all in PHP. It is capable
   of reporting function-level inclusive and exclusive wall times, memory usage,
   CPU times and number of calls for each function. Additionally, it supports
   ability to compare two runs (hierarchical DIFF reports), or aggregate results
   from multiple runs.
   
   WWW: http://pecl.php.net/package/xhprof/
   
   PR:             ports/148322
   Submitted by:   Conor McDermottroe <ports at mcdermottroe.com>
   
   Revision  Changes    Path
   1.4037    +1 -0      ports/devel/Makefile
   1.1       +24 -0     ports/devel/pecl-xhprof/Makefile (new)
   1.1       +3 -0      ports/devel/pecl-xhprof/distinfo (new)
   1.1       +9 -0      ports/devel/pecl-xhprof/pkg-descr (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
Responsible-Changed-From-To: freebsd-net->freebsd-wireless 
Responsible-Changed-By: adrian 
Responsible-Changed-When: Mon Apr 11 11:41:05 UTC 2011 
Responsible-Changed-Why:  
punt to mailing list 


http://www.freebsd.org/cgi/query-pr.cgi?pr=148322 
>Unformatted:
