All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
@ 2009-05-17 20:18 Rob van Rijen
  2009-05-18 16:00 ` Luis R. Rodriguez
  2009-05-18 20:35 ` Gabor Juhos
  0 siblings, 2 replies; 11+ messages in thread
From: Rob van Rijen @ 2009-05-17 20:18 UTC (permalink / raw)
  To: ath9k-devel


Hi guys,

I have a EEE PC 1000H with a new MiniPCI-E wireless card: SparkLAN WPEA-110N, (AR9280).
For weeks now I am trying to get it to work with my Linksys WAG160 wireless gateway using WPA2
Wireless N with WEP works, but is no option for security reasons.

Here some of my settings:
OpenSuse 11.1, KDE 4.2 with KNetworkmanager, with kernel:
  Linux linux-e38b 2.6.29-rc8-48-pae #1 SMP 2009-03-20 14:41:33 +0100 i686 i686 i386 GNU/Linux
with ath9k that came with this kernel, and I tried it with several of the latest drivers 
downloaded from wireless.kernel.org, over the last couple of weeks up to 17 april.

I get the following output from dmesg:
==============================================================================
wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
wlan0 direct probe responded
wlan0: authenticate with AP 00:21:29:79:c0:84
wlan0: authenticated
wlan0: associate with AP 00:21:29:79:c0:84
wlan0: RX ReassocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
wlan0: associated
wlan0: disassociating by local choice (reason=3)
wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
wlan0 direct probe responded
wlan0: authenticate with AP 00:21:29:79:c0:84
wlan0: authenticated
wlan0: associate with AP 00:21:29:79:c0:84
wlan0: RX AssocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
wlan0: associated
wlan0: disassociating by local choice (reason=3)
==============================================================================

This is what I got until I downloaded the driver from 16 may.
With this driver I can actually connect using WPA2, but than the laptop freezes after a few
seconds and I can only use the powerbutton to turn off.

I even tried the latest kernel:
  Linux linux-e38b 2.6.30-rc5-git1-19-vanilla #1 SMP 2009-05-14 15:08:17 +0200 i686 i686 i386 GNU/Linux
with the driver from 16 may, but still the computer freezes completely.

Ouput from: lsmod | grep ath9k
ath9k                 236904  0
mac80211              204596  1 ath9k
rfkill                 10832  5 ath9k,eeepc_laptop
led_class               4452  1 ath9k
ath                     7332  1 ath9k
cfg80211               75300  3 ath9k,mac80211,ath

Do you have any idea? Thanks in advance.

Rob


_________________________________________________________________
Gratis emoticons voor in je Messenger!
http://www.msnmessengerexperience.nl/chuck/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090517/25ce39a9/attachment.htm 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
  2009-05-17 20:18 [ath9k-devel] EEE PC with AR9280 using N mode with WPA2 Rob van Rijen
@ 2009-05-18 16:00 ` Luis R. Rodriguez
       [not found]   ` <BLU0-SMTP51AE280656D73570BC12FEB3570@phx.gbl>
  2009-05-18 20:35 ` Gabor Juhos
  1 sibling, 1 reply; 11+ messages in thread
From: Luis R. Rodriguez @ 2009-05-18 16:00 UTC (permalink / raw)
  To: ath9k-devel

On Sun, May 17, 2009 at 01:18:15PM -0700, Rob van Rijen wrote:
> Hi guys,
> 
> I have a EEE PC 1000H with a new MiniPCI-E wireless card: SparkLAN WPEA-110N, (AR9280).
> For weeks now I am trying to get it to work with my Linksys WAG160 wireless gateway using WPA2
> Wireless N with WEP works, but is no option for security reasons.

FYI 2.6.27..2.6.28 do not have aggregation enabled in mac80211 so you cannot use
802.11n properly. WPA should have worked on ath9k since 2.6.27 though, so if
it used to work on 2.6.27 and it stopped working on 2.6.29 its a regression
and needs to be fixed.

2.6.29 does have aggregation enabled in the kernel, however that version of
mac80211 and ath9k is still a bit old and I recommend at least 2.6.30-rc
material. More on this below.

> Here some of my settings:
> OpenSuse 11.1, KDE 4.2 with KNetworkmanager, with kernel:
>   Linux linux-e38b 2.6.29-rc8-48-pae #1 SMP 2009-03-20 14:41:33 +0100 i686 i686 i386 GNU/Linux
> with ath9k that came with this kernel, and I tried it with several of the latest drivers
> downloaded from wireless.kernel.org, over the last couple of weeks up to 17 april.
> 
> I get the following output from dmesg:
> ==============================================================================
> wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
> wlan0 direct probe responded
> wlan0: authenticate with AP 00:21:29:79:c0:84
> wlan0: authenticated
> wlan0: associate with AP 00:21:29:79:c0:84
> wlan0: RX ReassocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
> wlan0: associated
> wlan0: disassociating by local choice (reason=3)

I believe this is disassociating because we choose to leave ourselves.
At least in mac80211 I see we do this when we close our interface
(ip link set dev wlan0 down || ifconfig wlan0 down) but also when
we call (using latest wireless-testing):

ieee80211_ioctl_siwgenie()
ieee80211_ioctl_siwessid()
ieee80211_ioctl_siwap()

Hm, not sure why the supplicant would call this if already associated.
I am not sure if the above is the reason anyway but can you try upgrading
your supplicant?

> wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
> wlan0 direct probe responded
> wlan0: authenticate with AP 00:21:29:79:c0:84
> wlan0: authenticated
> wlan0: associate with AP 00:21:29:79:c0:84
> wlan0: RX AssocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
> wlan0: associated
> wlan0: disassociating by local choice (reason=3)
> ==============================================================================
> 
> This is what I got until I downloaded the driver from 16 may.
> With this driver I can actually connect using WPA2, but than the laptop freezes after a few
> seconds and I can only use the powerbutton to turn off.

Ok lets address this.

> I even tried the latest kernel:
>   Linux linux-e38b 2.6.30-rc5-git1-19-vanilla #1 SMP 2009-05-14 15:08:17 +0200 i686 i686 i386 GNU/Linux
> with the driver from 16 may, but still the computer freezes completely.
> 
> Ouput from: lsmod | grep ath9k
> ath9k                 236904  0
> mac80211              204596  1 ath9k
> rfkill                 10832  5 ath9k,eeepc_laptop
> led_class               4452  1 ath9k
> ath                     7332  1 ath9k
> cfg80211               75300  3 ath9k,mac80211,ath
> 
> Do you have any idea? Thanks in advance.

Can you please try 2.6.30-rc6. rc5 to rc6 shouldn't give you any changes
though, there was just a fix for minstrel in rc6 but ath9k doesn't use it.

If your computer is freezing please enable the NMI watchdog and see if
you can catch a trace. To enable that boot with this option added:

nmi_watchdog=1

Ensure its working by cat'ing /proc/interrupts and seeing if NMI interrupts
move.

You can add that to your /boot/grub/menu.lst file, on the kernel line.
For more information please read Documentation/nmi_watchdog.txt.

I recommend to also enable netconsole and set up a console server on a
another host. For netconsole use a separate subnet on ethernet. Here are
some quick steps to help you, mind you I have CONFIG_NETCONSOLE=m in my
kernel.

On the box that hangs write a script, call it say, netconsole:

mcgrof at crashing ~ $ cat bin/netconsole 
#!/bin/bash
IP=192.168.3.1
sudo dmesg -n 8
sudo modprobe netconsole netconsole=@/eth0,6666@${IP}/

Then on the console server box:

mcgrof at console-server ~ $ cat bin/netlog 
#!/bin/bash
echo "You should now run in another window: tail -f $HOME/log"
while true; do
        /bin/nc -u -l -p 6666 | tee -a $HOME/log
done

  Luis

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
  2009-05-17 20:18 [ath9k-devel] EEE PC with AR9280 using N mode with WPA2 Rob van Rijen
  2009-05-18 16:00 ` Luis R. Rodriguez
