From owner-freebsd-wireless@FreeBSD.ORG Fri May 18 09:34:02 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 2D5DA10656D1 for ; Fri, 18 May 2012 09:34:02 +0000 (UTC) (envelope-from jhugo@meraka.csir.co.za) Received: from marge.meraka.csir.co.za (marge.meraka.csir.co.za [IPv6:2001:4200:7000:3::1]) by mx1.freebsd.org (Postfix) with ESMTP id 22E3D8FC17 for ; Fri, 18 May 2012 09:34:01 +0000 (UTC) Received: from jeep.localnet (unknown [IPv6:2001:4200:7000:3:223:aeff:fea7:a3c2]) by marge.meraka.csir.co.za (Postfix) with ESMTP id 650E6D0CC0A for ; Fri, 18 May 2012 11:33:58 +0200 (SAST) From: Johann Hugo To: freebsd-wireless@freebsd.org Date: Fri, 18 May 2012 11:33:57 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-RELEASE; KDE/4.7.3; amd64; ; ) X-KMail-Markup: true MIME-Version: 1.0 Message-Id: <201205181133.57403.jhugo@meraka.csir.co.za> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [ath] Degraded throughput - adhoc mode 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, 18 May 2012 09:34:02 -0000 Hi We have an outdoor wifi mesh network with various atheros adapters configured in adhoc mode. (FreeBSD-9) We sometimes (randomly) get a wifi adapter that goes into a "slow-mo" mode, with degraded throughput, less than half. A simple ifconfig wlanX down/up fixes the problem. Before: (slow-mo) [jhugo@jeep] ~> scp /boot/kernel/kernel zeus.cids.org.za:/dev/null kernel 100% 15MB 445.7KB/s 00:34 After: [jhugo@jeep] ~> scp /boot/kernel/kernel coin@elardus:/dev/null kernel 100% 15MB 1.0MB/s 00:15 Here is a list of all the registers (athregs) that changed during the down/up. Register Before After RXDP 01200ea0 01200840 MIBC 00000001 00000000 SPC_0 00942a83 000c246a DMADBG0 88888898 88888888 DMADBG4 000000a0 00000000 DMADBG5 04000000 00000000 DMADBG6 00032000 00022000 DMADBG7 000140a0 00000000 D_SEQ 0000038a 000008c1 TIMER0 000071d8 00000064 TIMER1 00038eb0 00000310 TIMER2 01bb8c30 000002d0 TIMER3 000071b5 00000065 TSF_L32 ddc5e966 de252332 DEF_ANT 00000000 00000001 OBSERV1 00002898 00002888 LAST_TST ddc52219 de2473af ACK_FAIL 00000002 00000000 FCS_FAIL 00000000 00000001 TFCNT 0d8e4e2f 01e95fea RFCNT 157c4d09 015d5432 RCCNT 281c998e 03b5a65c CCCNT d4782107 0d5b4b5b QUIET1 0000717c 00000088 FILTOFDM 00ffffff 000001b8 FILTCCK 00ffffff 0000015e PHYCNT1 00bffe72 00bffe9f PHYCNT2 00bfff3f 00bfff4a Is there a wiki/docs on the web that explains what these registers mean ? The only thing I could find was this link. http://madwifi-project.org/wiki/DevDocs/AtherosRegisters Any other usefull info that I should capture the next time this happens ? Regards Johann