All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gabor Juhos <juhosg@openwrt.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
Date: Tue, 19 May 2009 10:57:37 +0200	[thread overview]
Message-ID: <4A127481.3010608@openwrt.org> (raw)
In-Reply-To: <43e72e890905181416h38cc6f62t216d65c64722ea4e@mail.gmail.com>

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

  reply	other threads:[~2009-05-19  8:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A127481.3010608@openwrt.org \
    --to=juhosg@openwrt.org \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.