@ 2009-05-18 20:35 ` Gabor Juhos
  2009-05-18 21:16   ` Luis R. Rodriguez
  2009-05-19  7:20   ` Jouni Malinen
  1 sibling, 2 replies; 11+ messages in thread
From: Gabor Juhos @ 2009-05-18 20:35 UTC (permalink / raw)
  To: ath9k-devel

Rob van Rijen ?rta:
> Hi guys,
> 
> I have a EEE PC 1000H with a new MiniPCI-E wireless card: SparkLAN WPEA-110N, (AR9280).
> For weeks now I am trying to get it to work with my Linksys WAG160 wireless gateway using WPA2
> Wireless N with WEP works, but is no option for security reasons.
> 
> Here some of my settings:
> OpenSuse 11.1, KDE 4.2 with KNetworkmanager, with kernel:
>   Linux linux-e38b 2.6.29-rc8-48-pae #1 SMP 2009-03-20 14:41:33 +0100 i686 i686 i386 GNU/Linux
> with ath9k that came with this kernel, and I tried it with several of the latest drivers 
> downloaded from wireless.kernel.org, over the last couple of weeks up to 17 april.
> 
> I get the following output from dmesg:
> ==============================================================================
> wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
> wlan0 direct probe responded
> wlan0: authenticate with AP 00:21:29:79:c0:84
> wlan0: authenticated
> wlan0: associate with AP 00:21:29:79:c0:84
> wlan0: RX ReassocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
> wlan0: associated
> wlan0: disassociating by local choice (reason=3)
> wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
> wlan0 direct probe responded
> wlan0: authenticate with AP 00:21:29:79:c0:84
> wlan0: authenticated
> wlan0: associate with AP 00:21:29:79:c0:84
> wlan0: RX AssocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
> wlan0: associated
> wlan0: disassociating by local choice (reason=3)
> ==============================================================================
> 
> This is what I got until I downloaded the driver from 16 may.
> With this driver I can actually connect using WPA2, but than the laptop freezes after a few
> seconds and I can only use the powerbutton to turn off.

I have discovered some weird crashes on various embedded (MIPS, ARM) boards with
2.6.30-rc5+compat-wireless-2009-05-15. I'm not sure that is the same error 
but seems similar at least. The strange thing, that i saw a '0xdeadbeef' value in
the interrupt status register.

With the following patch...

--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -113,6 +113,13 @@
 		spin_unlock_irqrestore(&ah->ah_sc->sc_serial_rw, flags);
 	} else
 		val = ioread32(ah->ah_sc->mem + reg_offset);
+
+	if (val == 0xdeadbeef) {
+		DPRINTF(ah->ah_sc, ATH_DBG_ANY,
+			"*** Dead beef in register %08x!\n", reg_offset);
+		WARN_ON(1);
+	}
+
 	return val;
 }

the output is similar on all boards (with an AR5416 card):

ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: ah->misc_mode 0x4
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: ah->misc_mode 0x4
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: ah->misc_mode 0x4
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: ah->misc_mode 0x4
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: ah->misc_mode 0x4
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> NETWORK SLEEP
ath9k: NETWORK SLEEP -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: ah->misc_mode 0x4
wlan0: authenticate with AP 00:01:23:45:67:89
wlan0: authenticated
wlan0: associate with AP 00:01:23:45:67:89
wlan0: RX AssocResp from 00:01:23:45:67:89 (capab=0x431 status=0 aid=2)
wlan0: associated
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> NETWORK SLEEP
ath9k: NETWORK SLEEP -> AWAKE
ath9k: AWAKE -> NETWORK SLEEP
ath9k: *** Dead beef in register 000080ec!
------------[ cut here ]------------
WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-14/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG<7>ath9k: NETWORK SLEEP -> AWAKE
ath9k: AWAKE -> AWAKE
 xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
Backtrace: 
[<c0517308>] (dump_backtrace+0x0/0x114) from [<c0517768>] (dump_stack+0x18/0x1c)
 r6:00000078 r5:bf1edf68 r4:c0751d05
[<c0517750>] (dump_stack+0x0/0x1c) from [<c0524af0>] (warn_slowpath_fmt+0x74/0x90)
[<c0524a7c>] (warn_slowpath_fmt+0x0/0x90) from [<c0524b24>] (warn_slowpath_null+0x18/0x20)
 r3:c06d1398 r2:c0727b80
 r7:00000000 r6:000080ec r5:c1100000 r4:deadbeef
[<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
[<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1cc5fc>] (ath9k_hw_ani_monitor+0x5c/0x454 [ath9k])
 r7:00000000 r6:c11015d4 r5:c1100000 r4:000015d0
[<bf1cc5a0>] (ath9k_hw_ani_monitor+0x0/0x454 [ath9k]) from [<bf1d15ec>] (ath_ani_calibrate+0x168/0x250 [ath9k])
 r8:00000000 r7:00000000 r6:c1100000 r5:c1cba954 r4:fffc0ba8
[<bf1d1484>] (ath_ani_calibrate+0x0/0x250 [ath9k]) from [<c052e820>] (run_timer_softirq+0x178/0x1f0)
[<c052e6a8>] (run_timer_softirq+0x0/0x1f0) from [<c0529a7c>] (__do_softirq+0x78/0x10c)
[<c0529a04>] (__do_softirq+0x0/0x10c) from [<c0529d58>] (irq_exit+0x48/0x50)
[<c0529d10>] (irq_exit+0x0/0x50) from [<c0513064>] (_text+0x64/0x74)
[<c0513000>] (_text+0x0/0x74) from [<c05139d0>] (__irq_svc+0x30/0xa0)
Exception stack(0xc0751f50 to 0xc0751f98)
1f40:                                     c105bb00 60000013 00000000 00000000 
1f60: c0514e14 c0750000 c0768168 c0753b48 0001e020 690541f1 0001deb4 c0751fb4 
1f80: c0751f98 c0751f98 c0514cd0 c0514cd4 60000013 ffffffff                   
 r6:00000020 r5:0000001f r4:ffffffff
[<c0514c94>] (cpu_idle+0x0/0x58) from [<c06ca2a0>] (rest_init+0x58/0x6c)
 r6:c0511ec0 r5:c076812c r4:c076f6e8
[<c06ca248>] (rest_init+0x0/0x6c) from [<c00089f4>] (start_kernel+0x1fc/0x2c8)
[<c00087f8>] (start_kernel+0x0/0x2c8) from [<00008034>] (0x8034)
 r6:c05122c4 r5:c0768198 r4:000039fd
---[ end trace 9be94c3a5f325275 ]---
ath9k: AWAKE -> AWAKE
ath9k: AWAKE -> NETWORK SLEEP
ath9k: *** Dead beef in register 000000ac!
------------[ cut here ]------------
WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-14/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
Backtrace: 
[<c0517308>] (dump_backtrace+0x0/0x114) from [<c0517768>] (dump_stack+0x18/0x1c)
 r6:00000078 r5:bf1edf68 r4:c0751d35
[<c0517750>] (dump_stack+0x0/0x1c) from [<c0524af0>] (warn_slowpath_fmt+0x74/0x90)
[<c0524a7c>] (warn_slowpath_fmt+0x0/0x90) from [<c0524b24>] (warn_slowpath_null+0x18/0x20)
 r3:c06d1398 r2:c0727b80
 r7:40c00000 r6:000000ac r5:c1100000 r4:deadbeef
[<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
[<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1b8f20>] (ath9k_hw_set_interrupts+0x158/0x340 [ath9k])
 r7:40c00000 r6:c1100000 r5:918414b4 r4:f4041171
[<bf1b8dc8>] (ath9k_hw_set_interrupts+0x0/0x340 [ath9k]) from [<bf1d1750>] (ath9k_tasklet+0x44/0x108 [ath9k])
[<bf1d170c>] (ath9k_tasklet+0x0/0x108 [ath9k]) from [<c0529ca0>] (tasklet_action+0x78/0xe8)
 r6:c076cde0 r5:c075b5c4 r4:00000000
[<c0529c28>] (tasklet_action+0x0/0xe8) from [<c0529a7c>] (__do_softirq+0x78/0x10c)
 r6:00000014 r5:c076ce20 r4:00000001
[<c0529a04>] (__do_softirq+0x0/0x10c) from [<c0529d58>] (irq_exit+0x48/0x50)
[<c0529d10>] (irq_exit+0x0/0x50) from [<c0513064>] (_text+0x64/0x74)
[<c0513000>] (_text+0x0/0x74) from [<c05139d0>] (__irq_svc+0x30/0xa0)
Exception stack(0xc0751f50 to 0xc0751f98)
1f40:                                     c105bb00 60000013 00000000 00000000 
1f60: c0514e14 c0750000 c0768168 c0753b48 0001e020 690541f1 0001deb4 c0751fb4 
1f80: c0751f98 c0751f98 c0514cd0 c0514cd4 60000013 ffffffff                   
 r6:00000020 r5:0000001f r4:ffffffff
[<c0514c94>] (cpu_idle+0x0/0x58) from [<c06ca2a0>] (rest_init+0x58/0x6c)
 r6:c0511ec0 r5:c076812c r4:c076f6e8
[<c06ca248>] (rest_init+0x0/0x6c) from [<c00089f4>] (start_kernel+0x1fc/0x2c8)
[<c00087f8>] (start_kernel+0x0/0x2c8) from [<00008034>] (0x8034)
 r6:c05122c4 r5:c0768198 r4:000039fd
---[ end trace 9be94c3a5f325276 ]---
ath9k: *** Dead beef in register 000000b8!
------------[ cut here ]------------
WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-14/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
Backtrace: 
[<c0517308>] (dump_backtrace+0x0/0x114) from [<c0517768>] (dump_stack+0x18/0x1c)
 r6:00000078 r5:bf1edf68 r4:c0751d35
[<c0517750>] (dump_stack+0x0/0x1c) from [<c0524af0>] (warn_slowpath_fmt+0x74/0x90)
[<c0524a7c>] (warn_slowpath_fmt+0x0/0x90) from [<c0524b24>] (warn_slowpath_null+0x18/0x20)
 r3:c06d1398 r2:c0727b80
 r7:40c00000 r6:000000b8 r5:c1100000 r4:deadbeef
[<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
[<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1b8f94>] (ath9k_hw_set_interrupts+0x1cc/0x340 [ath9k])
 r7:40c00000 r6:c1100000 r5:918414b4 r4:f4041171
[<bf1b8dc8>] (ath9k_hw_set_interrupts+0x0/0x340 [ath9k]) from [<bf1d1750>] (ath9k_tasklet+0x44/0x108 [ath9k])
[<bf1d170c>] (ath9k_tasklet+0x0/0x108 [ath9k]) from [<c0529ca0>] (tasklet_action+0x78/0xe8)
 r6:c076cde0 r5:c075b5c4 r4:00000000
[<c0529c28>] (tasklet_action+0x0/0xe8) from [<c0529a7c>] (__do_softirq+0x78/0x10c)
 r6:00000014 r5:c076ce20 r4:00000001
[<c0529a04>] (__do_softirq+0x0/0x10c) from [<c0529d58>] (irq_exit+0x48/0x50)
[<c0529d10>] (irq_exit+0x0/0x50) from [<c0513064>] (_text+0x64/0x74)
[<c0513000>] (_text+0x0/0x74) from [<c05139d0>] (__irq_svc+0x30/0xa0)
Exception stack(0xc0751f50 to 0xc0751f98)
1f40:                                     c105bb00 60000013 00000000 00000000 
1f60: c0514e14 c0750000 c0768168 c0753b48 0001e020 690541f1 0001deb4 c0751fb4 
1f80: c0751f98 c0751f98 c0514cd0 c0514cd4 60000013 ffffffff                   
 r6:00000020 r5:0000001f r4:ffffffff
[<c0514c94>] (cpu_idle+0x0/0x58) from [<c06ca2a0>] (rest_init+0x58/0x6c)
 r6:c0511ec0 r5:c076812c r4:c076f6e8
[<c06ca248>] (rest_init+0x0/0x6c) from [<c00089f4>] (start_kernel+0x1fc/0x2c8)
[<c00087f8>] (start_kernel+0x0/0x2c8) from [<00008034>] (0x8034)
 r6:c05122c4 r5:c0768198 r4:000039fd
---[ end trace 9be94c3a5f325277 ]---


I assume this means a BUG somewhere in the ath9k, although I did not find it yet.

Gabor

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
  2009-05-18 20:35 ` Gabor Juhos
