All of lore.kernel.org
 help / color / mirror / Atom feed
From: bruno randolf <bruno@thinktube.com>
To: "Nick Kossifidis" <mickflemm@gmail.com>
Cc: "Andrew Lutomirski" <luto@myrealbox.com>,
	linux-wireless@vger.kernel.org, johannes@sipsolutions.net
Subject: Re: ath5k oops (recent regression, I think)
Date: Wed, 26 Dec 2007 11:17:33 +0900	[thread overview]
Message-ID: <200712261117.33992.bruno@thinktube.com> (raw)
In-Reply-To: <40f31dec0712250623yb2bfeahfa1b7024e1fb67f3@mail.gmail.com>

On Tuesday 25 December 2007 23:23:02 Nick Kossifidis wrote:
> 2007/12/25, bruno randolf <bruno@thinktube.com>:
> > hello!
> >
> > i'm seeing the same oops, it seems to be a regression from
> >
> > commit fd640775bd16e1df50c867cc547af0787f9bd4ab
> > Author: Johannes Berg <johannes@sipsolutions.net>
> > Date:   Wed Dec 19 01:31:26 2007 +0100
> >
> >     mac80211: dont use interface indices in drivers
> >
> > 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?
> >
> > diff --git a/drivers/net/wireless/ath5k/hw.c
> > b/drivers/net/wireless/ath5k/hw.c index f4478f6..2e9f5c5 100644
> > --- a/drivers/net/wireless/ath5k/hw.c
> > +++ b/drivers/net/wireless/ath5k/hw.c
> > @@ -510,6 +510,11 @@ static inline void
> > ath5k_hw_write_rate_duration(struct ath5k_hw *ah,
> >         const struct ath5k_rate_table *rt;
> >         unsigned int i;
> >
> > +       if (sc->vif == NULL) {
> > +               printk("*** sc->vif NULL\n");
> > +               return;
> > +       }
> > +
> >         /* Get rate table for the current operating mode */
> >         rt = ath5k_hw_get_rate_table(ah,
> >                 driver_mode);
> >
> > bruno
>
> Seems right as it doesn't break reset, i was just thinking maybe we
> should pass an "initial" argument on ath5k_hw_reset to also skip some
> other step (eg. saving/restoring tsf/seqnum etc). What do you think ?

sounds like a good idea. 
or/and maybe we can defer the first reset until the first interface is 
assigned? would that be possible?

bruno

  reply	other threads:[~2007-12-26  2:17 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
2007-12-25 14:23   ` Nick Kossifidis
2007-12-26  2:17     ` bruno randolf [this message]
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=200712261117.33992.bruno@thinktube.com \
    --to=bruno@thinktube.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luto@myrealbox.com \
    --cc=mickflemm@gmail.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 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.