All of lore.kernel.org
 help / color / mirror / Atom feed
* ath9k panic when connecting to 802.11n-enabled AP
@ 2009-03-12  4:41 Vladimir Senkov
  2009-03-12  4:47 ` Sujith
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir Senkov @ 2009-03-12  4:41 UTC (permalink / raw)
  To: linux-wireless

Hi,

I'm new here so I apologize ahead of time if this is a known issue. In
my defense, I did a quick search on the archives.

My client machine (running wireless-testing kernel updated with git
today) panics when connecting to a hostapd access point (also running
ath9k) only when 802.11n is enabled on the access point.
More specifically, here is the hostapd configuration that causes the
client to crash:
ieee80211n=0
ht_capab=[HT40+][SHORT-GI-40][DSSS_CCK-40]

If I disable 802.11n on the access point everything works ok.
Interesting enough, access point machine never crashes. At one point
both access point and client machine ran identical code and client
would always crash while the access point box would stay up. So
upgraded client to the latest and greatest and tried a few versions in
between, this panic has been very consistent. It always panics right
after 1st attempt to associate.

I was able to narrow down the panic to this assert ath_rc_ratefind_ht() in rc.c:
        ASSERT((rate_table->info[rate].valid && !ath_rc_priv->single_stream) ||
               (rate_table->info[rate].valid_single_stream &&
                ath_rc_priv->single_stream));
When I ifdef'ed this assert panic went away and everything sort of
worked (haven't tested it heavily), but the performance dropped to
about 700Kbps. I usually get 10x when 802.11n is off and there is no
panic.

Has anyone else seen this?
I'm not including panic printk's because several routines get inlined
so panic printout points to the ath_get_rate(), but if you disass that
at the right offset you'll see the trap instruction and I'm pretty
sure I am barking up the right assert here :)

Here is the lspci output:
0c:00.0 Network controller [0280]: Atheros Communications, Inc.
Unknown device [168c:002a] (rev 01)

This client is a dell E1705 laptop with mini-pcie.

-- 
Regards,
Vladimir

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

end of thread, other threads:[~2009-03-21  6:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-12  4:41 ath9k panic when connecting to 802.11n-enabled AP Vladimir Senkov
2009-03-12  4:47 ` Sujith
2009-03-12  4:48   ` Sujith
     [not found]   ` <14df1c3e0903122234q50620fc9wd1c917b4e2f6ebac@mail.gmail.com>
2009-03-16  6:03     ` [ath9k-devel] " Sujith
2009-03-16 12:35       ` [ath9k-devel] Slow data rate in 11n when client connects in 20mhz mode Valmantas Palikša
2009-03-16 13:21         ` Jouni Malinen
2009-03-16 13:37           ` Valmantas Paliksa
2009-03-16 18:44           ` Valmantas Palikša
2009-03-16 23:59       ` [ath9k-devel] ath9k panic when connecting to 802.11n-enabled AP Vladimir Senkov
2009-03-17  3:22         ` Sujith
2009-03-20 16:10           ` Vladimir Senkov
2009-03-21  6:56             ` Vladimir Senkov

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.