From nobody@FreeBSD.org  Fri Jun  6 05:54:37 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C14321065672
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 Jun 2008 05:54:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id A5E9B8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 Jun 2008 05:54:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m565sbOo017109
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 6 Jun 2008 05:54:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m565sbGE017108;
	Fri, 6 Jun 2008 05:54:37 GMT
	(envelope-from nobody)
Message-Id: <200806060554.m565sbGE017108@www.freebsd.org>
Date: Fri, 6 Jun 2008 05:54:37 GMT
From: Yuri <yuri@tsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: promiscuous mode for wireless device ral0 looses signal after ~30 mins (airodump-ng loses all stations after ~30 minutes)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124341
>Category:       kern
>Synopsis:       [ral] promiscuous mode for wireless device ral0 looses signal after ~30 mins (airodump-ng loses all stations after ~30 minutes)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 06 06:00:10 UTC 2008
>Closed-Date:    
>Last-Modified:  Sat Jun 07 04:45:22 UTC 2008
>Originator:     Yuri
>Release:        7.0-STABLE
>Organization:
n/a
>Environment:
>Description:
When I try using net-mgmt/airodump-ng (/usr/local/sbin/airodump-ng -w
xx ral0) it works for ~30 mins and then loses all stations one by one.

Restarting this command gets it to the state with no stations right away.
But after I do 'ifconfig ral0 down ; ifconfig ral0 up' command works
again. Until it loses stations in ~30 minutes again and everything repeats.

It seems that ral0 gets into some internal state that prevents airodump-ng
from picking up packets. And down/up clears it.

But the output of 'ifconfig ral0' doesn't change after down/up:
ral0: flags=2a9c3<UP,BROADCAST,RUNNING,NOARP,PROMISC,SIMPLEX,LINK1,MULTICAST,PPROMISC> metric 0 mtu 1500
       ether 00:18:f8:2e:40:25
       inet 192.168.168.133 netmask 0xffffff00 broadcast 192.168.168.255
       media: IEEE 802.11 Wireless Ethernet autoselect <monitor> (autoselect <monitor>)
       status: associated
       ssid "" channel 5 (2432 Mhz 11g) bssid 00:18:f8:2e:40:25
       authmode OPEN privacy OFF txpower 50 scanvalid 60 bgscan
       bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5
       protmode CTS

My card is recognized as: ral0: <Ralink Technology RT2561S> mem
0xcffe8000-0xcffeffff irq 17 at device 10.0 on pci0

And I use 7.0-STABLE.

This seems like a bug in the driver. But I am asking here hoping someone
will have an answer off the top of their head.


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Yuri <yuri@rawbw.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/124341: promiscuous mode for wireless device ral0 looses
 signal after ~30 mins (airodump-ng loses all stations after ~30 minutes)
Date: Fri, 06 Jun 2008 02:00:38 -0700

 Actually timing of the signal loss varies, sometimes it's over an hour.
 But signal gets lost every time I tried.
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jun 7 04:44:24 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124341 
>Unformatted:
