From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Rob van Rijen <Rijen2004@hotmail.com>
Cc: Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
<linux-wireless@vger.kernel.org>, <vasanth@atheros.com>
Subject: Re: [ath9k-devel] EEE PC with AR9280 using N mode with WPA2
Date: Tue, 26 May 2009 11:08:53 -0700 [thread overview]
Message-ID: <20090526180853.GE9370@tesla> (raw)
In-Reply-To: <BLU0-SMTP51AE280656D73570BC12FEB3570@phx.gbl>
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;
}
parent reply other threads:[~2009-05-26 18:08 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <BLU0-SMTP51AE280656D73570BC12FEB3570@phx.gbl>]
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=20090526180853.GE9370@tesla \
--to=lrodriguez@atheros.com \
--cc=Luis.Rodriguez@Atheros.com \
--cc=Rijen2004@hotmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=vasanth@atheros.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).