From owner-freebsd-wireless@FreeBSD.ORG Sun Aug 19 07:26:51 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE780106566B for ; Sun, 19 Aug 2012 07:26:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8E8AF8FC0A for ; Sun, 19 Aug 2012 07:26:51 +0000 (UTC) Received: by dadr6 with SMTP id r6so1634364dad.13 for ; Sun, 19 Aug 2012 00:26:51 -0700 (PDT) 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=N10Udeaew/wkYE5NOianu/iNT2frKpgoyuXV61zkhTo=; b=KvUtCWlfyXvRqFOKHfUrBTFclwIy2/ANLQFlR2WuvWs82vl3lk89lxIKJJX/m7NCD/ 0NgBdSUjZZ6ttbdfOSnVpfuQ8K/0EIQODpApJkvL7lesYUDCuLRtS95IrjwEp3JHgtpv BHzvHjsAD6ccT78iRH8etxLTq3c3WD1nbzjs4RSXXqAEq8leRGojVgorL0Q6lT/yiTXi hxck/vdhqHEm2OhgzvUxLMse+GyJIq2ersuQH8XqQ0MvCgONS7XIMOTl1ArF40atLf/3 KXWLSV/Y9dWBXxrdGharVAFULiN0dbKEErBdvz+4I5pbjeFRIxRVtbXZPtCWtcjgE1Vm Qtsg== MIME-Version: 1.0 Received: by 10.68.238.74 with SMTP id vi10mr2620137pbc.48.1345361210841; Sun, 19 Aug 2012 00:26:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.43.169 with HTTP; Sun, 19 Aug 2012 00:26:50 -0700 (PDT) In-Reply-To: <20120819072254.GG98910@zxy.spb.ru> References: <1311732708.20120815005429@serebryakov.spb.ru> <20120819071403.GF98910@zxy.spb.ru> <20120819072254.GG98910@zxy.spb.ru> Date: Sun, 19 Aug 2012 00:26:50 -0700 X-Google-Sender-Auth: IJf9jbAMfCk6OgK5PuQg0SOOPOg Message-ID: From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: New ath code works well as AP 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: Sun, 19 Aug 2012 07:26:51 -0000 run athsurvey, see how busy the channel is? Adrian On 19 August 2012 00:22, Slawa Olhovchenkov wrote: > On Sun, Aug 19, 2012 at 12:12:20AM -0700, Adrian Chadd wrote: > >> I don't see this kind of behaviour in STA mode. What are you associating= to? >> >> What channel is it on? > > # ifconfig -v wlan0 list sta > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 00:11:95:ca:ae:7c 1 6 11M 19.5 0 3125 54960 EPS AE SSID R= ATES DSPARMS<6> TIM<050400010000> RSN WPA ERP<0x0> XRATES<48,72,96,108> > > >> Adrian >> >> >> On 19 August 2012 00:14, Slawa Olhovchenkov wrote: >> > ... and still works bad as client: >> > >> > [138084] ath0: mem 0xb0200000-0xb020ffff irq 18 at devi= ce 5.0 on pci6 >> > [138085] ath0: DMA setup: legacy >> > [138085] ath0: [HT] enabling HT modes >> > [138085] ath0: [HT] 2 RX streams; 2 TX streams >> > [138085] ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps >> > [138085] ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbp= s 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps >> > [138085] ath0: 2T2R >> > [138085] ath0: 11ng MCS 20MHz >> > [138085] ath0: MCS 0-7: 6.5Mbps - 65Mbps >> > [138085] ath0: MCS 8-15: 13Mbps - 130Mbps >> > [138085] ath0: 11ng MCS 40MHz: >> > [138085] ath0: MCS 0-7: 13.5Mbps - 135Mbps >> > [138085] ath0: MCS 8-15: 27Mbps - 270Mbps >> > [138085] ath0: 11ng MCS 40MHz SGI: >> > [138085] ath0: MCS 0-7: 15Mbps - 150Mbps >> > [138085] ath0: MCS 8-15: 30Mbps - 300Mbps >> > [138085] ath0: AR9220 mac 128.2 RF5133 phy 13.0 >> > [138085] ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 >> > [138085] ath0: Use hw queue 1 for WME_AC_BE traffic >> > [138085] ath0: Use hw queue 0 for WME_AC_BK traffic >> > [138085] ath0: Use hw queue 2 for WME_AC_VI traffic >> > [138085] ath0: Use hw queue 3 for WME_AC_VO traffic >> > [138085] ath0: Use hw queue 8 for CAB traffic >> > [138085] ath0: Use hw queue 9 for beacons >> > [138085] ath0: using multicast key search >> > [138086] wlan0: bpf attached >> > [138086] wlan0: bpf attached >> > [138086] wlan0: Ethernet address: f4:ec:38:a3:10:dc >> > [138088] wlan0: link state changed to UP >> > [138088] Aug 18 13:13:20 notebook kernel: [138088] wlan0: link state c= hanged to UP >> > [145438] ath0: ath_tx_tid_drain: node 0xc4b4a000: bf=3D0xc4b2cdf0: add= baw=3D0, dobaw=3D0, seqno=3D242, retry=3D0 >> > [145438] ath0: ath_tx_tid_drain: node 0xc4b4a000: bf=3D0xc4b2cdf0: tid= txq_depth=3D1 hwq_depth=3D0, bar_wait=3D0 >> > [145438] ath0: ath_tx_tid_drain: node 0xc4b4a000: tid 16: txq_depth=3D= 2, txq_aggr_depth=3D0, sched=3D0, paused=3D0, hwq_depth=3D0, incomp=3D0, ba= w_head=3D0, baw_tail=3D0 txa_start=3D-1, ni_txseqs=3D16627 >> > [145438] TODS f4:ec:38:a3:10:dc->00:1c:58:56:bf:a8(00:11:95:ca:ae:7c) = data WEP [IV 01 1d 00 02 00 00 KID 0] 0M >> > [145438] 0841 0000 0011 95ca ae7c f4ec 38a3 10dc 001c 5856 bfa8 200f = 011d 0020 0200 0000 aaaa 0300 0000 0800 4500 0054 7e70 4000 4006 2770 0a00 = 001b c346 c762 f69d 0016 1a05 4198 1648 1015 8018 040f 01f8 0000 0101 080a = 08ab 35d4 50c5 6e53 f988 6d22 6676 20bf 51b9 b74c 3fb2 933e 5d5a f972 eec7 = 7545 >> > 3be7 475c ad3b b052 >> > [145438] wlan0: link state changed to DOWN >> > [145440] wlan0: link state changed to UP >> > [145450] wlan0: link state changed to DOWN >> > [145452] wlan0: link state changed to UP >> > [145505] wlan0: link state changed to DOWN >> > [145507] wlan0: link state changed to UP >> > [145517] wlan0: link state changed to DOWN >> > [145519] wlan0: link state changed to UP >> > [147013] wlan0: link state changed to DOWN >> > [147015] wlan0: link state changed to UP >> > [147025] wlan0: link state changed to DOWN >> > [147028] wlan0: link state changed to UP >> > [154244] wlan0: link state changed to DOWN >> > [154246] wlan0: link state changed to UP >> > [155821] ath0: bb hang detected (0x4), resetting >> > [175886] wlan0: link state changed to DOWN >> > [175889] wlan0: link state changed to UP >> > [177174] ath0: ath_tx_tid_drain: node 0xc50dd000: bf=3D0xc4b41ff0: add= baw=3D0, dobaw=3D0, seqno=3D0, retry=3D0 >> > [177174] ath0: ath_tx_tid_drain: node 0xc50dd000: bf=3D0xc4b41ff0: tid= txq_depth=3D1 hwq_depth=3D0, bar_wait=3D0 >> > [177174] ath0: ath_tx_tid_drain: node 0xc50dd000: tid 16: txq_depth=3D= 2, txq_aggr_depth=3D0, sched=3D0, paused=3D0, hwq_depth=3D0, incomp=3D0, ba= w_head=3D0, baw_tail=3D0 txa_start=3D-1, ni_txseqs=3D40661 >> > [177174] NODS f4:ec:38:a3:10:dc->00:11:95:ca:ae:7c(00:11:95:ca:ae:7c) = probe_req 0M >> > [177174] 4000 0000 0011 95ca ae7c f4ec 38a3 10dc 0011 95ca ae7c 40ed = 0003 736c 7701 0882 848b 960c 1218 2430 2601 0000 0fac 0201 0000 0fac 0401 = 0000 0fac 0100 0001 002a d59e 9e8d ea21 0eea 3d42 9bdc 4f4e 4432 0430 4860 = 6c >> > [177174] wlan0: link state changed to DOWN >> > [177176] wlan0: link state changed to UP >> > [177186] wlan0: link state changed to DOWN >> > [177188] wlan0: link state changed to UP >> > [177375] wlan0: link state changed to DOWN >> > [177378] wlan0: link state changed to UP >> > [177388] wlan0: link state changed to DOWN >> > [177390] wlan0: link state changed to UP >> > [179397] ath0: ath_tx_tid_drain: node 0xc50dd000: bf=3D0xc4b39d20: add= baw=3D0, dobaw=3D0, seqno=3D2062, retry=3D0 >> > [179397] ath0: ath_tx_tid_drain: node 0xc50dd000: bf=3D0xc4b39d20: tid= txq_depth=3D13 hwq_depth=3D0, bar_wait=3D0 >> > [179397] ath0: ath_tx_tid_drain: node 0xc50dd000: tid 16: txq_depth=3D= 2, txq_aggr_depth=3D0, sched=3D0, paused=3D0, hwq_depth=3D0, incomp=3D0, ba= w_head=3D0, baw_tail=3D0 txa_start=3D-1, ni_txseqs=3D47131 >> > [179397] TODS f4:ec:38:a3:10:dc->00:1c:58:56:bf:a8(00:11:95:ca:ae:7c) = data WEP [IV 0b b8 00 05 00 00 KID 0] 0M >> > [179397] 0841 0000 0011 95ca ae7c f4ec 38a3 10dc 001c 5856 bfa8 e080 = 0bb8 0020 0500 0000 aaaa 0300 0000 0800 4500 0034 1535 4000 4006 90cb 0a00 = 001b c346 c762 f65f 0014 b6aa cfc8 46ad 84ba 8010 03fc e360 0000 0101 080a = 428d 489d f0d1 3651 >> > [179399] wlan0: link state changed to UP >> > [179409] wlan0: link state changed to DOWN >> > [179411] wlan0: link state changed to UP >> > [179636] ath0: ath_tx_tid_drain: node 0xc4b5b000: bf=3D0xc4b355f0: add= baw=3D0, dobaw=3D0, seqno=3D948, retry=3D0 >> > [179636] ath0: ath_tx_tid_drain: node 0xc4b5b000: bf=3D0xc4b355f0: tid= txq_depth=3D4 hwq_depth=3D0, bar_wait=3D0 >> > [179636] ath0: ath_tx_tid_drain: node 0xc4b5b000: tid 16: txq_depth=3D= 2, txq_aggr_depth=3D0, sched=3D0, paused=3D0, hwq_depth=3D0, incomp=3D0, ba= w_head=3D0, baw_tail=3D0 txa_start=3D-1, ni_txseqs=3D41912 >> > [179636] TODS f4:ec:38:a3:10:dc->00:1c:58:56:bf:a8(00:11:95:ca:ae:7c) = data WEP [IV b1 a3 00 00 00 00 KID 0] 0M >> > [179636] 0841 0000 0011 95ca ae7c f4ec 38a3 10dc 001c 5856 bfa8 403b = b1a3 0020 0000 0000 aaaa 0300 0000 0800 4500 0034 bb4b 4000 4006 eab4 0a00 = 001b c346 c762 b0cc 0014 5ba9 9748 1033 a13f 8010 03fc 39f3 0000 0101 080a = f0d2 a239 f0d4 cae3 >> > [179636] wlan0: link state changed to DOWN >> > [179638] wlan0: link state changed to UP >> > [179648] wlan0: link state changed to DOWN >> > [179650] wlan0: link state changed to UP >> > [180075] wlan0: link state changed to DOWN >> > [180077] wlan0: link state changed to UP >> > [180087] wlan0: link state changed to DOWN >> > [180089] wlan0: link state changed to UP >> > [180486] wlan0: link state changed to DOWN >> > [180488] wlan0: link state changed to UP >> > [180498] wlan0: link state changed to DOWN >> > [180500] wlan0: link state changed to UP >> > [181165] ath0: ath_tx_tid_drain: node 0xc50dd000: bf=3D0xc4b41bb0: add= baw=3D0, dobaw=3D0, seqno=3D0, retry=3D0 >> > [181165] ath0: ath_tx_tid_drain: node 0xc50dd000: bf=3D0xc4b41bb0: tid= txq_depth=3D1 hwq_depth=3D0, bar_wait=3D0 >> > [181165] ath0: ath_tx_tid_drain: node 0xc50dd000: tid 16: txq_depth=3D= 2, txq_aggr_depth=3D0, sched=3D0, paused=3D0, hwq_depth=3D0, incomp=3D0, ba= w_head=3D0, baw_tail=3D0 txa_start=3D-1, ni_txseqs=3D58839 >> > [181165] NODS f4:ec:38:a3:10:dc->00:11:95:ca:ae:7c(00:11:95:ca:ae:7c) = probe_req 0M >> > [181165] 4000 0000 0011 95ca ae7c f4ec 38a3 10dc 0011 95ca ae7c 605d = 0003 736c 7701 0882 848b 960c 1218 2430 2601 0000 0fac 0201 0000 0fac 0401 = 0000 0fac 0100 0001 002a d59e 9e8d ea21 0eea 3d42 9bdc 4f4e 4432 0430 4860 = 6c >> > [181165] wlan0: link state changed to DOWN >> > [181166] Aug 19 01:11:18 notebook kernel: [181165] wlan0: link state c= hanged to DOWN >> > [181168] wlan0: link state changed to UP >> > [181168] Aug 19 01:11:20 notebook kernel: [181168] wlan0: link state c= hanged to UP >> > [181178] wlan0: link state changed to DOWN >> > [181178] Aug 19 01:11:30 notebook kernel: [181178] wlan0: link state c= hanged to DOWN >> > [181180] wlan0: link state changed to UP >> > [181612] wlan0: link state changed to DOWN >> > [181614] wlan0: link state changed to UP >> > [181624] wlan0: link state changed to DOWN >> > [181626] wlan0: link state changed to UP >> > [190739] wlan0: link state changed to DOWN >> > [190741] wlan0: link state changed to UP >> > [190751] wlan0: link state changed to DOWN >> > [190754] wlan0: link state changed to UP >> > [194052] ath0: device timeout >> > [202568] ath0: device timeout >> > [205182] wlan0: link state changed to DOWN >> > [205184] wlan0: link state changed to UP >> > [214975] ath0: bb hang detected (0x4), resetting >> > [216007] wlan0: link state changed to DOWN >> > [216009] wlan0: link state changed to UP