From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 17:17:43 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FD31106564A for ; Fri, 25 Nov 2011 17:17:43 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 155F68FC16 for ; Fri, 25 Nov 2011 17:17:42 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id pAPHHeb9026299 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 25 Nov 2011 18:17:41 +0100 Received: from portgus.lan ([80.31.114.86]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id pAPHHZF0021477 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 25 Nov 2011 18:17:40 +0100 Message-ID: <4ECFCDAB.1080407@entel.upc.edu> Date: Fri, 25 Nov 2011 18:17:31 +0100 From: =?ISO-8859-1?Q?Gustau_P=E9rez?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111111 Thunderbird/8.0 MIME-Version: 1.0 To: Adrian Chadd References: <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Fri, 25 Nov 2011 18:17:41 +0100 (CET) Cc: freebsd-wireless@freebsd.org Subject: Re: Big delays between an AR5416 AP and its clients X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 25 Nov 2011 17:17:43 -0000 On 11/25/11 10:53, Adrian Chadd wrote: > Hi, > > As I've said privately: > > * compile w/ ATH_DEBUG, ATH_DIAGAPI, AH_DEBUG > * and compile src/tools/tools/ath/athstats/ > > I also suggest: > > * compile w/ IEEE80211_DEBUG > * and compile src/tools/tools/wlan/wlanstats/ > > (why those aren't built as part of the base is beyond me, but I digress..) > > Let's see if we can find some correlations between counters > incrementing and upset traffic w/ your iphone. > All that follows was done with all the debug kernel knobs there. I did two tests collecting info with athstats. The first was with no clients associated with the box and then letting the iphone associate. The athstats dump is at: http://pastebin.com/EVgFJC7s The second one was 1 client associated with the box. This client was sending icmp messages at the default rate of 1 icmp/s: http://pastebin.com/C5kjuEpg Neither wlanstats nor dmesg shows additional information. The kernel only complains about this (I paste it only because it is quite short): ar5416PerCalibrationN: NF calibration didn't finish; delaying CCA Timeout while waiting for nf to load: AR_PHY_AGC_CONTROL=0x41d1a The last message appears from time to time (currently I have it three times) but it shows up without any correlation with the association process of the iphone so I would say it has nothing to do with our problem. It appears to be related with calibration in N mode. However I'm posting just in case. Any additional test, let me know. Gus