From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 11 22:55:54 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 41D078CA for ; Fri, 11 Jan 2013 22:55:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by mx1.freebsd.org (Postfix) with ESMTP id C8667818 for ; Fri, 11 Jan 2013 22:55:53 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id t49so1123233wey.0 for ; Fri, 11 Jan 2013 14:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tBVESbCS4xCm6PIukBhBigTYOqMEzLQrLz/po3YUiEQ=; b=R5umWuUuuNNdfFjUHdr985txBx4pAQo7CbqEnxYlqoi1NYIE6nztUGYEilx0R+GqJm tstqQ182XnnD9KoOv7Q0JMcoLrG61ucTi7a50zt7CLXqf2xDfod0GXQgnSidTyuHWXx4 FMvFOWfe+MUf2k2LLWPsFJ/Q7d6Nv8r4AEbV7dpXuQoB6Pc6Ha5GGLXbRtppfvtxsbfq OeLFvvrJqrKOYmxxdiknW5DOqteqZp0nqfdou2WUTvfPjsEmV7jIoqqoLs4fNU5gkA7Y SAj9QYQPHntSLGMl1vkTJ0D4UHrouNUZywZvZjO8DK6ry7ynb7lShLXtrMa5XySA9Jsp Iu3w== MIME-Version: 1.0 Received: by 10.194.179.34 with SMTP id dd2mr123677507wjc.1.1357944947202; Fri, 11 Jan 2013 14:55:47 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Fri, 11 Jan 2013 14:55:47 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Jan 2013 14:55:47 -0800 X-Google-Sender-Auth: 1F7o25c1SOCHgcOP76Jlq3xAOE4 Message-ID: Subject: Re: Debugging Stalls with ath(4) From: Adrian Chadd To: Andrew Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 11 Jan 2013 22:55:54 -0000 ... oh this is kind of strange. Hm, it's interesting that it's delaying that much; I wonder if the air is really busy and the transmitter just can't squeeze a frame out into the air. How close is it? What's the RSSI? adrian On 8 January 2013 15:50, Andrew wrote: > Hi, > > I just installed a TP-Link TL-WN851ND PCI wireless card into my 9.1-STABL= E (r244942) box. It shows up in dmesg as Atheros 9287 mac 384.2 RF5133. > > I am running it in hostap mode, 11g. Things seem to work OK but there are= occasionally stalls in traffic across the network. e.g. > > PING 10.0.0.1 (10.0.0.1): 56 data bytes > 64 bytes from 10.0.0.1: icmp_seq=3D0 ttl=3D64 time=3D13.134 ms > 64 bytes from 10.0.0.1: icmp_seq=3D1 ttl=3D64 time=3D77.776 ms > 64 bytes from 10.0.0.1: icmp_seq=3D2 ttl=3D64 time=3D246.675 ms > Request timeout for icmp_seq 3 > 64 bytes from 10.0.0.1: icmp_seq=3D3 ttl=3D64 time=3D1037.327 ms > 64 bytes from 10.0.0.1: icmp_seq=3D4 ttl=3D64 time=3D37.481 ms > > --- 10.0.0.1 ping statistics --- > 5 packets transmitted, 5 packets received, 0.0% packet loss > round-trip min/avg/max/stddev =3D 13.134/282.479/1037.327/386.148 ms > > I was wondering how I would go about debugging the issue? > > I have been playing with wlandebug and I can see that the client I am tes= ting with (though it doesn't appear to be client specific) is listed as goi= ng in and out of PS mode once or twice a second. Not sure that that is a pr= oblem. Using "wlandebug rate" I see: > > Jan 9 00:45:25 sanna kernel: wlan0: [00:17:f2:e9:04:b0] ath_rate_tx_comp= lete: size 1600 (1167 bytes) OK rate/try 48 Mb /0/1 > Jan 9 00:45:25 sanna kernel: wlan0: [00:17:f2:e9:04:b0] ath_rate_tx_comp= lete: size 1600 (1554 bytes) OK rate/try 48 Mb /0/1 > Jan 9 00:45:25 sanna kernel: wlan0: [00:17:f2:e9:04:b0] ath_rate_tx_comp= lete: size 1600 (1554 bytes) OK rate/try 48 Mb /0/1 > Jan 9 00:45:25 sanna kernel: wlan0: [7c:c5:37:6d:4c:7e] ath_rate_tx_comp= lete: size 250 (30 bytes) FAIL rate/try 1 Mb /0/7 > Jan 9 00:45:25 sanna kernel: wlan0: [00:17:f2:e9:04:b0] ath_rate_tx_comp= lete: size 250 (106 bytes) OK rate/try 11 Mb /0/1 > Jan 9 00:45:25 sanna kernel: wlan0: [00:17:f2:e9:04:b0] ath_rate_tx_comp= lete: size 250 (122 bytes) OK rate/try 11 Mb /0/1 > Jan 9 00:45:26 sanna kernel: wlan0: [00:17:f2:e9:04:b0] ath_rate_tx_comp= lete: size 250 (138 bytes) OK rate/try 11 Mb /0/1 > Jan 9 00:45:26 sanna kernel: wlan0: [00:23:14:98:15:b4] ath_rate_findrat= e: size 250 switch rate 48 (1129/690) -> 54 (736/682) after 2 packets mrr 0 > Jan 9 00:45:26 sanna kernel: wlan0: [64:70:02:f0:c8:03] ath_rate_tx_comp= lete: size 250 FAIL rate/try 0/5 no rates yet > Jan 9 00:45:26 sanna kernel: wlan0: [00:17:f2:e9:04:b0] ath_rate_tx_comp= lete: size 250 (94 bytes) OK rate/try 11 Mb /0/1 > Jan 9 00:45:26 sanna last message repeated 2 times > Jan 9 00:45:26 sanna kernel: wlan0: [00:23:14:98:15:b4] ath_rate_tx_comp= lete: size 250 (163 bytes) OK rate/try 54 Mb /0/2 > Jan 9 00:45:26 sanna kernel: wlan0: [00:17:f2:e9:04:b0] ath_rate_tx_comp= lete: size 250 (137 bytes) OK rate/try 11 Mb /0/1 > > Given the proximity of the clients and the FreeBSD box I would have expec= ted it to not have had any trouble maintaing a high connection rate - but p= erhaps this is a symptom of the stalls. > > Can anyone suggest where to go from here? > > Thanks, > > Andrew > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g"