From owner-freebsd-current@FreeBSD.ORG Sun May 22 18:19:07 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D746C16A41C for ; Sun, 22 May 2005 18:19:07 +0000 (GMT) (envelope-from dandee@hellteam.net) Received: from pipa.profix.cz (pipa.profix.cz [213.151.89.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 393FE43D53 for ; Sun, 22 May 2005 18:19:04 +0000 (GMT) (envelope-from dandee@hellteam.net) Received: from localhost (localhost [127.0.0.1]) by pipa.profix.cz (Postfix) with ESMTP id E077C4E733; Sun, 22 May 2005 20:19:04 +0200 (CEST) Received: from pipa.profix.cz ([127.0.0.1]) by localhost (pipa [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14804-03; Sun, 22 May 2005 20:19:04 +0200 (CEST) Received: from gandalf (105.121.95.80.ip.b26.cz [80.95.121.105]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pipa.profix.cz (Postfix) with ESMTP id 7202B4E70E; Sun, 22 May 2005 20:19:04 +0200 (CEST) From: =?us-ascii?Q?Daniel_Dvorak?= To: "'Emil Mikulic'" Date: Sun, 22 May 2005 20:18:36 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <20050522110627.GA48162@dmr.ath.cx> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Thread-Index: AcVexW2Vct5/9OjvRJe1fadCjBsSDgAMF/MA Message-Id: <20050522181904.7202B4E70E@pipa.profix.cz> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com Cc: freebsd-current@FreeBSD.org Subject: RE: ath0 goes down periodically X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dandee@volny.cz List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2005 18:19:08 -0000 On Thursday I reported my problem with atheros and no response. Now we see it is common problem. I used ath_rate_onoe, ath_rate_amrr and now last I am testing ath_rate_sample, and yet no "kernel: ath0: device timeout" message turns up in /var/log/messages since last reboot after recompilation kornel with sample rate. But U use sample rate and have the same messages. So choise of ath_rate does not have a influence on timeout. Last panic was connection to mbuf. My box went to panic state due to Atheros for many times, my friend advised me to use this: lsd# sysctl kern.ipc.maxsockbuf kern.ipc.maxsockbuf: 2097152 For the present no panic, We will see. :( U use hostap mode, I use client mode. U use 802.11b, I use 802.11a. My athstats: lsd# athstats 3 tx management frames 17 tx frames discarded prior to association 78 tx stopped 'cuz no xmit buffer 36876 tx failed 'cuz too many retries 4224534 long on-chip tx retries 1 tx frames with no ack marked 777988 tx frames with an alternate rate 7419 rx failed 'cuz of bad CRC 1052759 rx failed 'cuz frame too short 10361501 rx failed 'cuz of PHY err 10360958 OFDM timing 541 OFDM illegal service 2 OFDM restart 4677 periodic calibrations 1 rfgain value change rssi of last ack: 26 avg recv rssi: 26 15 switched default/rx antenna Antenna profile: [1] tx 32354058 rx 45291855 [2] tx 72289 rx 3319 My RSSI is about 26, so -95, signal from AP is about -69 dBm, strong enough. Media selection is autoselect. Generally OFDM/18Mbps. Daniel -----Original Message----- From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd-current@freebsd.org] On Behalf Of Emil Mikulic Sent: Sunday, May 22, 2005 1:06 PM To: freebsd-current@FreeBSD.org Subject: ath0 goes down periodically At home I have a FreeBSD 6-CURRENT machine with an ath card acting as an access point. Every once in a while, wireless traffic stops and I have to log in to this machine and manually bounce the interface to get it going again. I noticed that when this sort of outage occurs I can't ping from the hostap machine on the wifi interface. It looks like the interface queue is full. (?) It just happened now so here are the diagnostics I can think of: # ifconfig -v ath0 ath0: flags=8c43 mtu 1500 inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255 inet6 fe80::209:5bff:fec8:6919%ath0 prefixlen 64 scopeid 0x3 ether 00:09:5b:c8:69:19 media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11b status: associated ssid ***** channel 6 (2437) bssid 00:09:5b:c8:69:19 authmode SHARED privacy ON deftxkey 1 wepkey 1:40-bit <**********> tx+rx+def powersavemode OFF powersavesleep 100 txpowmax 0 txpower 60 rtsthreshold 2312 protmode CTS wme ssid SHOW apbridge dtimperiod 1 bintval 100 AC_BE cwmin 5 cwmax 7 aifs 3 txopLimit 0 -acm ack cwmin 5 cwmax 10 aifs 3 txopLimit 0 -acm AC_BK cwmin 5 cwmax 10 aifs 7 txopLimit 0 -acm ack cwmin 5 cwmax 10 aifs 7 txopLimit 0 -acm AC_VI cwmin 4 cwmax 5 aifs 1 txopLimit 188 -acm ack cwmin 4 cwmax 5 aifs 2 txopLimit 188 -acm AC_VO cwmin 3 cwmax 4 aifs 1 txopLimit 102 -acm ack cwmin 3 cwmax 4 aifs 2 txopLimit 102 -acm # ping 192.168.2.1 PING 192.168.2.1 (192.168.2.1): 56 data bytes 64 bytes from 192.168.2.1: icmp_seq=0 ttl=64 time=0.191 ms 64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.149 ms # ping 192.168.2.2 PING 192.168.2.2 (192.168.2.2): 56 data bytes ping: sendto: No buffer space available ping: sendto: No buffer space available /var/log/messages has a couple of recent lines saying "kernel: ath0: device timeout" The fix: # ifconfig ath0 down # ifconfig ath0 up # ping 192.168.2.2 PING 192.168.2.2 (192.168.2.2): 56 data bytes 64 bytes from 192.168.2.2: icmp_seq=0 ttl=128 time=3.392 ms 64 bytes from 192.168.2.2: icmp_seq=1 ttl=128 time=0.886 ms The card is a Netgear WG311T: ath0: mem 0xe8120000-0xe812ffff irq 11 at device 12.0 on pci0 ath0: Ethernet address: 00:09:5b:c8:69:19 ath0: mac 5.6 phy 4.1 radio 1.7 The kernel is a little old: FreeBSD 6.0-CURRENT #4: Tue Apr 5 18:07:56 EST 2005 But all the relevant source files seem up to date: # ident /boot/kernel/kernel | grep ath $FreeBSD: src/sys/dev/ath/ath_rate/sample/sample.c,v 1.8 2005/04/02 18:56:50 sam Exp $ $FreeBSD: src/sys/dev/ath/if_ath.c,v 1.87 2005/04/04 02:34:14 sam Exp $ $FreeBSD: src/sys/dev/ath/if_ath_pci.c,v 1.12 2005/03/05 19:06:12 imp Exp $ (Latest if_ath.c is 1.88, the changelog says "honor new IEEE80211_KEY_GROUP key flag") This happens periodically. I can't reproduce it at will, but it will happen again eventually. Is there anything further I can do to help diagnose (and hopefully fix) this problem? --Emil _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"