From jr@opal.com  Sat May 16 20:07:36 2009
Return-Path: <jr@opal.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5E643106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 May 2009 20:07:36 +0000 (UTC)
	(envelope-from jr@opal.com)
Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140])
	by mx1.freebsd.org (Postfix) with ESMTP id 17A4E8FC18
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 May 2009 20:07:35 +0000 (UTC)
	(envelope-from jr@opal.com)
Received: from 138.78.171.66.subscriber.vzavenue.net (HELO homobox.opal.com) ([66.171.78.138])
  by smtp.vzavenue.net with ESMTP; 16 May 2009 16:07:34 -0400
Received: from ASSP (localhost [IPv6:::1])
	(authenticated bits=0)
	by homobox.opal.com (8.14.3/8.14.3) with ESMTP id n4GK7IVD005084
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 May 2009 16:07:33 -0400 (EDT)
	(envelope-from jr@opal.com)
Received: from avera.opal.com ([2001:5c0:1100:f100:211:9ff:fe0c:f4a8]
	helo=avera.opal.com) with IPv6:587 by ASSP; 16 May 2009 16:07:18 -0400
Received: from avera.opal.com (localhost [127.0.0.1])
	by avera.opal.com (8.14.3/8.14.3) with ESMTP id n4GK7Iwx002194
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 May 2009 16:07:18 -0400 (EDT)
	(envelope-from jr@opal.com)
Received: (from jr@localhost)
	by avera.opal.com (8.14.3/8.14.3/Submit) id n4GK7IBI002193;
	Sat, 16 May 2009 16:07:18 -0400 (EDT)
	(envelope-from jr)
Message-Id: <200905162007.n4GK7IBI002193@avera.opal.com>
Date: Sat, 16 May 2009 16:07:18 -0400 (EDT)
From: "J.R. Oldroyd" <fbsd@opal.com>
Reply-To: "J.R. Oldroyd" <fbsd@opal.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [ral] ral(4) driver frequently loses carrier (on RT2560)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         134591
>Category:       kern
>Synopsis:       [ral] ral(4) driver frequently loses carrier (on RT2560)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 16 20:10:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     J.R. Oldroyd
>Release:        FreeBSD 7.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD xx.opal.com 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: Thu Apr 9 19:46:17 CEST 2009 xx@xx.opal.com:/usr/obj/usr/src/sys/XX i386
>Description:
The ral(4) inferface repeatedly goes down and up even when in close proximity
to the access-point.

ifconfig ral0
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:11:09:xx:xx:xx
        inet6 fe80::211:9ff:fexx:xxxx%ral0 prefixlen 64 scopeid 0x1 
        inet6 2001:5c0:1100:f103:211:9ff:fexx:xxxx prefixlen 64 autoconf 
        inet 192.168.3.67 netmask 0xffffff00 broadcast 192.168.3.255
        media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
        status: associated
        ssid xx channel 6 (2437 Mhz 11g) bssid 00:16:b6:xx:xx:xx
        authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit
        txpower 50 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250
        roam:rssi11g 7 roam:rate11g 5 protmode CTS roaming MANUAL

boot stuff:
May 10 07:11:29 xx kernel: ral0: <Ralink Technology RT2560> mem 0xdfffe000-0xdfffffff irq 11 at device 9.0 on pci0
May 10 07:11:29 xx kernel: ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
May 10 07:11:29 xx kernel: ral0: Ethernet address: 00:11:09:xx:xx:xx
May 10 07:11:29 xx kernel: ral0: [ITHREAD]

>How-To-Repeat:
1. enable ral(4) driver.
2. wait a while.
3. look at syslog:
May 16 12:02:14 xx kernel: ral0: link state changed to DOWN
May 16 12:02:17 xx kernel: ral0: link state changed to UP
May 16 12:02:27 xx kernel: ral0: link state changed to DOWN
May 16 12:02:55 xx kernel: ral0: link state changed to UP
May 16 12:22:56 xx kernel: ral0: link state changed to DOWN
May 16 12:23:11 xx kernel: ral0: link state changed to UP
May 16 12:28:49 xx kernel: ral0: link state changed to DOWN
May 16 12:29:05 xx kernel: ral0: link state changed to UP
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