@ 2009-05-18 21:16   ` Luis R. Rodriguez
  2009-05-19  8:57     ` Gabor Juhos
  2009-05-19  7:20   ` Jouni Malinen
  1 sibling, 1 reply; 11+ messages in thread
From: Luis R. Rodriguez @ 2009-05-18 21:16 UTC (permalink / raw)
  To: ath9k-devel

On Mon, May 18, 2009 at 1:35 PM, Gabor Juhos <juhosg@openwrt.org> wrote:
> Rob van Rijen ?rta:
>> Hi guys,
>>
>> I have a EEE PC 1000H with a new MiniPCI-E wireless card: SparkLAN WPEA-110N, (AR9280).
>> For weeks now I am trying to get it to work with my Linksys WAG160 wireless gateway using WPA2
>> Wireless N with WEP works, but is no option for security reasons.
>>
>> Here some of my settings:
>> OpenSuse 11.1, KDE 4.2 with KNetworkmanager, with kernel:
>> ? Linux linux-e38b 2.6.29-rc8-48-pae #1 SMP 2009-03-20 14:41:33 +0100 i686 i686 i386 GNU/Linux
>> with ath9k that came with this kernel, and I tried it with several of the latest drivers
>> downloaded from wireless.kernel.org, over the last couple of weeks up to 17 april.
>>
>> I get the following output from dmesg:
>> ==============================================================================
>> wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
>> wlan0 direct probe responded
>> wlan0: authenticate with AP 00:21:29:79:c0:84
>> wlan0: authenticated
>> wlan0: associate with AP 00:21:29:79:c0:84
>> wlan0: RX ReassocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
>> wlan0: associated
>> wlan0: disassociating by local choice (reason=3)
>> wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
>> wlan0 direct probe responded
>> wlan0: authenticate with AP 00:21:29:79:c0:84
>> wlan0: authenticated
>> wlan0: associate with AP 00:21:29:79:c0:84
>> wlan0: RX AssocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
>> wlan0: associated
>> wlan0: disassociating by local choice (reason=3)
>> ==============================================================================
>>
>> This is what I got until I downloaded the driver from 16 may.
>> With this driver I can actually connect using WPA2, but than the laptop freezes after a few
>> seconds and I can only use the powerbutton to turn off.
>
> I have discovered some weird crashes on various embedded (MIPS, ARM) boards with
> 2.6.30-rc5+compat-wireless-2009-05-15. I'm not sure that is the same error
> but seems similar at least. The strange thing, that i saw a '0xdeadbeef' value in
> the interrupt status register.
>
> With the following patch...
>
> --- a/drivers/net/wireless/ath/ath9k/hw.c
> +++ b/drivers/net/wireless/ath/ath9k/hw.c
> @@ -113,6 +113,13 @@
> ? ? ? ? ? ? ? ?spin_unlock_irqrestore(&ah->ah_sc->sc_serial_rw, flags);
> ? ? ? ?} else
> ? ? ? ? ? ? ? ?val = ioread32(ah->ah_sc->mem + reg_offset);
> +
> + ? ? ? if (val == 0xdeadbeef) {
> + ? ? ? ? ? ? ? DPRINTF(ah->ah_sc, ATH_DBG_ANY,
> + ? ? ? ? ? ? ? ? ? ? ? "*** Dead beef in register %08x!\n", reg_offset);
> + ? ? ? ? ? ? ? WARN_ON(1);
> + ? ? ? }
> +
> ? ? ? ?return val;
> ?}
>
> the output is similar on all boards (with an AR5416 card):
>
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: ah->misc_mode 0x4
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: ah->misc_mode 0x4
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: ah->misc_mode 0x4
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: ah->misc_mode 0x4
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: ah->misc_mode 0x4
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> NETWORK SLEEP
> ath9k: NETWORK SLEEP -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: ah->misc_mode 0x4
> wlan0: authenticate with AP 00:01:23:45:67:89
> wlan0: authenticated
> wlan0: associate with AP 00:01:23:45:67:89
> wlan0: RX AssocResp from 00:01:23:45:67:89 (capab=0x431 status=0 aid=2)
> wlan0: associated
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> NETWORK SLEEP
> ath9k: NETWORK SLEEP -> AWAKE
> ath9k: AWAKE -> NETWORK SLEEP
> ath9k: *** Dead beef in register 000080ec!
> ------------[ cut here ]------------
> WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-14/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
> Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG<7>ath9k: NETWORK SLEEP -> AWAKE
> ath9k: AWAKE -> AWAKE
> ?xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
> Backtrace:
> [<c0517308>] (dump_backtrace+0x0/0x114) from [<c0517768>] (dump_stack+0x18/0x1c)
> ?r6:00000078 r5:bf1edf68 r4:c0751d05
> [<c0517750>] (dump_stack+0x0/0x1c) from [<c0524af0>] (warn_slowpath_fmt+0x74/0x90)
> [<c0524a7c>] (warn_slowpath_fmt+0x0/0x90) from [<c0524b24>] (warn_slowpath_null+0x18/0x20)
> ?r3:c06d1398 r2:c0727b80
> ?r7:00000000 r6:000080ec r5:c1100000 r4:deadbeef
> [<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
> [<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1cc5fc>] (ath9k_hw_ani_monitor+0x5c/0x454 [ath9k])
> ?r7:00000000 r6:c11015d4 r5:c1100000 r4:000015d0
> [<bf1cc5a0>] (ath9k_hw_ani_monitor+0x0/0x454 [ath9k]) from [<bf1d15ec>] (ath_ani_calibrate+0x168/0x250 [ath9k])
> ?r8:00000000 r7:00000000 r6:c1100000 r5:c1cba954 r4:fffc0ba8
> [<bf1d1484>] (ath_ani_calibrate+0x0/0x250 [ath9k]) from [<c052e820>] (run_timer_softirq+0x178/0x1f0)
> [<c052e6a8>] (run_timer_softirq+0x0/0x1f0) from [<c0529a7c>] (__do_softirq+0x78/0x10c)
> [<c0529a04>] (__do_softirq+0x0/0x10c) from [<c0529d58>] (irq_exit+0x48/0x50)
> [<c0529d10>] (irq_exit+0x0/0x50) from [<c0513064>] (_text+0x64/0x74)
> [<c0513000>] (_text+0x0/0x74) from [<c05139d0>] (__irq_svc+0x30/0xa0)
> Exception stack(0xc0751f50 to 0xc0751f98)
> 1f40: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c105bb00 60000013 00000000 00000000
> 1f60: c0514e14 c0750000 c0768168 c0753b48 0001e020 690541f1 0001deb4 c0751fb4
> 1f80: c0751f98 c0751f98 c0514cd0 c0514cd4 60000013 ffffffff
> ?r6:00000020 r5:0000001f r4:ffffffff
> [<c0514c94>] (cpu_idle+0x0/0x58) from [<c06ca2a0>] (rest_init+0x58/0x6c)
> ?r6:c0511ec0 r5:c076812c r4:c076f6e8
> [<c06ca248>] (rest_init+0x0/0x6c) from [<c00089f4>] (start_kernel+0x1fc/0x2c8)
> [<c00087f8>] (start_kernel+0x0/0x2c8) from [<00008034>] (0x8034)
> ?r6:c05122c4 r5:c0768198 r4:000039fd
> ---[ end trace 9be94c3a5f325275 ]---
> ath9k: AWAKE -> AWAKE
> ath9k: AWAKE -> NETWORK SLEEP
> ath9k: *** Dead beef in register 000000ac!
> ------------[ cut here ]------------
> WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-14/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
> Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
> Backtrace:
> [<c0517308>] (dump_backtrace+0x0/0x114) from [<c0517768>] (dump_stack+0x18/0x1c)
> ?r6:00000078 r5:bf1edf68 r4:c0751d35
> [<c0517750>] (dump_stack+0x0/0x1c) from [<c0524af0>] (warn_slowpath_fmt+0x74/0x90)
> [<c0524a7c>] (warn_slowpath_fmt+0x0/0x90) from [<c0524b24>] (warn_slowpath_null+0x18/0x20)
> ?r3:c06d1398 r2:c0727b80
> ?r7:40c00000 r6:000000ac r5:c1100000 r4:deadbeef
> [<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
> [<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1b8f20>] (ath9k_hw_set_interrupts+0x158/0x340 [ath9k])
> ?r7:40c00000 r6:c1100000 r5:918414b4 r4:f4041171
> [<bf1b8dc8>] (ath9k_hw_set_interrupts+0x0/0x340 [ath9k]) from [<bf1d1750>] (ath9k_tasklet+0x44/0x108 [ath9k])
> [<bf1d170c>] (ath9k_tasklet+0x0/0x108 [ath9k]) from [<c0529ca0>] (tasklet_action+0x78/0xe8)
> ?r6:c076cde0 r5:c075b5c4 r4:00000000
> [<c0529c28>] (tasklet_action+0x0/0xe8) from [<c0529a7c>] (__do_softirq+0x78/0x10c)
> ?r6:00000014 r5:c076ce20 r4:00000001
> [<c0529a04>] (__do_softirq+0x0/0x10c) from [<c0529d58>] (irq_exit+0x48/0x50)
> [<c0529d10>] (irq_exit+0x0/0x50) from [<c0513064>] (_text+0x64/0x74)
> [<c0513000>] (_text+0x0/0x74) from [<c05139d0>] (__irq_svc+0x30/0xa0)
> Exception stack(0xc0751f50 to 0xc0751f98)
> 1f40: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c105bb00 60000013 00000000 00000000
> 1f60: c0514e14 c0750000 c0768168 c0753b48 0001e020 690541f1 0001deb4 c0751fb4
> 1f80: c0751f98 c0751f98 c0514cd0 c0514cd4 60000013 ffffffff
> ?r6:00000020 r5:0000001f r4:ffffffff
> [<c0514c94>] (cpu_idle+0x0/0x58) from [<c06ca2a0>] (rest_init+0x58/0x6c)
> ?r6:c0511ec0 r5:c076812c r4:c076f6e8
> [<c06ca248>] (rest_init+0x0/0x6c) from [<c00089f4>] (start_kernel+0x1fc/0x2c8)
> [<c00087f8>] (start_kernel+0x0/0x2c8) from [<00008034>] (0x8034)
> ?r6:c05122c4 r5:c0768198 r4:000039fd
> ---[ end trace 9be94c3a5f325276 ]---
> ath9k: *** Dead beef in register 000000b8!
> ------------[ cut here ]------------
> WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-14/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
> Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
> Backtrace:
> [<c0517308>] (dump_backtrace+0x0/0x114) from [<c0517768>] (dump_stack+0x18/0x1c)
> ?r6:00000078 r5:bf1edf68 r4:c0751d35
> [<c0517750>] (dump_stack+0x0/0x1c) from [<c0524af0>] (warn_slowpath_fmt+0x74/0x90)
> [<c0524a7c>] (warn_slowpath_fmt+0x0/0x90) from [<c0524b24>] (warn_slowpath_null+0x18/0x20)
> ?r3:c06d1398 r2:c0727b80
> ?r7:40c00000 r6:000000b8 r5:c1100000 r4:deadbeef
> [<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
> [<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1b8f94>] (ath9k_hw_set_interrupts+0x1cc/0x340 [ath9k])
> ?r7:40c00000 r6:c1100000 r5:918414b4 r4:f4041171
> [<bf1b8dc8>] (ath9k_hw_set_interrupts+0x0/0x340 [ath9k]) from [<bf1d1750>] (ath9k_tasklet+0x44/0x108 [ath9k])
> [<bf1d170c>] (ath9k_tasklet+0x0/0x108 [ath9k]) from [<c0529ca0>] (tasklet_action+0x78/0xe8)
> ?r6:c076cde0 r5:c075b5c4 r4:00000000
> [<c0529c28>] (tasklet_action+0x0/0xe8) from [<c0529a7c>] (__do_softirq+0x78/0x10c)
> ?r6:00000014 r5:c076ce20 r4:00000001
> [<c0529a04>] (__do_softirq+0x0/0x10c) from [<c0529d58>] (irq_exit+0x48/0x50)
> [<c0529d10>] (irq_exit+0x0/0x50) from [<c0513064>] (_text+0x64/0x74)
> [<c0513000>] (_text+0x0/0x74) from [<c05139d0>] (__irq_svc+0x30/0xa0)
> Exception stack(0xc0751f50 to 0xc0751f98)
> 1f40: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c105bb00 60000013 00000000 00000000
> 1f60: c0514e14 c0750000 c0768168 c0753b48 0001e020 690541f1 0001deb4 c0751fb4
> 1f80: c0751f98 c0751f98 c0514cd0 c0514cd4 60000013 ffffffff
> ?r6:00000020 r5:0000001f r4:ffffffff
> [<c0514c94>] (cpu_idle+0x0/0x58) from [<c06ca2a0>] (rest_init+0x58/0x6c)
> ?r6:c0511ec0 r5:c076812c r4:c076f6e8
> [<c06ca248>] (rest_init+0x0/0x6c) from [<c00089f4>] (start_kernel+0x1fc/0x2c8)
> [<c00087f8>] (start_kernel+0x0/0x2c8) from [<00008034>] (0x8034)
> ?r6:c05122c4 r5:c0768198 r4:000039fd
> ---[ end trace 9be94c3a5f325277 ]---
>
>
> I assume this means a BUG somewhere in the ath9k, although I did not find it yet.

Hm, can you try with

CONFIG_MAC80211_DEFAULT_PS=n

  Luis

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
  2009-05-18 20:35 ` Gabor Juhos
  2009-05-18 21:16   ` Luis R. Rodriguez
@ 2009-05-19  7:20   ` Jouni Malinen
  2009-05-19 10:45     ` Gabor Juhos
  1 sibling, 1 reply; 11+ messages in thread
From: Jouni Malinen @ 2009-05-19  7:20 UTC (permalink / raw)
  To: ath9k-devel

On Mon, 2009-05-18 at 13:35 -0700, Gabor Juhos wrote:

> I have discovered some weird crashes on various embedded (MIPS, ARM) boards with
> 2.6.30-rc5+compat-wireless-2009-05-15. I'm not sure that is the same error
> but seems similar at least. The strange thing, that i saw a '0xdeadbeef' value in
> the interrupt status register.

I have not seen that value nor a crash (AR9280 on AMD64), but the debug
log you showed looks quite familiar..

> ath9k: AWAKE -> NETWORK SLEEP
> ath9k: *** Dead beef in register 000080ec!
> Backtrace:
> [<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
> [<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1cc5fc>] (ath9k_hw_ani_monitor+0x5c/0x454 [ath9k])
>  r7:00000000 r6:c11015d4 r5:c1100000 r4:000015d0
> [<bf1cc5a0>] (ath9k_hw_ani_monitor+0x0/0x454 [ath9k]) from [<bf1d15ec>] (ath_ani_calibrate+0x168/0x250 [ath9k])
>  r8:00000000 r7:00000000 r6:c1100000 r5:c1cba954 r4:fffc0ba8
> [<bf1d1484>] (ath_ani_calibrate+0x0/0x250 [ath9k]) from [<c052e820>] (run_timer_softirq+0x178/0x1f0)

I noticed this when debugging PS mode. The periodic ANI/calibration step
is being run here and that is not such a good idea to be done when the
chip is mostly sleeping.. I would assume it could (at least partially)
explain what you are seeing here.

I have a patch that skips the calibration step in PS mode and plan to
send that out with some other PS mode fixes after some more testing.

I'm not sure about the other cases shown in your debug log, though. If
they continue to show up, it might be useful to check whether we are
getting AR_INTR_SYNC_MAC_SLEEP_ACCESS events when in sleep mode. I think
I've now managed to resolve most, if not all, of those in my work
version.

- Jouni

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
  2009-05-18 21:16   ` Luis R. Rodriguez
