From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 14 20:54:48 2012 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 5A2A61065672 for ; Tue, 14 Aug 2012 20:54:48 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id B357F8FC0C for ; Tue, 14 Aug 2012 20:54:47 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:18c9:94f1:8e7e:6995]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id E4F6B4AC2D for ; Wed, 15 Aug 2012 00:54:39 +0400 (MSK) Date: Wed, 15 Aug 2012 00:54:29 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1311732708.20120815005429@serebryakov.spb.ru> To: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: 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: Tue, 14 Aug 2012 20:54:48 -0000 Hello, Freebsd-wireless. My router gives me stable 2MiB/s transfer from wire to air now, with r239228 (client is 802.11g, so it is very resonable speed!) This revision has other quirks, but ath works as good as never before. Thank you, Adrian! Some dmesg with enabled reset debug (dev.ath.0.debug=4294967328) is here: ath0: ath_init: if_flags 0x8803 ath0: ath_stop_locked: invalid 0 if_flags 0x8803 ath0: ath_init: imask=0xe0000071 ath0: ath_txq_update: Q1 qflags 0xf aifs 3 cwmin 15 cwmax 63 burstTime 0 ath0: ath_txq_update: Q0 qflags 0xf aifs 7 cwmin 15 cwmax 1023 burstTime 0 ath0: ath_txq_update: Q2 qflags 0xf aifs 1 cwmin 7 cwmax 15 burstTime 3008 ath0: ath_txq_update: Q3 qflags 0xf aifs 1 cwmin 3 cwmax 7 burstTime 1504 ath0: ath_chan_set: 1 (2412 MHz, flags 0x10480) ath0: ath_legacy_stoprecv: rx queue 0x20b8000, link 0xd58c42a0 ath0: ath_stoptxdma: tx queue [9] 0, link 0 ath0: ath_tx_stopdma: tx queue [0] 0, link 0 ath0: ath_tx_stopdma: tx queue [1] 0, link 0 ath0: ath_tx_stopdma: tx queue [2] 0, link 0 ath0: ath_tx_stopdma: tx queue [3] 0, link 0 ath0: ath_tx_stopdma: tx queue [8] 0, link 0 ath0: ath_stoptxdma: tx queue [9] 0, link 0 ath0: ath_tx_stopdma: tx queue [0] 0, link 0 ath0: ath_tx_stopdma: tx queue [1] 0, link 0 ath0: ath_tx_stopdma: tx queue [2] 0, link 0 ath0: ath_tx_stopdma: tx queue [3] 0, link 0 ath0: ath_tx_stopdma: tx queue [8] 0, link 0 ath0: ath_txq_update: Q1 qflags 0xf aifs 2 cwmin 7 cwmax 1023 burstTime 2048 ath0: ath_txq_update: Q0 qflags 0xf aifs 7 cwmin 15 cwmax 1023 burstTime 0 ath0: ath_txq_update: Q2 qflags 0xf aifs 1 cwmin 7 cwmax 15 burstTime 3008 ath0: ath_txq_update: Q3 qflags 0xf aifs 1 cwmin 3 cwmax 7 burstTime 1504 ath0: ath_setslottime: chan 2412 MHz flags 0x10480 short slot, 9 usec ath0: ath_stop_locked: invalid 0 if_flags 0x8802 ath0: ath_stoptxdma: tx queue [9] 0x1bfd000, link 0 ath0: ath_tx_stopdma: tx queue [0] 0, link 0 ath0: ath_tx_stopdma: tx queue [1] 0x1b89480, link 0 ath0: ath_tx_stopdma: tx queue [2] 0, link 0 ath0: ath_tx_stopdma: tx queue [3] 0, link 0 ath0: ath_tx_stopdma: tx queue [8] 0, link 0 ath0: ath_legacy_stoprecv: rx queue 0x20ba540, link 0xd58ba4e0 ath0: ath_init: if_flags 0x8803 ath0: ath_stop_locked: invalid 0 if_flags 0x8803 ath0: ath_init: imask=0xe0000071 ath0: ath_txq_update: Q1 qflags 0xf aifs 3 cwmin 15 cwmax 63 burstTime 0 ath0: ath_txq_update: Q0 qflags 0xf aifs 7 cwmin 15 cwmax 1023 burstTime 0 ath0: ath_txq_update: Q2 qflags 0xf aifs 1 cwmin 7 cwmax 15 burstTime 3008 ath0: ath_txq_update: Q3 qflags 0xf aifs 1 cwmin 3 cwmax 7 burstTime 1504 ath0: ath_chan_set: 1 (2412 MHz, flags 0x10480) ath0: ath_txq_update: Q1 qflags 0xf aifs 2 cwmin 7 cwmax 1023 burstTime 2048 ath0: ath_txq_update: Q0 qflags 0xf aifs 7 cwmin 15 cwmax 1023 burstTime 0 ath0: ath_txq_update: Q2 qflags 0xf aifs 1 cwmin 7 cwmax 15 burstTime 3008 ath0: ath_txq_update: Q3 qflags 0xf aifs 1 cwmin 3 cwmax 7 burstTime 1504 ath0: ath_setslottime: chan 2412 MHz flags 0x10480 short slot, 9 usec >> System load finished here ath0: stuck beacon; resetting (bmiss count 4) ath0: ath_reset: called ath0: ath_stoptxdma: tx queue [9] 0x1bfd000, link 0 ath0: ath_tx_stopdma: tx queue [0] 0, link 0 ath0: ath_tx_stopdma: tx queue [1] 0x1be32c0, link 0xcdbe58a0 ath0: ath_tx_stopdma: tx queue [2] 0, link 0 ath0: ath_tx_stopdma: tx queue [3] 0, link 0 ath0: ath_tx_stopdma: tx queue [8] 0x1b9c1c0, link 0 Q1[ 0] (DS.V:0xcdbe2f00 DS.P:0x1be2f00) L:01be2f60 D:17ab333e F:0001 ! Seq: 4512 swtry: 0 ADDBAW?: 0 DOBAW?: 0 413f0612 0000902c 24348000 1b0e090d 022c0180 315a02d8 08000000 0006318c 00000000 3f000000 3f000000 3f000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 (DS.V:0xcdbe2f60 DS.P:0x1be2f60) L:01be32c0 D:13826010 F:0001 ! Seq: 4512 swtry: 0 ADDBAW?: 0 DOBAW?: 0 00000000 000005dc 24348000 1b0e090d aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 00808080 00000002 3e40fe08 c1709269 fbf00000 80808080 00000000 00000000 00000000 00000c89 [end] Q1[ 0] (DS.V:0xcdbe32c0 DS.P:0x1be32c0) L:01be3320 D:1445073e F:0001 Seq: 4528 swtry: 0 ADDBAW?: 0 DOBAW?: 0 413f0612 0000902c 24348000 1b0e090d 022c0180 315a02d8 08000000 0006318c 00000000 3f000000 3f000000 3f000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 (DS.V:0xcdbe3320 DS.P:0x1be3320) L:01be3680 D:17abc010 F:0001 Seq: 4528 swtry: 0 ADDBAW?: 0 DOBAW?: 0 00000000 000005dc 24348000 1b0e090d aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [end] ath0: ath_legacy_stoprecv: rx queue 0x20bb2a0, link 0xd58bb240 -- // Black Lion AKA Lev Serebryakov