From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabor Juhos Date: Tue, 19 May 2009 10:57:37 +0200 Subject: [ath9k-devel] EEE PC with AR9280 using N mode with WPA2 In-Reply-To: <43e72e890905181416h38cc6f62t216d65c64722ea4e@mail.gmail.com> References: <4A11C68F.5060108@openwrt.org> <43e72e890905181416h38cc6f62t216d65c64722ea4e@mail.gmail.com> Message-ID: <4A127481.3010608@openwrt.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Luis R. Rodriguez ?rta: > On Mon, May 18, 2009 at 1:35 PM, Gabor Juhos 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: >> [] (dump_backtrace+0x0/0x114) from [] (dump_stack+0x18/0x1c) >> r6:00000078 r5:bf1edf68 r4:c0751d05 >> [] (dump_stack+0x0/0x1c) from [] (warn_slowpath_fmt+0x74/0x90) >> [] (warn_slowpath_fmt+0x0/0x90) from [] (warn_slowpath_null+0x18/0x20) >> r3:c06d1398 r2:c0727b80 >> r7:00000000 r6:000080ec r5:c1100000 r4:deadbeef >> [] (warn_slowpath_null+0x0/0x20) from [] (ath9k_ioread32+0xc0/0x140 [ath9k]) >> [] (ath9k_ioread32+0x0/0x140 [ath9k]) from [] (ath9k_hw_ani_monitor+0x5c/0x454 [ath9k]) >> r7:00000000 r6:c11015d4 r5:c1100000 r4:000015d0 >> [] (ath9k_hw_ani_monitor+0x0/0x454 [ath9k]) from [] (ath_ani_calibrate+0x168/0x250 [ath9k]) >> r8:00000000 r7:00000000 r6:c1100000 r5:c1cba954 r4:fffc0ba8 >> [] (ath_ani_calibrate+0x0/0x250 [ath9k]) from [] (run_timer_softirq+0x178/0x1f0) >> [] (run_timer_softirq+0x0/0x1f0) from [] (__do_softirq+0x78/0x10c) >> [] (__do_softirq+0x0/0x10c) from [] (irq_exit+0x48/0x50) >> [] (irq_exit+0x0/0x50) from [] (_text+0x64/0x74) >> [] (_text+0x0/0x74) from [] (__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 >> [] (cpu_idle+0x0/0x58) from [] (rest_init+0x58/0x6c) >> r6:c0511ec0 r5:c076812c r4:c076f6e8 >> [] (rest_init+0x0/0x6c) from [] (start_kernel+0x1fc/0x2c8) >> [] (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: >> [] (dump_backtrace+0x0/0x114) from [] (dump_stack+0x18/0x1c) >> r6:00000078 r5:bf1edf68 r4:c0751d35 >> [] (dump_stack+0x0/0x1c) from [] (warn_slowpath_fmt+0x74/0x90) >> [] (warn_slowpath_fmt+0x0/0x90) from [] (warn_slowpath_null+0x18/0x20) >> r3:c06d1398 r2:c0727b80 >> r7:40c00000 r6:000000ac r5:c1100000 r4:deadbeef >> [] (warn_slowpath_null+0x0/0x20) from [] (ath9k_ioread32+0xc0/0x140 [ath9k]) >> [] (ath9k_ioread32+0x0/0x140 [ath9k]) from [] (ath9k_hw_set_interrupts+0x158/0x340 [ath9k]) >> r7:40c00000 r6:c1100000 r5:918414b4 r4:f4041171 >> [] (ath9k_hw_set_interrupts+0x0/0x340 [ath9k]) from [] (ath9k_tasklet+0x44/0x108 [ath9k]) >> [] (ath9k_tasklet+0x0/0x108 [ath9k]) from [] (tasklet_action+0x78/0xe8) >> r6:c076cde0 r5:c075b5c4 r4:00000000 >> [] (tasklet_action+0x0/0xe8) from [] (__do_softirq+0x78/0x10c) >> r6:00000014 r5:c076ce20 r4:00000001 >> [] (__do_softirq+0x0/0x10c) from [] (irq_exit+0x48/0x50) >> [] (irq_exit+0x0/0x50) from [] (_text+0x64/0x74) >> [] (_text+0x0/0x74) from [] (__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 >> [] (cpu_idle+0x0/0x58) from [] (rest_init+0x58/0x6c) >> r6:c0511ec0 r5:c076812c r4:c076f6e8 >> [] (rest_init+0x0/0x6c) from [] (start_kernel+0x1fc/0x2c8) >> [] (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: >> [] (dump_backtrace+0x0/0x114) from [] (dump_stack+0x18/0x1c) >> r6:00000078 r5:bf1edf68 r4:c0751d35 >> [] (dump_stack+0x0/0x1c) from [] (warn_slowpath_fmt+0x74/0x90) >> [] (warn_slowpath_fmt+0x0/0x90) from [] (warn_slowpath_null+0x18/0x20) >> r3:c06d1398 r2:c0727b80 >> r7:40c00000 r6:000000b8 r5:c1100000 r4:deadbeef >> [] (warn_slowpath_null+0x0/0x20) from [] (ath9k_ioread32+0xc0/0x140 [ath9k]) >> [] (ath9k_ioread32+0x0/0x140 [ath9k]) from [] (ath9k_hw_set_interrupts+0x1cc/0x340 [ath9k]) >> r7:40c00000 r6:c1100000 r5:918414b4 r4:f4041171 >> [] (ath9k_hw_set_interrupts+0x0/0x340 [ath9k]) from [] (ath9k_tasklet+0x44/0x108 [ath9k]) >> [] (ath9k_tasklet+0x0/0x108 [ath9k]) from [] (tasklet_action+0x78/0xe8) >> r6:c076cde0 r5:c075b5c4 r4:00000000 >> [] (tasklet_action+0x0/0xe8) from [] (__do_softirq+0x78/0x10c) >> r6:00000014 r5:c076ce20 r4:00000001 >> [] (__do_softirq+0x0/0x10c) from [] (irq_exit+0x48/0x50) >> [] (irq_exit+0x0/0x50) from [] (_text+0x64/0x74) >> [] (_text+0x0/0x74) from [] (__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 >> [] (cpu_idle+0x0/0x58) from [] (rest_init+0x58/0x6c) >> r6:c0511ec0 r5:c076812c r4:c076f6e8 >> [] (rest_init+0x0/0x6c) from [] (start_kernel+0x1fc/0x2c8) >> [] (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