Linux wireless drivers development
 help / color / mirror / Atom feed
From: "Tomas Winkler" <tomasw@gmail.com>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: linville@tuxdriver.com, johannes@sipsolutions.net,
	yi.zhu@intel.com, linux-wireless@vger.kernel.org,
	"Emmanuel Grumbach" <emmanuel.grumbach@intel.com>
Subject: Re: [PATCH 1/1] mac80211: send action frame when toggling SM PS mode
Date: Mon, 29 Sep 2008 11:33:26 +0300	[thread overview]
Message-ID: <1ba2fa240809290133n79a4e116x6bc205a7b2c81f09@mail.gmail.com> (raw)
In-Reply-To: <43e72e890809290114w5010c397od3d17101db263109@mail.gmail.com>

On Mon, Sep 29, 2008 at 11:14 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Sun, Sep 28, 2008 at 9:14 AM, Tomas Winkler <tomas.winkler@intel.com> wrote:
>> From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
>>
>> This patch makes mac80211 able to send action frames when toggling
>> (SM PS) Spacial Multiplexing Power Save mode.
>
> I have no clue what this is as I haven't yet peeked at this section of
> the draft. If we can provide a brief explanation as to what this is
> would be useful to other developers without access to the 11n draft.
> Even it its just enhancing the comment in the code.

On the way

>> Example:
>> 1.
>> Low lever driver may close some of RX chains in power save mode
>> and needs to announce to AP that a RTS frame is need in order to wake all
>> RX chains, on other hand SM PS can be disabled on CAM mode
>
> What's CAM mode?

Continuously Aware Mode (No power save)

>> or if HW is able
>> to wake all chains without RTS frame.
>
> Should we add a HW capability bit for mac80211 drivers to indicate this?

The patch is in internal  review and testing, will be published soon.

>
>> 2.
>> iwlwifi can call this function when it detects that only
>> one antenna can effectively receive
>
> When would this happen? Would this happen when any 11n mac80211
> capable driver is going to PS mode and it doesn't have the capability
> of detecting when it needs to to turn on its antennas?
>
>> then MS PS
>
> Did you mean SM PS mode?

Typo, will resend the fix.

>> mode is set to STATIC
>
> Can we elaborate a bit on what this vs Dynamic is in the comments if possible?

We cannot copy the whole spec into code :) On the way.

>
>> +static void ieee80211_send_sm_ps(struct ieee80211_sub_if_data *sdata, u8 mode)
>> +{
>> +       struct ieee80211_local *local = sdata->local;
>> +       struct ieee80211_mgmt *mgmt;
>> +       struct sk_buff *skb;
>> +       DECLARE_MAC_BUF(mac);
>> +
>> +       struct ieee80211_if_sta *ifsta = &sdata->u.sta;
>> +       struct net_device *dev = sdata->dev;
>> +
>> +       /* Implemented for STA only */
>> +       if (sdata->vif.type != NL80211_IFTYPE_STATION)
>> +               return;
>
> <-- snip -->
>
>> +       if (ifsta->flags & IEEE80211_STA_ASSOCIATED)
>> +               ieee80211_tx_skb(sdata, skb, 0);
>
> You can move this ending branch above to return early so we don't go
> through the entire routine for no good reason. So something like:
>
>       if (sdata->vif.type != NL80211_IFTYPE_STATION ||
>                      ifsta->flags & IEEE80211_STA_ASSOCIATED)
>               return;
>
>  Luis
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

  reply	other threads:[~2008-09-29  8:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-28 16:14 [PATCH 1/1] mac80211: send action frame when toggling SM PS mode Tomas Winkler
2008-09-28 16:19 ` Johannes Berg
2008-09-28 16:24   ` Tomas Winkler
2008-09-28 16:26     ` Johannes Berg
2008-09-28 16:39       ` Tomas Winkler
2008-09-28 17:21         ` Johannes Berg
2008-10-01 10:40           ` Tomas Winkler
2008-10-01 11:14             ` Luis R. Rodriguez
2008-10-01 18:21               ` Johannes Berg
2008-10-01 18:39                 ` Luis R. Rodriguez
2008-10-01 18:20             ` Johannes Berg
2008-09-29  8:14 ` Luis R. Rodriguez
2008-09-29  8:33   ` Tomas Winkler [this message]
2008-09-29 14:44 ` John W. Linville

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=1ba2fa240809290133n79a4e116x6bc205a7b2c81f09@mail.gmail.com \
    --to=tomasw@gmail.com \
    --cc=emmanuel.grumbach@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mcgrof@gmail.com \
    --cc=yi.zhu@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