From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 09:53:42 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 0F4ED1065672 for ; Fri, 25 Nov 2011 09:53:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id C08998FC15 for ; Fri, 25 Nov 2011 09:53:41 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so2306956vcb.13 for ; Fri, 25 Nov 2011 01:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=iVm/HzbE57Ny3Vw27Tu294im/yq7LTXsk2G+bxQGxcY=; b=OfbM7fR6lLaapaJAChHm2jjsBg/ROYnsO0++xkEg7wOiyru6T0qnz9WeIlt/qXLtNx Qvac0s3TJxjoPH9pas9RUnMbJyOwXD3Euu9is7HHEtZhCsByr0GmVqpsbqU8F4B4DrPp Awgb39aJHuJwUuYtGe+JSv0ZJklrZ8oSwx9XA= MIME-Version: 1.0 Received: by 10.220.186.199 with SMTP id ct7mr2843717vcb.114.1322214820945; Fri, 25 Nov 2011 01:53:40 -0800 (PST) Received: by 10.52.186.74 with HTTP; Fri, 25 Nov 2011 01:53:40 -0800 (PST) In-Reply-To: <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu> References: <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu> Date: Fri, 25 Nov 2011 17:53:40 +0800 Message-ID: From: Adrian Chadd To: Gustau Perez Querol Content-Type: text/plain; charset=ISO-8859-1 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 09:53:42 -0000 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. The commit (r227364) is the introduction of the TX aggregation and software TX queue handling. It's very possible that we're seeing some very bad behaviour with aggressive power saving as I _do_ know my ath driver changes have broken the power saving stuff somewhat. The short of it: because there are now frames sitting in the driver, rather than the net80211 TX interface queue, the beacon TIM (traffic map) generation won't take into account anything that the driver sees. However unless you've enabled 11n, the software retransmission shouldn't occur - it only occurs when 11n aggregation has been negotiated. So I think it's very likely something to do with the software TX queue itself and how frames are queued/drained. So yes, let's get some more details from your environment and once I've finished relocation (and have the right iphone hardware :-) I'll see about fixing it up. Thanks very much for testing this stuff! Adrian