Search Linux Wireless

Re: [PATCH 1/2] mac80211: add suspend/resume callbacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux