All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Copeland <me@bobcopeland.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/2] mac80211: add suspend/resume callbacks
Date: Mon, 24 Nov 2008 17:29:51 -0500	[thread overview]
Message-ID: <20081124222951.GE30249@hash.localnet> (raw)
In-Reply-To: <1227431953.3599.37.camel@johannes.berg>

On Sun, Nov 23, 2008 at 10:19:13AM +0100, Johannes Berg wrote:

Great, thanks for the feedback!

> > +	/* disable aggregation and notify that STAs are going away */
> 
> I think this should run through interfaces twice, in the first run to
> remove keys, then remove stas and then in the second run remove the
> interfaces, because otherwise you may be having keys left when the sta
> for which the key was has been removed.

Ok, that makes sense.

> > +	/* setup RTS and frag thresholds */
> > +	if (local->ops->set_rts_threshold)
> > +		local->ops->set_rts_threshold(hw, local->rts_threshold);
> > +
> > +	if (local->ops->set_frag_threshold)
> > +		local->ops->set_frag_threshold(hw, 
> > +			local->fragmentation_threshold);
> 
> Heh, I didn't even think of those.

They were in your original email on the website.  I'm not making up too 
much, yet :) 

> What were you thinking of when you said something is missing? I can't
> think of anything right now. And what warnings do you get?

conf_tx was the last callback from your email that I hadn't yet worked in.

Predictably, I got the netif_running() warning on ieee80211_enable_keys,
so hopefully the reordering and checking first will take care of that.

> Resume definitely needs to defer to schedule_work(), I think, but that's
> a trivial change.

Yeah that shouldn't be a problem.
 
-- 
Bob Copeland %% www.bobcopeland.com


  reply	other threads:[~2008-11-24 22:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-23  4:41 [PATCH 1/2] mac80211: add suspend/resume callbacks Bob Copeland
2008-11-23  9:19 ` Johannes Berg
2008-11-24 22:29   ` Bob Copeland [this message]
2008-12-09 15:40   ` Bob Copeland
2008-12-09 15:59     ` Johannes Berg
2008-12-09 16:29       ` Bob Copeland
2008-12-09 16:50         ` Johannes Berg

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=20081124222951.GE30249@hash.localnet \
    --to=me@bobcopeland.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /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.