From owner-freebsd-current@FreeBSD.ORG Sun May 22 11:06:30 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 E6AE416A41C for ; Sun, 22 May 2005 11:06:29 +0000 (GMT) (envelope-from emil@cs.rmit.edu.au) Received: from ppp162-47.static.internode.on.net (ppp162-47.static.internode.on.net [150.101.162.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C82543D4C for ; Sun, 22 May 2005 11:06:29 +0000 (GMT) (envelope-from emil@cs.rmit.edu.au) Received: by ppp162-47.static.internode.on.net (Poofix, from userid 1001) id DF45B6218; Sun, 22 May 2005 21:06:27 +1000 (EST) Date: Sun, 22 May 2005 21:06:27 +1000 From: Emil Mikulic To: freebsd-current@FreeBSD.org Message-ID: <20050522110627.GA48162@dmr.ath.cx> Mail-Followup-To: Emil Mikulic , freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-ID: 1024D/344A699F X-PGP-Fingerprint: EE97 2C84 6D07 E76C F075 C0BA ED2A 9319 344A 699F X-Written-On: dmr.ath.cx (FreeBSD 6.0-CURRENT i386) User-Agent: Mutt/1.5.9i X-Mailman-Approved-At: Sun, 22 May 2005 11:56:36 +0000 Cc: Subject: ath0 goes down periodically X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 11:06:30 -0000 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