From nobody@FreeBSD.org  Tue Feb 26 23:20:32 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 B131E106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2008 23:20:32 +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 9BB0613C448
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2008 23:20:32 +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 m1QNHlSB052586
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2008 23:17:47 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1QNHkWa052585;
	Tue, 26 Feb 2008 23:17:46 GMT
	(envelope-from nobody)
Message-Id: <200802262317.m1QNHkWa052585@www.freebsd.org>
Date: Tue, 26 Feb 2008 23:17:46 GMT
From: Yuri <yuri@tsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Atheros 5212 based wireless card (DLink-1330) doesn't work on WEP-encrypted network + has some other problems
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121131
>Category:       kern
>Synopsis:       [ath] Atheros 5212 based wireless card (DLink-1330) doesn't work on WEP-encrypted network + has some other problems
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 26 23:30:02 UTC 2008
>Closed-Date:    Fri May 02 09:43:19 UTC 2008
>Last-Modified:  Fri May 02 09:43:19 UTC 2008
>Originator:     Yuri
>Release:        7.0
>Organization:
n/a
>Environment:
>Description:
When I plug in the card dmesg prints:
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 9 at device 0.0 on cardbus0
ath0: [ITHREAD]
ath0: using obsoleted if_watchdog interface
ath0: Ethernet address: 00:19:5b:09:63:b8
ath0: mac 7.8 phy 4.5 radio 5.6
ath0: link state changed to UP
ath0: link state changed to DOWN
ath0: link state changed to UP
ath0: link state changed to DOWN

PROBLEM#1: At some point later dmesg gets:
ath0: ath_chan_set: unable to reset channel 5 (2432 Mhz, flags 0x480 hal flags 0xc0)
ath0: ath_chan_set: unable to reset channel 2 (2417 Mhz, flags 0x480 hal flags 0xc0)

I set it up to work with FreeBSD AP:
ifconfig ath0 down
ifconfig ath0 ssid freebsdap wepmode on weptxkey 3 wepkey 3:0x3456789012 authmode open
ifconfig ath0 mode 11b
ifconfig ath0 inet 192.168.0.2 netmask 255.255.255.0
ifconfig ath0 up

PROBLEM#2: I can't ping AP, all packets get lost.

PROBLEM#3: I keep getting kernel messages:
interrupt storm detected on "irq9:"; throttling interrupt source
interrupt storm detected on "irq9:"; throttling interrupt source
interrupt storm detected on "irq9:"; throttling interrupt source
ath0: ath_chan_set: unable to reset channel 1 (2412 Mhz, flags 0x480 hal flags 0xc0)

FreeBSD AP is set up with the command:
ifconfig ral0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap wepmode on weptxkey 3 wepkey 3:0x3456789012 mode 11g mediaopt hostap

'ifconfig -v' on AP produces:
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:18:f8:2e:40:25
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: associated
        ssid freebsdap channel 3 (2422 Mhz 11g) bssid 00:18:f8:2e:40:25
        authmode OPEN privacy ON deftxkey 3
        wepkey 1:104-bit
        wepkey 3:40-bit powersavemode OFF powersavesleep 100 txpower 50
        txpowmax 50.0 rtsthreshold 2346 fragthreshold 2346 bmiss 7
        scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11a 7
        roam:rate11a 12 roam:rssi11b 7 roam:rate11b 1 roam:rssi11g 7
        roam:rate11g 5 -pureg protmode CTS -ht -htcompat -ampdu ampdulimit 8k
        ampdudensity - -amsdu -shortgi htprotmode RTSCTS -puren -wme -burst
        -ff -dturbo -hidessid apbridge dtimperiod 1 doth inact bintval 100

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Yuri <yuri@tsoft.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/121131: Atheros 5212 based wireless card (DLink-1330) doesn't
 work on WEP-encrypted network + has some other problems
Date: Wed, 27 Feb 2008 10:22:22 -0800

 Sorry, there is a mistake in my post: client sets the same mode 11g as AP.
 
 Also I have this card for another 2 weeks. So if somebody wants to look
 into this issue I can provide any debugging information w/in this period.
 
 Yuri
 

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org, yuri@tsoft.com
Cc:  
Subject: Re: kern/121131: [ath] Atheros 5212 based wireless card (DLink-1330)
 doesn't work on WEP-encrypted network + has some other problems
Date: Fri, 29 Feb 2008 12:17:54 +0100

 Please don't be afraid to show us:
 
 /var/run/dmesg.boot
 /boot/loader.conf
 `sysctl hw.ath'
 `sysctl dev.ath'
 `ifconfig -v ath0'
 `ifconfig ath0 list chan'
 `ifconfig ath0 scan; ifconfig ath0 list scan'
 
 > PROBLEM#2: I can't ping AP, all packets get lost.
 
 You're not connected.
 
 > PROBLEM#3: I keep getting kernel messages:
 
 `vmstat -i'
 
 and wouldn't it be a good idea to see your `uname -a'? It might give us
 a good feeling to see, which version you're really using.
 
 Finally, as I already suggested in PR kern/120636 it might be worth a
 try to use not wepkey 3 only.
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Fri Feb 29 12:15:36 UTC 2008 
State-Changed-Why:  
Submitter was asked for feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121131 
State-Changed-From-To: feedback->closed 
State-Changed-By: vwe 
State-Changed-When: Fri May 2 09:43:08 UTC 2008 
State-Changed-Why:  

We're sorry to not see any feedback received for quite some time. 
If you think this is still an issue which should be worked on, 
please provide the requested information and we'll be happy to 
reopen this ticket. 
Thank you for bringing this problem to attention! 

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