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: "Chatre, Reinette" <reinette.chatre@intel.com>,
	"linville@tuxdriver.com" <linville@tuxdriver.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"ipw3945-devel@lists.sourceforge.net"
	<ipw3945-devel@lists.sourceforge.net>
Subject: Re: [PATCH 14/15] iwlwifi: add SM PS support for 6x50 series
Date: Mon, 02 Nov 2009 07:29:33 -0800	[thread overview]
Message-ID: <1257175773.8387.22.camel@wwguy-ubuntu> (raw)
In-Reply-To: <1257017010.3555.139.camel@johannes.local>

On Sat, 2009-10-31 at 12:23 -0700, Johannes Berg wrote:
> On Sat, 2009-10-31 at 10:44 -0700, Guy, Wey-Yi wrote:
> 
> > > >  	ht_info->cap |= IEEE80211_HT_CAP_SGI_20;
> > > > -	ht_info->cap |= (IEEE80211_HT_CAP_SM_PS &
> > > > -			     (WLAN_HT_CAP_SM_PS_DISABLED << 2));
> > > > +	if (priv->cfg->support_sm_ps)
> > > > +		ht_info->cap |= (IEEE80211_HT_CAP_SM_PS &
> > > > +				     (WLAN_HT_CAP_SM_PS_DYNAMIC << 2));
> > > > +	else
> > > > +		ht_info->cap |= (IEEE80211_HT_CAP_SM_PS &
> > > > +				     (WLAN_HT_CAP_SM_PS_DISABLED << 2));
> > > 
> > > here we always and unconditionally advertise dynamic SM-PS mode?
> > 
> > I am confuse, it is based on "priv->cfg->support_sm_ps", so it is not
> > always dynamic SM-PS mode.
> 
> Right, sorry -- but here it _only_ depends on "support_sm_ps", whereas
> 
> > > > +	if (priv->cfg->support_sm_ps) {
> > > > +		/* # Rx chains when idling and maybe trying to save power */
> > > > +		switch (priv->current_ht_config.sm_ps) {
> 
> Here it also depends on current_ht_config.sm_ps, which is not very
> useful. Using the AP setting is wrong, and above, assuming
> "support_sm_ps" [1] is true, this should just always fall into the
> dynamic case so the value "current_ht_config.sm_ps" isn't useful and can
> imho be removed.

Right, I already fix it and not reference to AP's setting. Thanks

> 
> [1] which btw I'd have called "use_sm_ps" since all hardware supports it
> afaik

That is a good point. On the other hand, I think it will make more sense
shoice the sm_ps mode in priv->conf instead of just a boolean value of
"use" or "not" use.

I will submit another patch to fix this.
 


  reply	other threads:[~2009-11-02 15:32 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-30 21:36 [PATCH 00/15] iwlwifi updates 10/30/2009 Reinette Chatre
2009-10-30 21:36 ` [PATCH 01/15] iwlwifi: provide firmware version Reinette Chatre
2009-10-30 21:36 ` [PATCH 02/15] iwlwifi: remove unneeded locks from apm_stop() and stop_master() Reinette Chatre
2009-10-30 21:36 ` [PATCH 03/15] iwlwifi: remove power-wasting calls to apm_ops.init() Reinette Chatre
2009-10-30 21:36 ` [PATCH 04/15] iwlagn: invoke L0S workaround for 6000/1000 series Reinette Chatre
2009-10-30 21:36 ` [PATCH 05/15] iwlagn: Clarify FH_TX interrupt Reinette Chatre
2009-10-30 21:36 ` [PATCH 06/15] iwlagn: update write pointers for all tx queues after wakeup Reinette Chatre
2009-10-30 21:36 ` [PATCH 07/15] iwlwifi: unmap memory before use Reinette Chatre
2009-10-30 21:36 ` [PATCH 08/15] iwlwifi: move iwl_[un]init_drv to iwlagn Reinette Chatre
2009-10-31  5:56   ` Johannes Berg
2009-11-02 17:19     ` reinette chatre
2009-11-02 17:35       ` Johannes Berg
2009-11-02 17:42         ` reinette chatre
2009-10-30 21:36 ` [PATCH 09/15] iwlwifi: split adding broadcast station from others Reinette Chatre
2009-10-30 21:36 ` [PATCH 10/15] iwl3945: store station rate scale information in mac80211 station structure Reinette Chatre
2009-10-30 21:36 ` [PATCH 11/15] iwlagn: move rate scale initialization to init function Reinette Chatre
2009-10-30 21:36 ` [PATCH 12/15] iwlwifi: print warning when sending host command fails Reinette Chatre
2009-10-30 21:36 ` [PATCH 13/15] iwlwifi: coex API data structure Reinette Chatre
2009-10-30 21:36 ` [PATCH 14/15] iwlwifi: add SM PS support for 6x50 series Reinette Chatre
2009-10-31  5:53   ` Johannes Berg
2009-10-31 17:44     ` Guy, Wey-Yi
2009-10-31 19:23       ` Johannes Berg
2009-11-02 15:29         ` Guy, Wey-Yi [this message]
2009-10-30 21:36 ` [PATCH 15/15] iwlwifi: add wimax/wifi coexist " Reinette Chatre

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=1257175773.8387.22.camel@wwguy-ubuntu \
    --to=wey-yi.w.guy@intel.com \
    --cc=ipw3945-devel@lists.sourceforge.net \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=reinette.chatre@intel.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