@ 2009-05-19  8:57     ` Gabor Juhos
  0 siblings, 0 replies; 11+ messages in thread
From: Gabor Juhos @ 2009-05-19  8:57 UTC (permalink / raw)
  To: ath9k-devel

Luis R. Rodriguez ?rta:
> On Mon, May 18, 2009 at 1:35 PM, Gabor Juhos <juhosg@openwrt.org> wrote:
>> Rob van Rijen ?rta:
>>> Hi guys,
>>>
>>> I have a EEE PC 1000H with a new MiniPCI-E wireless card: SparkLAN WPEA-110N, (AR9280).
>>> For weeks now I am trying to get it to work with my Linksys WAG160 wireless gateway using WPA2
>>> Wireless N with WEP works, but is no option for security reasons.
>>>
>>> Here some of my settings:
>>> OpenSuse 11.1, KDE 4.2 with KNetworkmanager, with kernel:
>>>   Linux linux-e38b 2.6.29-rc8-48-pae #1 SMP 2009-03-20 14:41:33 +0100 i686 i686 i386 GNU/Linux
>>> with ath9k that came with this kernel, and I tried it with several of the latest drivers
>>> downloaded from wireless.kernel.org, over the last couple of weeks up to 17 april.
>>>
>>> I get the following output from dmesg:
>>> ==============================================================================
>>> wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
>>> wlan0 direct probe responded
>>> wlan0: authenticate with AP 00:21:29:79:c0:84
>>> wlan0: authenticated
>>> wlan0: associate with AP 00:21:29:79:c0:84
>>> wlan0: RX ReassocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
>>> wlan0: associated
>>> wlan0: disassociating by local choice (reason=3)
>>> wlan0: direct probe to AP 00:21:29:79:c0:84 try 1
>>> wlan0 direct probe responded
>>> wlan0: authenticate with AP 00:21:29:79:c0:84
>>> wlan0: authenticated
>>> wlan0: associate with AP 00:21:29:79:c0:84
>>> wlan0: RX AssocResp from 00:21:29:79:c0:84 (capab=0x431 status=0 aid=1)
>>> wlan0: associated
>>> wlan0: disassociating by local choice (reason=3)
>>> ==============================================================================
>>>
>>> This is what I got until I downloaded the driver from 16 may.
>>> With this driver I can actually connect using WPA2, but than the laptop freezes after a few
>>> seconds and I can only use the powerbutton to turn off.
>> I have discovered some weird crashes on various embedded (MIPS, ARM) boards with
>> 2.6.30-rc5+compat-wireless-2009-05-15. I'm not sure that is the same error
>> but seems similar at least. The strange thing, that i saw a '0xdeadbeef' value in
>> the interrupt status register.
>>
>> With the following patch...
>>
>> --- a/drivers/net/wireless/ath/ath9k/hw.c
>> +++ b/drivers/net/wireless/ath/ath9k/hw.c
>> @@ -113,6 +113,13 @@
>>                spin_unlock_irqrestore(&ah->ah_sc->sc_serial_rw, flags);
>>        } else
>>                val = ioread32(ah->ah_sc->mem + reg_offset);
>> +
>> +       if (val == 0xdeadbeef) {
>> +               DPRINTF(ah->ah_sc, ATH_DBG_ANY,
>> +                       "*** Dead beef in register %08x!\n", reg_offset);
>> +               WARN_ON(1);
>> +       }
>> +
>>        return val;
>>  }
>>
>> the output is similar on all boards (with an AR5416 card):
>>
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: ah->misc_mode 0x4
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: ah->misc_mode 0x4
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: ah->misc_mode 0x4
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: ah->misc_mode 0x4
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: ah->misc_mode 0x4
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> NETWORK SLEEP
>> ath9k: NETWORK SLEEP -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: ah->misc_mode 0x4
>> wlan0: authenticate with AP 00:01:23:45:67:89
>> wlan0: authenticated
>> wlan0: associate with AP 00:01:23:45:67:89
>> wlan0: RX AssocResp from 00:01:23:45:67:89 (capab=0x431 status=0 aid=2)
>> wlan0: associated
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> NETWORK SLEEP
>> ath9k: NETWORK SLEEP -> AWAKE
>> ath9k: AWAKE -> NETWORK SLEEP
>> ath9k: *** Dead beef in register 000080ec!
>> ------------[ cut here ]------------
>> WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-14/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
>> Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG<7>ath9k: NETWORK SLEEP -> AWAKE
>> ath9k: AWAKE -> AWAKE
>>  xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
>> Backtrace:
>> [<c0517308>] (dump_backtrace+0x0/0x114) from [<c0517768>] (dump_stack+0x18/0x1c)
>>  r6:00000078 r5:bf1edf68 r4:c0751d05
>> [<c0517750>] (dump_stack+0x0/0x1c) from [<c0524af0>] (warn_slowpath_fmt+0x74/0x90)
>> [<c0524a7c>] (warn_slowpath_fmt+0x0/0x90) from [<c0524b24>] (warn_slowpath_null+0x18/0x20)
>>  r3:c06d1398 r2:c0727b80
>>  r7:00000000 r6:000080ec r5:c1100000 r4:deadbeef
>> [<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
>> [<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1cc5fc>] (ath9k_hw_ani_monitor+0x5c/0x454 [ath9k])
>>  r7:00000000 r6:c11015d4 r5:c1100000 r4:000015d0
>> [<bf1cc5a0>] (ath9k_hw_ani_monitor+0x0/0x454 [ath9k]) from [<bf1d15ec>] (ath_ani_calibrate+0x168/0x250 [ath9k])
>>  r8:00000000 r7:00000000 r6:c1100000 r5:c1cba954 r4:fffc0ba8
>> [<bf1d1484>] (ath_ani_calibrate+0x0/0x250 [ath9k]) from [<c052e820>] (run_timer_softirq+0x178/0x1f0)
>> [<c052e6a8>] (run_timer_softirq+0x0/0x1f0) from [<c0529a7c>] (__do_softirq+0x78/0x10c)
>> [<c0529a04>] (__do_softirq+0x0/0x10c) from [<c0529d58>] (irq_exit+0x48/0x50)
>> [<c0529d10>] (irq_exit+0x0/0x50) from [<c0513064>] (_text+0x64/0x74)
>> [<c0513000>] (_text+0x0/0x74) from [<c05139d0>] (__irq_svc+0x30/0xa0)
>> Exception stack(0xc0751f50 to 0xc0751f98)
>> 1f40:                                     c105bb00 60000013 00000000 00000000
>> 1f60: c0514e14 c0750000 c0768168 c0753b48 0001e020 690541f1 0001deb4 c0751fb4
>> 1f80: c0751f98 c0751f98 c0514cd0 c0514cd4 60000013 ffffffff
>>  r6:00000020 r5:0000001f r4:ffffffff
>> [<c0514c94>] (cpu_idle+0x0/0x58) from [<c06ca2a0>] (rest_init+0x58/0x6c)
>>  r6:c0511ec0 r5:c076812c r4:c076f6e8
>> [<c06ca248>] (rest_init+0x0/0x6c) from [<c00089f4>] (start_kernel+0x1fc/0x2c8)
>> [<c00087f8>] (start_kernel+0x0/0x2c8) from [<00008034>] (0x8034)
>>  r6:c05122c4 r5:c0768198 r4:000039fd
>> ---[ end trace 9be94c3a5f325275 ]---
>> ath9k: AWAKE -> AWAKE
>> ath9k: AWAKE -> NETWORK SLEEP
>> ath9k: *** Dead beef in register 000000ac!
>> ------------[ cut here ]------------
>> WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-14/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
>> Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
>> Backtrace:
>> [<c0517308>] (dump_backtrace+0x0/0x114) from [<c0517768>] (dump_stack+0x18/0x1c)
>>  r6:00000078 r5:bf1edf68 r4:c0751d35
>> [<c0517750>] (dump_stack+0x0/0x1c) from [<c0524af0>] (warn_slowpath_fmt+0x74/0x90)
>> [<c0524a7c>] (warn_slowpath_fmt+0x0/0x90) from [<c0524b24>] (warn_slowpath_null+0x18/0x20)
>>  r3:c06d1398 r2:c0727b80
>>  r7:40c00000 r6:000000ac r5:c1100000 r4:deadbeef
>> [<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
>> [<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1b8f20>] (ath9k_hw_set_interrupts+0x158/0x340 [ath9k])
>>  r7:40c00000 r6:c1100000 r5:918414b4 r4:f4041171
>> [<bf1b8dc8>] (ath9k_hw_set_interrupts+0x0/0x340 [ath9k]) from [<bf1d1750>] (ath9k_tasklet+0x44/0x108 [ath9k])
>> [<bf1d170c>] (ath9k_tasklet+0x0/0x108 [ath9k]) from [<c0529ca0>] (tasklet_action+0x78/0xe8)
>>  r6:c076cde0 r5:c075b5c4 r4:00000000
>> [<c0529c28>] (tasklet_action+0x0/0xe8) from [<c0529a7c>] (__do_softirq+0x78/0x10c)
>>  r6:00000014 r5:c076ce20 r4:00000001
>> [<c0529a04>] (__do_softirq+0x0/0x10c) from [<c0529d58>] (irq_exit+0x48/0x50)
>> [<c0529d10>] (irq_exit+0x0/0x50) from [<c0513064>] (_text+0x64/0x74)
>> [<c0513000>] (_text+0x0/0x74) from [<c05139d0>] (__irq_svc+0x30/0xa0)
>> Exception stack(0xc0751f50 to 0xc0751f98)
>> 1f40:                                     c105bb00 60000013 00000000 00000000
>> 1f60: c0514e14 c0750000 c0768168 c0753b48 0001e020 690541f1 0001deb4 c0751fb4
>> 1f80: c0751f98 c0751f98 c0514cd0 c0514cd4 60000013 ffffffff
>>  r6:00000020 r5:0000001f r4:ffffffff
>> [<c0514c94>] (cpu_idle+0x0/0x58) from [<c06ca2a0>] (rest_init+0x58/0x6c)
>>  r6:c0511ec0 r5:c076812c r4:c076f6e8
>> [<c06ca248>] (rest_init+0x0/0x6c) from [<c00089f4>] (start_kernel+0x1fc/0x2c8)
>> [<c00087f8>] (start_kernel+0x0/0x2c8) from [<00008034>] (0x8034)
>>  r6:c05122c4 r5:c0768198 r4:000039fd
>> ---[ end trace 9be94c3a5f325276 ]---
>> ath9k: *** Dead beef in register 000000b8!
>> ------------[ cut here ]------------
>> WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-14/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
>> Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
>> Backtrace:
>> [<c0517308>] (dump_backtrace+0x0/0x114) from [<c0517768>] (dump_stack+0x18/0x1c)
>>  r6:00000078 r5:bf1edf68 r4:c0751d35
>> [<c0517750>] (dump_stack+0x0/0x1c) from [<c0524af0>] (warn_slowpath_fmt+0x74/0x90)
>> [<c0524a7c>] (warn_slowpath_fmt+0x0/0x90) from [<c0524b24>] (warn_slowpath_null+0x18/0x20)
>>  r3:c06d1398 r2:c0727b80
>>  r7:40c00000 r6:000000b8 r5:c1100000 r4:deadbeef
>> [<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
>> [<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1b8f94>] (ath9k_hw_set_interrupts+0x1cc/0x340 [ath9k])
>>  r7:40c00000 r6:c1100000 r5:918414b4 r4:f4041171
>> [<bf1b8dc8>] (ath9k_hw_set_interrupts+0x0/0x340 [ath9k]) from [<bf1d1750>] (ath9k_tasklet+0x44/0x108 [ath9k])
>> [<bf1d170c>] (ath9k_tasklet+0x0/0x108 [ath9k]) from [<c0529ca0>] (tasklet_action+0x78/0xe8)
>>  r6:c076cde0 r5:c075b5c4 r4:00000000
>> [<c0529c28>] (tasklet_action+0x0/0xe8) from [<c0529a7c>] (__do_softirq+0x78/0x10c)
>>  r6:00000014 r5:c076ce20 r4:00000001
>> [<c0529a04>] (__do_softirq+0x0/0x10c) from [<c0529d58>] (irq_exit+0x48/0x50)
>> [<c0529d10>] (irq_exit+0x0/0x50) from [<c0513064>] (_text+0x64/0x74)
>> [<c0513000>] (_text+0x0/0x74) from [<c05139d0>] (__irq_svc+0x30/0xa0)
>> Exception stack(0xc0751f50 to 0xc0751f98)
>> 1f40:                                     c105bb00 60000013 00000000 00000000
>> 1f60: c0514e14 c0750000 c0768168 c0753b48 0001e020 690541f1 0001deb4 c0751fb4
>> 1f80: c0751f98 c0751f98 c0514cd0 c0514cd4 60000013 ffffffff
>>  r6:00000020 r5:0000001f r4:ffffffff
>> [<c0514c94>] (cpu_idle+0x0/0x58) from [<c06ca2a0>] (rest_init+0x58/0x6c)
>>  r6:c0511ec0 r5:c076812c r4:c076f6e8
>> [<c06ca248>] (rest_init+0x0/0x6c) from [<c00089f4>] (start_kernel+0x1fc/0x2c8)
>> [<c00087f8>] (start_kernel+0x0/0x2c8) from [<00008034>] (0x8034)
>>  r6:c05122c4 r5:c0768198 r4:000039fd
>> ---[ end trace 9be94c3a5f325277 ]---
>>
>>
>> I assume this means a BUG somewhere in the ath9k, although I did not find it yet.
> 
> Hm, can you try with
> 
> CONFIG_MAC80211_DEFAULT_PS=n

Yes, i did it. I got similar results, although i did not get a crash this time.
I will try it with the latest ath9k PS patches.

Gabor

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
  2009-05-19  7:20   ` Jouni Malinen
