From owner-freebsd-wireless@FreeBSD.ORG Thu May 16 14:20:51 2013 Return-Path: Delivered-To: freebsd-wireless@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 96D90862; Thu, 16 May 2013 14:20:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 0BD4EA97; Thu, 16 May 2013 14:20:50 +0000 (UTC) Received: by mail-we0-f174.google.com with SMTP id x53so2719127wes.5 for ; Thu, 16 May 2013 07:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Zy7c16TZN9KHudG4Ut4MZWOeWjx/L7/BZN6Zpzo3oLI=; b=baUX4vvfXGPBWmGSW4ktO4DwJdRxj/Qc7rJVg7nuuYSrTMpnqlYj+SgPIG5x9ZXeId ulpWnDtoVLNSM6sSexluEKrEvs9ojY5xHzZHD74ytAkLHKk5ROAVOMRX/5s/aJeujQV2 6pzzDu2J+iifToX5vzKEJ8cE2ME3NuXkWUxMGYuVXaQkhbQAGBFIza1VwgX6GPEA5vAY ssfxIxdsd9r9D6DeP3nC1WTskr5nTp+quUqCzQ1oy4J4Ie8P8+u2biqxB4dhFafo5c0n P+3uNvbsySJFxD3m9cL5T05cm1uyBQuSrW/0MekxPDow/BhqjLoNg4NGGYetBOm4q3hx u8Aw== MIME-Version: 1.0 X-Received: by 10.181.13.42 with SMTP id ev10mr18010794wid.1.1368714050213; Thu, 16 May 2013 07:20:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.58.138 with HTTP; Thu, 16 May 2013 07:20:50 -0700 (PDT) In-Reply-To: <57577088.20130516130950@serebryakov.spb.ru> References: <57577088.20130516130950@serebryakov.spb.ru> Date: Thu, 16 May 2013 07:20:50 -0700 X-Google-Sender-Auth: MNMr-etiaOnvmJjzzQQMfv434Xw Message-ID: Subject: Re: [rft] improved hostap powersave / ps-poll support is now in HEAD From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 16 May 2013 14:20:51 -0000 oh, when it drops to non-N mode, it likely did that because it failed to successfully transmit a BAR frame to the receiver. can you provide me the whole log? I'll go see what's going on. Thanks! adrian On 16 May 2013 02:09, Lev Serebryakov wrote: > Hello, Adrian. > You wrote 15 =D0=BC=D0=B0=D1=8F 2013 =D0=B3., 22:34:26: > > AC> I've just committed my first pass of improved power save and ps-poll > AC> support in AP mode to -HEAD. > AC> There's a bunch of corner cases I'm trying to solve but I'd rather > AC> this be in the driver now rather than later. > AC> So please, update to -HEAD and give this a whirl. Let me know if > AC> things are better, worse or the same. > r250675, my ususal test (300 mbit AP -> Client). > Looks good. First of all, it gives me stable 100-150Mbit, so it could > negotiate HT rates again without TCP :) > > > And it sustain for 600 seconds in this mode, which was impossible > before. > > There was several such messages: > > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_suspend: tid=3D0xfff= fff8000d82230, bar_wait=3D0, bar_tx=3D0, called > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_tx_ready: c4:85:08:3= f:9e:c2: tid=3D0xffffff8000d82230 (0), bar ready > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_tx: c4:85:08:3f:9e:c= 2: tid=3D0xffffff8000d82230, called > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_tx: c4:85:08:3f:9e:c= 2: tid=3D0xffffff8000d82230, new BAW left edge=3D676 > May 16 12:57:31 gateway kernel: ath0: ath_bar_response: c4:85:08:3f:9e:c2= : called; tap=3D0xffffff8000d7f3a0, atid=3D0xffffff8000d82230, txa_tid=3D0,= atid->tid=3D0, status=3D0, attempts=3D1 > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: c4:85:08:= 3f:9e:c2: tid=3D0xffffff8000d82230, called > > But no full stalls. > > I have dev.ath.0.debug=3D0x900000020 > > A lot of such messages in log when notebook is on battery (no such > messages when it is on AC power): > > May 16 12:51:12 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:12 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:12 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:18 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:18 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:18 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:18 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:20 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:20 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:20 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:20 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:21 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:21 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:21 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:21 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:31 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:31 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:31 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:31 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:32 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:32 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:32 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:32 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:34 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > > And sometimes it shows: > > May 16 13:05:52 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 13:05:52 gateway kernel: ath0: ath_node_recv_pspoll: c4:85:08:3f:9= e:c2: leaking frame to TID 0 > May 16 13:05:52 gateway kernel: ath0: ath_tx_leak_count_update: c4:85:08:= 3f:9e:c2: leak count =3D 1, psq=3D1, swq=3D6, MORE=3D1 > May 16 13:05:52 gateway kernel: ath0: ath_node_recv_pspoll: c4:85:08:3f:9= e:c2: leaking frame to TID 0 > May 16 13:05:52 gateway kernel: ath0: ath_tx_leak_count_update: c4:85:08:= 3f:9e:c2: leak count =3D 1, psq=3D1, swq=3D8, MORE=3D1 > May 16 13:05:52 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > > It is when traffic goes 100-150Mbit/s, with drops to 75-85 every > ~10th second. > > At second test, after ~300 seconds of test in battery mode it drops to = non-N speeds > and never recovered. > > -- > // Black Lion AKA Lev Serebryakov >