linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: bruno randolf <bruno@thinktube.com>
Cc: Andrew Lutomirski <luto@myrealbox.com>, linux-wireless@vger.kernel.org
Subject: Re: ath5k oops (recent regression, I think)
Date: Tue, 25 Dec 2007 11:54:24 +0100	[thread overview]
Message-ID: <1198580064.4103.63.camel@johannes.berg> (raw)
In-Reply-To: <200712251804.13693.bruno@thinktube.com>

[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]

Hi,

I'm absolutely unable to read the stack trace you pasted, I just don't
know how to read x86 stack traces as they're usually badly mangled.

> seems ath5k likes to write some rate registers before vif is set up. i used 
> the following as a stopgap fix. johannes, do you have any advice how to 
> properly fix that?

> +       if (sc->vif == NULL) {
> +               printk("*** sc->vif NULL\n");
> +               return;
> +       }
> +

Superficially, this fix looks correct if this function
(ath5k_hw_write_rate_duration) is called before a virtual interface is
brought up or down. I didn't think that would happen so I didn't protect
in mac80211 against it, ieee80211_generic_frame_duration() would have
returned 0 with the original behaviour.

Hence, if you want to restore the original behaviour, do something like

tx_time = 0;
if (sc->vif)
	tx_time = ieee80211_generic_frame_duration(....)

instead at the spot where ieee80211_generic_frame_duration() is used.

I don't think that's correct though and I have no idea why ath5k needs a
frame duration before it has an interface assigned (since it will then
never send a frame), but that's something for the ath5k people to figure
out.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2007-12-25 10:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-25  3:06 ath5k oops (recent regression, I think) Andrew Lutomirski
2007-12-25  9:04 ` bruno randolf
2007-12-25 10:54   ` Johannes Berg [this message]
2007-12-25 14:23   ` Nick Kossifidis
2007-12-26  2:17     ` bruno randolf
2008-01-04  0:02       ` Luis R. Rodriguez
2008-01-04  0:34         ` Johannes Berg
2008-01-04  7:05           ` Luis R. Rodriguez
2007-12-29  2:45     ` Andrew Lutomirski

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=1198580064.4103.63.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=bruno@thinktube.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luto@myrealbox.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).