@ 2009-05-19 10:45     ` Gabor Juhos
  2009-05-19 14:10       ` Jouni Malinen
  0 siblings, 1 reply; 11+ messages in thread
From: Gabor Juhos @ 2009-05-19 10:45 UTC (permalink / raw)
  To: ath9k-devel

Jouni Malinen ?rta:
> On Mon, 2009-05-18 at 13:35 -0700, Gabor Juhos wrote:
> 
>> I have discovered some weird crashes on various embedded (MIPS, ARM) boards with
>> 2.6.30-rc5+compat-wireless-2009-05-15. I'm not sure that is the same error
>> but seems similar at least. The strange thing, that i saw a '0xdeadbeef' value in
>> the interrupt status register.
> 
> I have not seen that value nor a crash (AR9280 on AMD64), but the debug
> log you showed looks quite familiar..
> 
>> ath9k: AWAKE -> NETWORK SLEEP
>> ath9k: *** Dead beef in register 000080ec!
>> Backtrace:
>> [<c0524b0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b7820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
>> [<bf1b7760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1cc5fc>] (ath9k_hw_ani_monitor+0x5c/0x454 [ath9k])
>>  r7:00000000 r6:c11015d4 r5:c1100000 r4:000015d0
>> [<bf1cc5a0>] (ath9k_hw_ani_monitor+0x0/0x454 [ath9k]) from [<bf1d15ec>] (ath_ani_calibrate+0x168/0x250 [ath9k])
>>  r8:00000000 r7:00000000 r6:c1100000 r5:c1cba954 r4:fffc0ba8
>> [<bf1d1484>] (ath_ani_calibrate+0x0/0x250 [ath9k]) from [<c052e820>] (run_timer_softirq+0x178/0x1f0)
> 
> I noticed this when debugging PS mode. The periodic ANI/calibration step
> is being run here and that is not such a good idea to be done when the
> chip is mostly sleeping.. I would assume it could (at least partially)
> explain what you are seeing here.
> 
> I have a patch that skips the calibration step in PS mode and plan to
> send that out with some other PS mode fixes after some more testing.
>
> I'm not sure about the other cases shown in your debug log, though. If
> they continue to show up, it might be useful to check whether we are
> getting AR_INTR_SYNC_MAC_SLEEP_ACCESS events when in sleep mode. I think
> I've now managed to resolve most, if not all, of those in my work
> version.

Ok, I will wait for the patches then.
In the meantime i will test compat-wireless-2009-05-19.

Gabor

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
  2009-05-19 10:45     ` Gabor Juhos
@ 2009-05-19 14:10       ` Jouni Malinen
  2009-05-19 19:07         ` Gabor Juhos
  0 siblings, 1 reply; 11+ messages in thread
From: Jouni Malinen @ 2009-05-19 14:10 UTC (permalink / raw)
  To: ath9k-devel

On Tue, 2009-05-19 at 03:45 -0700, Gabor Juhos wrote:

> Ok, I will wait for the patches then.

I just submitted the patches and they are also available from
http://w1.fi/p/ps/

After implementing additional debugging functionality, I did find number
of issues with ath9k touching the hardware when in sleep mode. This did
include 0xdeadbeef reads, too, which seems to be the result of a
register read that should not have happened in the first place.. Anyway,
after these patches (on top of the previous PS fixes that are now in
wireless-testing.git), I have not seen that special value (or the
interrupt indicating such access) anymore.

Or well, I think it is still possible to get a somewhat similar case by
unloading the driver when in PS mode, but it does not seem to cause
problems at least with AR9280. If you are seeing crashes with this
version on an embedded board, I would be interested in getting more
details of the board and wlan version. And well, even hitting the
register read/write in sleep mode issue without a crash would be good
thing to report since the driver should not really trigger those in
general.

- Jouni

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
  2009-05-19 14:10       ` Jouni Malinen
@ 2009-05-19 19:07         ` Gabor Juhos
  2009-05-20 19:41           ` Gabor Juhos
  0 siblings, 1 reply; 11+ messages in thread
From: Gabor Juhos @ 2009-05-19 19:07 UTC (permalink / raw)
  To: ath9k-devel

Jouni Malinen ?rta:
> On Tue, 2009-05-19 at 03:45 -0700, Gabor Juhos wrote:
> 
>> Ok, I will wait for the patches then.
> 
> I just submitted the patches and they are also available from
> http://w1.fi/p/ps/

Thanks, I will try them.

> 
> After implementing additional debugging functionality, I did find number
> of issues with ath9k touching the hardware when in sleep mode. This did
> include 0xdeadbeef reads, too, which seems to be the result of a
> register read that should not have happened in the first place.. Anyway,
> after these patches (on top of the previous PS fixes that are now in
> wireless-testing.git), I have not seen that special value (or the
> interrupt indicating such access) anymore.

Superb.

> 
> Or well, I think it is still possible to get a somewhat similar case by
> unloading the driver when in PS mode, but it does not seem to cause
> problems at least with AR9280. If you are seeing crashes with this
> version on an embedded board, I would be interested in getting more
> details of the board and wlan version. And well, even hitting the
> register read/write in sleep mode issue without a crash would be good
> thing to report since the driver should not really trigger those in
> general.

Ok. I will tell you the results.

Regards,
Gabor

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
  2009-05-19 19:07         ` Gabor Juhos
@ 2009-05-20 19:41           ` Gabor Juhos
  0 siblings, 0 replies; 11+ messages in thread
From: Gabor Juhos @ 2009-05-20 19:41 UTC (permalink / raw)
  To: ath9k-devel

Hi Jouni,

> Jouni Malinen ?rta:
>> On Tue, 2009-05-19 at 03:45 -0700, Gabor Juhos wrote:
>>
>>> Ok, I will wait for the patches then.
>> I just submitted the patches and they are also available from
>> http://w1.fi/p/ps/
> 
> Thanks, I will try them.
> 
>> After implementing additional debugging functionality, I did find number
>> of issues with ath9k touching the hardware when in sleep mode. This did
>> include 0xdeadbeef reads, too, which seems to be the result of a
>> register read that should not have happened in the first place.. Anyway,
>> after these patches (on top of the previous PS fixes that are now in
>> wireless-testing.git), I have not seen that special value (or the
>> interrupt indicating such access) anymore.
> 
> Superb.
> 
>> Or well, I think it is still possible to get a somewhat similar case by
>> unloading the driver when in PS mode, but it does not seem to cause
>> problems at least with AR9280. If you are seeing crashes with this
>> version on an embedded board, I would be interested in getting more
>> details of the board and wlan version. And well, even hitting the
>> register read/write in sleep mode issue without a crash would be good
>> thing to report since the driver should not really trigger those in
>> general.
> 
> Ok. I will tell you the results.

I have tested your patches with 2.6.30-rc6+compat-wireless-2009-05-20 on 
a Gateworks Avila GW2348-2 board with an AR5416 card (MAC/BB Rev:2 AR2133 RF Rev:81).
It works fine, i did not see the magic value nor a crash with it under normal usage.
Thank you for the solution.

Although i can make it crazy with the following script:

---
#!/bin/sh

cat << EOF > /var/run/wpa_supplicant-wlan0.conf
ctrl_interface=/var/run/wpa_supplicant-wlan0
network={
        scan_ssid=1
        ssid="FOOBAR"
        key_mgmt=WPA-PSK
        proto=RSN
        psk="foobarbaz"
}
EOF

rmmod ath9k
dmesg -n8
insmod ath9k debug=0x1
while true; do
	wpa_supplicant -b br-lan -B -P /var/run/wpa_supplicant-wlan0.pid -D wext -i wlan0 -c /var/run/wpa_supplicant-wlan0.conf
	sleep 10
	kill `cat /var/run/wpa_supplicant-wlan0.pid`
	rm -rf /var/run/wpa_supplicant-wlan0
done
---

and i can get a result similar to this:

[...]
ath9k: NETWORK SLEEP -> AWAKE
ath9k: AWAKE -> NETWORK SLEEP
ath9k: NETWORK SLEEP -> AWAKE
ath9k: AWAKE -> NETWORK SLEEP
ath9k: NETWORK SLEEP -> AWAKE
ath9k: AWAKE -> NETWORK SLEEP
ath9k: *** Dead beef in register 00000024!
------------[ cut here ]------------
WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-20/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
Backtrace: 
[<c051d308>] (dump_backtrace+0x0/0x114) from [<c051d768>] (dump_stack+0x18/0x1c)
 r6:00000078 r5:bf1ef6d8 r4:c17cdc25
[<c051d750>] (dump_stack+0x0/0x1c) from [<c052aaf0>] (warn_slowpath_fmt+0x74/0x90)
[<c052aa7c>] (warn_slowpath_fmt+0x0/0x90) from [<c052ab24>] (warn_slowpath_null+0x18/0x20)
 r3:c06d7398 r2:c072db80
 r7:00000000 r6:00000024 r5:c1158000 r4:deadbeef
[<c052ab0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b8820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
[<bf1b8760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1ba0fc>] (ath9k_hw_set_interrupts+0x334/0x418 [ath9k])
 r7:00000000 r6:c1158000 r5:00000000 r4:c1cba954
[<bf1b9dc8>] (ath9k_hw_set_interrupts+0x0/0x418 [ath9k]) from [<bf1d1e60>] (ath9k_stop+0x78/0x14c [ath9k])
[<bf1d1de8>] (ath9k_stop+0x0/0x14c [ath9k]) from [<bf07d72c>] (ieee80211_stop+0x32c/0x570 [mac80211])
 r6:00000000 r5:c1cba180 r4:00000000
[<bf07d400>] (ieee80211_stop+0x0/0x570 [mac80211]) from [<c0664f50>] (dev_close+0x88/0xbc)
 r8:c17cde60 r7:00001003 r6:00001002 r5:bf095308 r4:c1079000
[<c0664ec8>] (dev_close+0x0/0xbc) from [<c0664d18>] (dev_change_flags+0x80/0x180)
 r5:c1079000 r4:00000001
[<c0664c98>] (dev_change_flags+0x0/0x180) from [<c06ae93c>] (devinet_ioctl+0x684/0x74c)
 r7:00008914 r6:c077a83c r5:c17cc000 r4:becd9ca0
[<c06ae2b8>] (devinet_ioctl+0x0/0x74c) from [<c06af384>] (inet_ioctl+0x1bc/0x1f4)
[<c06af1c8>] (inet_ioctl+0x0/0x1f4) from [<c0655e04>] (sock_ioctl+0xdc/0x27c)
[<c0655d28>] (sock_ioctl+0x0/0x27c) from [<c058a9fc>] (vfs_ioctl+0x34/0x78)
 r6:00008914 r5:becd9ca0 r4:c1cea0a0
[<c058a9c8>] (vfs_ioctl+0x0/0x78) from [<c058ac7c>] (do_vfs_ioctl+0x210/0x530)
 r5:becd9ca0 r4:00000003
[<c058aa6c>] (do_vfs_ioctl+0x0/0x530) from [<c058afdc>] (sys_ioctl+0x40/0x68)
[<c058af9c>] (sys_ioctl+0x0/0x68) from [<c0519dc0>] (ret_fast_syscall+0x0/0x2c)
 r6:00001002 r5:0005c4b8 r4:0005c4b8
---[ end trace 9aa2912c945f3c8b ]---
ath9k: *** Dead beef in register 000000ac!
------------[ cut here ]------------
WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-20/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
Backtrace: 
[<c051d308>] (dump_backtrace+0x0/0x114) from [<c051d768>] (dump_stack+0x18/0x1c)
 r6:00000078 r5:bf1ef6d8 r4:c17cdc25
[<c051d750>] (dump_stack+0x0/0x1c) from [<c052aaf0>] (warn_slowpath_fmt+0x74/0x90)
[<c052aa7c>] (warn_slowpath_fmt+0x0/0x90) from [<c052ab24>] (warn_slowpath_null+0x18/0x20)
 r3:c06d7398 r2:c072db80
 r7:00000000 r6:000000ac r5:c1158000 r4:deadbeef
[<c052ab0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b8820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
[<bf1b8760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1b9f20>] (ath9k_hw_set_interrupts+0x158/0x418 [ath9k])
 r7:00000000 r6:c1158000 r5:00000000 r4:00000000
[<bf1b9dc8>] (ath9k_hw_set_interrupts+0x0/0x418 [ath9k]) from [<bf1d1e60>] (ath9k_stop+0x78/0x14c [ath9k])
[<bf1d1de8>] (ath9k_stop+0x0/0x14c [ath9k]) from [<bf07d72c>] (ieee80211_stop+0x32c/0x570 [mac80211])
 r6:00000000 r5:c1cba180 r4:00000000
[<bf07d400>] (ieee80211_stop+0x0/0x570 [mac80211]) from [<c0664f50>] (dev_close+0x88/0xbc)
 r8:c17cde60 r7:00001003 r6:00001002 r5:bf095308 r4:c1079000
[<c0664ec8>] (dev_close+0x0/0xbc) from [<c0664d18>] (dev_change_flags+0x80/0x180)
 r5:c1079000 r4:00000001
[<c0664c98>] (dev_change_flags+0x0/0x180) from [<c06ae93c>] (devinet_ioctl+0x684/0x74c)
 r7:00008914 r6:c077a83c r5:c17cc000 r4:becd9ca0
[<c06ae2b8>] (devinet_ioctl+0x0/0x74c) from [<c06af384>] (inet_ioctl+0x1bc/0x1f4)
[<c06af1c8>] (inet_ioctl+0x0/0x1f4) from [<c0655e04>] (sock_ioctl+0xdc/0x27c)
[<c0655d28>] (sock_ioctl+0x0/0x27c) from [<c058a9fc>] (vfs_ioctl+0x34/0x78)
 r6:00008914 r5:becd9ca0 r4:c1cea0a0
[<c058a9c8>] (vfs_ioctl+0x0/0x78) from [<c058ac7c>] (do_vfs_ioctl+0x210/0x530)
 r5:becd9ca0 r4:00000003
[<c058aa6c>] (do_vfs_ioctl+0x0/0x530) from [<c058afdc>] (sys_ioctl+0x40/0x68)
[<c058af9c>] (sys_ioctl+0x0/0x68) from [<c0519dc0>] (ret_fast_syscall+0x0/0x2c)
 r6:00001002 r5:0005c4b8 r4:0005c4b8
---[ end trace 9aa2912c945f3c8c ]---
ath9k: *** AR_IMR_S2: ((0xdeadbeef & ~(0x77c00000)) | 0x0) => 0x882dbeef in ath9k_hw_set_interrupts
------------[ cut here ]------------
WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-20/drivers/net/wireless/ath/ath9k/hw.c:3120 warn_slowpath_null+0x18/0x20()
Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
Backtrace: 
[<c051d308>] (dump_backtrace+0x0/0x114) from [<c051d768>] (dump_stack+0x18/0x1c)
 r6:00000c30 r5:bf1ef6d8 r4:c17cdc4d
[<c051d750>] (dump_stack+0x0/0x1c) from [<c052aaf0>] (warn_slowpath_fmt+0x74/0x90)
[<c052aa7c>] (warn_slowpath_fmt+0x0/0x90) from [<c052ab24>] (warn_slowpath_null+0x18/0x20)
 r3:c06d7398 r2:c072db80
 r7:00000000 r6:c1158000 r5:00000000 r4:882dbeef
[<c052ab0c>] (warn_slowpath_null+0x0/0x20) from [<bf1ba0c4>] (ath9k_hw_set_interrupts+0x2fc/0x418 [ath9k])
[<bf1b9dc8>] (ath9k_hw_set_interrupts+0x0/0x418 [ath9k]) from [<bf1d1e60>] (ath9k_stop+0x78/0x14c [ath9k])
[<bf1d1de8>] (ath9k_stop+0x0/0x14c [ath9k]) from [<bf07d72c>] (ieee80211_stop+0x32c/0x570 [mac80211])
 r6:00000000 r5:c1cba180 r4:00000000
[<bf07d400>] (ieee80211_stop+0x0/0x570 [mac80211]) from [<c0664f50>] (dev_close+0x88/0xbc)
 r8:c17cde60 r7:00001003 r6:00001002 r5:bf095308 r4:c1079000
[<c0664ec8>] (dev_close+0x0/0xbc) from [<c0664d18>] (dev_change_flags+0x80/0x180)
 r5:c1079000 r4:00000001
[<c0664c98>] (dev_change_flags+0x0/0x180) from [<c06ae93c>] (devinet_ioctl+0x684/0x74c)
 r7:00008914 r6:c077a83c r5:c17cc000 r4:becd9ca0
[<c06ae2b8>] (devinet_ioctl+0x0/0x74c) from [<c06af384>] (inet_ioctl+0x1bc/0x1f4)
[<c06af1c8>] (inet_ioctl+0x0/0x1f4) from [<c0655e04>] (sock_ioctl+0xdc/0x27c)
[<c0655d28>] (sock_ioctl+0x0/0x27c) from [<c058a9fc>] (vfs_ioctl+0x34/0x78)
 r6:00008914 r5:becd9ca0 r4:c1cea0a0
[<c058a9c8>] (vfs_ioctl+0x0/0x78) from [<c058ac7c>] (do_vfs_ioctl+0x210/0x530)
 r5:becd9ca0 r4:00000003
[<c058aa6c>] (do_vfs_ioctl+0x0/0x530) from [<c058afdc>] (sys_ioctl+0x40/0x68)
[<c058af9c>] (sys_ioctl+0x0/0x68) from [<c0519dc0>] (ret_fast_syscall+0x0/0x2c)
 r6:00001002 r5:0005c4b8 r4:0005c4b8
---[ end trace 9aa2912c945f3c8d ]---
ath9k: *** Dead beef in register 000000b8!
------------[ cut here ]------------
WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-20/drivers/net/wireless/ath/ath9k/hw.c:120 warn_slowpath_null+0x18/0x20()
Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
Backtrace: 
[<c051d308>] (dump_backtrace+0x0/0x114) from [<c051d768>] (dump_stack+0x18/0x1c)
 r6:00000078 r5:bf1ef6d8 r4:c17cdc25
[<c051d750>] (dump_stack+0x0/0x1c) from [<c052aaf0>] (warn_slowpath_fmt+0x74/0x90)
[<c052aa7c>] (warn_slowpath_fmt+0x0/0x90) from [<c052ab24>] (warn_slowpath_null+0x18/0x20)
 r3:c06d7398 r2:c072db80
 r7:00000000 r6:000000b8 r5:c1158000 r4:deadbeef
[<c052ab0c>] (warn_slowpath_null+0x0/0x20) from [<bf1b8820>] (ath9k_ioread32+0xc0/0x140 [ath9k])
[<bf1b8760>] (ath9k_ioread32+0x0/0x140 [ath9k]) from [<bf1b9f80>] (ath9k_hw_set_interrupts+0x1b8/0x418 [ath9k])
 r7:00000000 r6:c1158000 r5:00000000 r4:882dbeef
[<bf1b9dc8>] (ath9k_hw_set_interrupts+0x0/0x418 [ath9k]) from [<bf1d1e60>] (ath9k_stop+0x78/0x14c [ath9k])
[<bf1d1de8>] (ath9k_stop+0x0/0x14c [ath9k]) from [<bf07d72c>] (ieee80211_stop+0x32c/0x570 [mac80211])
 r6:00000000 r5:c1cba180 r4:00000000
[<bf07d400>] (ieee80211_stop+0x0/0x570 [mac80211]) from [<c0664f50>] (dev_close+0x88/0xbc)
 r8:c17cde60 r7:00001003 r6:00001002 r5:bf095308 r4:c1079000
[<c0664ec8>] (dev_close+0x0/0xbc) from [<c0664d18>] (dev_change_flags+0x80/0x180)
 r5:c1079000 r4:00000001
[<c0664c98>] (dev_change_flags+0x0/0x180) from [<c06ae93c>] (devinet_ioctl+0x684/0x74c)
 r7:00008914 r6:c077a83c r5:c17cc000 r4:becd9ca0
[<c06ae2b8>] (devinet_ioctl+0x0/0x74c) from [<c06af384>] (inet_ioctl+0x1bc/0x1f4)
[<c06af1c8>] (inet_ioctl+0x0/0x1f4) from [<c0655e04>] (sock_ioctl+0xdc/0x27c)
[<c0655d28>] (sock_ioctl+0x0/0x27c) from [<c058a9fc>] (vfs_ioctl+0x34/0x78)
 r6:00008914 r5:becd9ca0 r4:c1cea0a0
[<c058a9c8>] (vfs_ioctl+0x0/0x78) from [<c058ac7c>] (do_vfs_ioctl+0x210/0x530)
 r5:becd9ca0 r4:00000003
[<c058aa6c>] (do_vfs_ioctl+0x0/0x530) from [<c058afdc>] (sys_ioctl+0x40/0x68)
[<c058af9c>] (sys_ioctl+0x0/0x68) from [<c0519dc0>] (ret_fast_syscall+0x0/0x2c)
 r6:00001002 r5:0005c4b8 r4:0005c4b8
---[ end trace 9aa2912c945f3c8e ]---
ath9k: *** AR_IMR_S5: ((0xdeadbeef & ~(0x10)) | 0x0) => 0xdeadbeef in ath9k_hw_set_interrupts
------------[ cut here ]------------
WARNING: at /openwrt/ixp4xx/build_dir/linux-ixp4xx_generic/compat-wireless-2009-05-20/drivers/net/wireless/ath/ath9k/hw.c:3138 warn_slowpath_null+0x18/0x20()
Modules linked in: ath9k nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath mac80211 cfg80211 crc_ccitt arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress aead crypto_algapi [last unloaded: ath9k]
Backtrace: 
[<c051d308>] (dump_backtrace+0x0/0x114) from [<c051d768>] (dump_stack+0x18/0x1c)
 r6:00000c42 r5:bf1ef6d8 r4:c17cdc4d
[<c051d750>] (dump_stack+0x0/0x1c) from [<c052aaf0>] (warn_slowpath_fmt+0x74/0x90)
[<c052aa7c>] (warn_slowpath_fmt+0x0/0x90) from [<c052ab24>] (warn_slowpath_null+0x18/0x20)
 r3:c06d7398 r2:c072db80
 r7:00000000 r6:c1158000 r5:00000000 r4:deadbeef
[<c052ab0c>] (warn_slowpath_null+0x0/0x20) from [<bf1ba1a0>] (ath9k_hw_set_interrupts+0x3d8/0x418 [ath9k])
[<bf1b9dc8>] (ath9k_hw_set_interrupts+0x0/0x418 [ath9k]) from [<bf1d1e60>] (ath9k_stop+0x78/0x14c [ath9k])
[<bf1d1de8>] (ath9k_stop+0x0/0x14c [ath9k]) from [<bf07d72c>] (ieee80211_stop+0x32c/0x570 [mac80211])
 r6:00000000 r5:c1cba180 r4:00000000
[<bf07d400>] (ieee80211_stop+0x0/0x570 [mac80211]) from [<c0664f50>] (dev_close+0x88/0xbc)
 r8:c17cde60 r7:00001003 r6:00001002 r5:bf095308 r4:c1079000
[<c0664ec8>] (dev_close+0x0/0xbc) from [<c0664d18>] (dev_change_flags+0x80/0x180)
 r5:c1079000 r4:00000001
[<c0664c98>] (dev_change_flags+0x0/0x180) from [<c06ae93c>] (devinet_ioctl+0x684/0x74c)
 r7:00008914 r6:c077a83c r5:c17cc000 r4:becd9ca0
[<c06ae2b8>] (devinet_ioctl+0x0/0x74c) from [<c06af384>] (inet_ioctl+0x1bc/0x1f4)
[<c06af1c8>] (inet_ioctl+0x0/0x1f4) from [<c0655e04>] (sock_ioctl+0xdc/0x27c)
[<c0655d28>] (sock_ioctl+0x0/0x27c) from [<c058a9fc>] (vfs_ioctl+0x34/0x78)
 r6:00008914 r5:becd9ca0 r4:c1cea0a0
[<c058a9c8>] (vfs_ioctl+0x0/0x78) from [<c058ac7c>] (do_vfs_ioctl+0x210/0x530)
 r5:becd9ca0 r4:00000003
[<c058aa6c>] (do_vfs_ioctl+0x0/0x530) from [<c058afdc>] (sys_ioctl+0x40/0x68)
[<c058af9c>] (sys_ioctl+0x0/0x68) from [<c0519dc0>] (ret_fast_syscall+0x0/0x2c)
 r6:00001002 r5:0005c4b8 r4:0005c4b8
---[ end trace 9aa2912c945f3c8f ]---
[...]

... but this is far from a normal usage.

Regards,
Gabor

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
       [not found]   ` <BLU0-SMTP51AE280656D73570BC12FEB3570@phx.gbl>
@ 2009-05-26 18:08     ` Luis R. Rodriguez
  0 siblings, 0 replies; 11+ messages in thread
From: Luis R. Rodriguez @ 2009-05-26 18:08 UTC (permalink / raw)
  To: Rob van Rijen; +Cc: Luis Rodriguez, linux-wireless, vasanth

On Sat, May 23, 2009 at 03:34:52PM -0700, Rob van Rijen wrote:
> Hi Luis
> 
> I managed to get the output you asked for.
> 
> System  EEE PC 1000H with AR9280
> Linux           OpenSuse 11.1, using KNetworkmanager / KDE4
> Kernel  2.6.30-rc6-git3-25-default
> Ath9k   compat-wireless-2009-05-23
> 
> The system freeze occurs within a few seconds after I connect to a WPA2
> wireless N router (Linksys WAG160N).
> With versions < compat-wireless-2009-05-17 I never could connect
> (disassociating by local choice (reason=3))
> 
> Regards
> Rob
> 
> ============================================================================
> =========
> [  132.542465] console [netcon0] enabled
> [  132.542527] netconsole: network logging started
> [  357.092325] wlan0: authenticate with AP 00:21:29:79:c0:84
> [  357.109905] wlan0: authenticated
> [  357.109962] wlan0: associate with AP 00:21:29:79:c0:84
> [  357.114820] wlan0: RX AssocResp from 00:21:29:79:c0:84 (capab=0x431
> status=0 aid=1)
> [  357.114893] wlan0: associated
> [  358.311927] padlock: VIA PadLock not detected.
> [  412.422746] ------------[ cut here ]------------
> [  412.422809] kernel BUG at
> /home/robvr/Downloads/compat-wireless-2009-05-23/drivers/net/wireless/ath/at
> h9k/rc.c:747!

Thanks, yes, I have seen this as well, please try this patch, it splits out
the ASSERT into 3 pieces and also downgrades it to a WARN_ON.

diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c
index ba06e78..a372e35 100644
--- a/drivers/net/wireless/ath/ath9k/rc.c
+++ b/drivers/net/wireless/ath/ath9k/rc.c
@@ -741,10 +741,27 @@ static u8 ath_rc_ratefind_ht(struct ath_softc *sc,
 	if (rate > (ath_rc_priv->rate_table_size - 1))
 		rate = ath_rc_priv->rate_table_size - 1;
 
-	ASSERT((rate_table->info[rate].valid &&
-		(ath_rc_priv->ht_cap & WLAN_RC_DS_FLAG)) ||
-	       (rate_table->info[rate].valid_single_stream &&
+	/*
+	 * Getting any of these warnings would indicate an incorrect assumption
+	 * is currently being made with our rate control code. It would
+	 * indicate, most likely, that the incorrect rate table is being used.
+	 */
+
+	/* We shouldn't be passing up invalid rates */
+	WARN_ON(!rate_table->info[rate].valid &&
+		!rate_table->info[rate].valid_single_stream);
+	/*
+	 * We warn if the rate is deemed to be valid and yet
+	 * not suitable for dual stream.
+	 */
+	WARN_ON((rate_table->info[rate].valid &&
 		!(ath_rc_priv->ht_cap & WLAN_RC_DS_FLAG)));
+	/*
+	 * We also warn if the rate has been marked valid for single
+	 * stream but also dual stream...
+	 */
+	WARN_ON((rate_table->info[rate].valid_single_stream &&
+		(ath_rc_priv->ht_cap & WLAN_RC_DS_FLAG)));
 
 	return rate;
 }

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-05-26 18:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-17 20:18 [ath9k-devel] EEE PC with AR9280 using N mode with WPA2 Rob van Rijen
2009-05-18 16:00 ` Luis R. Rodriguez
     [not found]   ` <BLU0-SMTP51AE280656D73570BC12FEB3570@phx.gbl>
2009-05-26 18:08     ` Luis R. Rodriguez
2009-05-18 20:35 ` Gabor Juhos
2009-05-18 21:16   ` Luis R. Rodriguez
2009-05-19  8:57     ` Gabor Juhos
2009-05-19  7:20   ` Jouni Malinen
2009-05-19 10:45     ` Gabor Juhos
2009-05-19 14:10       ` Jouni Malinen
2009-05-19 19:07         ` Gabor Juhos
2009-05-20 19:41           ` Gabor Juhos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.