public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: "Guy, Wey-Yi" <wey-yi.w.guy@intel.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2 1/1] mac80211: tell driver when dtim change detected
Date: Thu, 21 Jan 2010 13:31:33 -0800	[thread overview]
Message-ID: <1264109493.11290.3.camel@wwguy-ubuntu> (raw)
In-Reply-To: <1264106695.11396.77.camel@johannes.local>

On Thu, 2010-01-21 at 12:44 -0800, Johannes Berg wrote:
> On Thu, 2010-01-21 at 12:31 -0800, wey-yi.w.guy@intel.com wrote:
> 
> > --- a/net/mac80211/mlme.c
> > +++ b/net/mac80211/mlme.c
> 
> This is all in mlme.c, so ...
> 
> > +static void ieee80211_update_dtim(struct ieee80211_sub_if_data *sdata,
> > +				  struct ieee80211_local *local,
> > +				  struct ieee80211_bss *bss)
> > +{
> > +	if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_PS))
> > +		return;
> > +
> > +	if (sdata->vif.type == NL80211_IFTYPE_STATION &&
> 
> I don't think you need this check?

yes, that make sense.

> 
> > +	    sdata->vif.bss_conf.dtim_period != bss->dtim_period) {
> > +		sdata->vif.bss_conf.dtim_period = bss->dtim_period;
> > +		ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_PS);
> > +		mutex_lock(&local->iflist_mtx);
> > +		ieee80211_recalc_ps(local, -1);
> > +		mutex_unlock(&local->iflist_mtx);
> 
> And afaict recalc_ps() will call hw_config() if appropriate.
> 
That is the part I am not sure, so I call the hw_config manually, since
you confirm hw_config will happen, then there is no point to call first

I will make those changes and submit again

Wey



      reply	other threads:[~2010-01-21 21:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-21 20:31 [PATCH v2 1/1] mac80211: tell driver when dtim change detected wey-yi.w.guy
2010-01-21 20:44 ` Johannes Berg
2010-01-21 21:31   ` Guy, Wey-Yi [this message]

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=1264109493.11290.3.camel@wwguy-ubuntu \
    --to=wey-yi.w.guy@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox