linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Account HT Control field also in Data frame hdrlen according to 802.11n-2009
@ 2010-01-18 14:04 Andriy Tkachuk
  2010-01-18 22:03 ` Benoit PAPILLAULT
  2010-01-19 17:49 ` Luis R. Rodriguez
  0 siblings, 2 replies; 5+ messages in thread
From: Andriy Tkachuk @ 2010-01-18 14:04 UTC (permalink / raw)
  To: linux-wireless; +Cc: John W. Linville

diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 8427019..1998495 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -138,6 +138,8 @@
 #define IEEE80211_WMM_IE_STA_QOSINFO_SP_MASK   0x03
 #define IEEE80211_WMM_IE_STA_QOSINFO_SP_SHIFT  5

+#define IEEE80211_HT_CTL_LEN           4
+
 struct ieee80211_hdr {
        __le16 frame_control;
        __le16 duration_id;
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 23557c1..be2ab8c 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -227,8 +227,11 @@ unsigned int ieee80211_hdrlen(__le16 fc)
        if (ieee80211_is_data(fc)) {
                if (ieee80211_has_a4(fc))
                        hdrlen = 30;
-               if (ieee80211_is_data_qos(fc))
+               if (ieee80211_is_data_qos(fc)) {
                        hdrlen += IEEE80211_QOS_CTL_LEN;
+                       if (ieee80211_has_order(fc))
+                               hdrlen += IEEE80211_HT_CTL_LEN;
+               }
                goto out;
        }




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: Account HT Control field also in Data frame hdrlen according to 802.11n-2009
  2010-01-18 14:04 Account HT Control field also in Data frame hdrlen according to 802.11n-2009 Andriy Tkachuk
@ 2010-01-18 22:03 ` Benoit PAPILLAULT
  2010-01-19 17:49 ` Luis R. Rodriguez
  1 sibling, 0 replies; 5+ messages in thread
From: Benoit PAPILLAULT @ 2010-01-18 22:03 UTC (permalink / raw)
  To: Andriy Tkachuk; +Cc: linux-wireless, John W. Linville

Andriy Tkachuk a écrit :
> diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
> index 8427019..1998495 100644
> --- a/include/linux/ieee80211.h
> +++ b/include/linux/ieee80211.h
> @@ -138,6 +138,8 @@
>  #define IEEE80211_WMM_IE_STA_QOSINFO_SP_MASK   0x03
>  #define IEEE80211_WMM_IE_STA_QOSINFO_SP_SHIFT  5
>
> +#define IEEE80211_HT_CTL_LEN           4
> +
>  struct ieee80211_hdr {
>         __le16 frame_control;
>         __le16 duration_id;
> diff --git a/net/wireless/util.c b/net/wireless/util.c
> index 23557c1..be2ab8c 100644
> --- a/net/wireless/util.c
> +++ b/net/wireless/util.c
> @@ -227,8 +227,11 @@ unsigned int ieee80211_hdrlen(__le16 fc)
>         if (ieee80211_is_data(fc)) {
>                 if (ieee80211_has_a4(fc))
>                         hdrlen = 30;
> -               if (ieee80211_is_data_qos(fc))
> +               if (ieee80211_is_data_qos(fc)) {
>                         hdrlen += IEEE80211_QOS_CTL_LEN;
> +                       if (ieee80211_has_order(fc))
> +                               hdrlen += IEEE80211_HT_CTL_LEN;
> +               }
>                 goto out;
>         }
>
>
>
> --
> 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
>
>   
Nice! Acked-by : Benoit Papillault <benoit.papillault@free.fr>

Regards,
Benoit



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Account HT Control field also in Data frame hdrlen according to 802.11n-2009
  2010-01-18 14:04 Account HT Control field also in Data frame hdrlen according to 802.11n-2009 Andriy Tkachuk
  2010-01-18 22:03 ` Benoit PAPILLAULT
@ 2010-01-19 17:49 ` Luis R. Rodriguez
  2010-01-20  7:39   ` Holger Schurig
  2010-01-20  9:24   ` Andriy Tkachuk
  1 sibling, 2 replies; 5+ messages in thread
From: Luis R. Rodriguez @ 2010-01-19 17:49 UTC (permalink / raw)
  To: Andriy Tkachuk; +Cc: linux-wireless, John W. Linville

On Mon, Jan 18, 2010 at 6:04 AM, Andriy Tkachuk
<andriy.v.tkachuk@globallogic.com> wrote:
> diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h

The commit log entry is empty. Can you describe what this fixes
verbally and if its a critical fix or not, if it is, its important to
know whether or not to propagate this to stable, so please explain its
impact and what the behavior was before this.

Also please prefix your e-mails with [PATCH].

  Luis
> index 8427019..1998495 100644
> --- a/include/linux/ieee80211.h
> +++ b/include/linux/ieee80211.h
> @@ -138,6 +138,8 @@
>  #define IEEE80211_WMM_IE_STA_QOSINFO_SP_MASK   0x03
>  #define IEEE80211_WMM_IE_STA_QOSINFO_SP_SHIFT  5
>
> +#define IEEE80211_HT_CTL_LEN           4
> +
>  struct ieee80211_hdr {
>        __le16 frame_control;
>        __le16 duration_id;
> diff --git a/net/wireless/util.c b/net/wireless/util.c
> index 23557c1..be2ab8c 100644
> --- a/net/wireless/util.c
> +++ b/net/wireless/util.c
> @@ -227,8 +227,11 @@ unsigned int ieee80211_hdrlen(__le16 fc)
>        if (ieee80211_is_data(fc)) {
>                if (ieee80211_has_a4(fc))
>                        hdrlen = 30;
> -               if (ieee80211_is_data_qos(fc))
> +               if (ieee80211_is_data_qos(fc)) {
>                        hdrlen += IEEE80211_QOS_CTL_LEN;
> +                       if (ieee80211_has_order(fc))
> +                               hdrlen += IEEE80211_HT_CTL_LEN;
> +               }
>                goto out;
>        }
>
>
>
> --
> 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
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Account HT Control field also in Data frame hdrlen according to  802.11n-2009
  2010-01-19 17:49 ` Luis R. Rodriguez
@ 2010-01-20  7:39   ` Holger Schurig
  2010-01-20  9:24   ` Andriy Tkachuk
  1 sibling, 0 replies; 5+ messages in thread
From: Holger Schurig @ 2010-01-20  7:39 UTC (permalink / raw)
  To: linux-wireless; +Cc: Luis R. Rodriguez, Andriy Tkachuk, John W. Linville

> Also please prefix your e-mails with [PATCH].

And add a Signed-off-by-line, after you understood it's 
implications, see linux/Documentation/SubmittingPatches for more 
info.

-- 
http://www.holgerschurig.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Account HT Control field also in Data frame hdrlen according to 802.11n-2009
  2010-01-19 17:49 ` Luis R. Rodriguez
  2010-01-20  7:39   ` Holger Schurig
@ 2010-01-20  9:24   ` Andriy Tkachuk
  1 sibling, 0 replies; 5+ messages in thread
From: Andriy Tkachuk @ 2010-01-20  9:24 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless, John W. Linville

On 2010-01-19 19:49, Luis R. Rodriguez wrote:
> The commit log entry is empty.

Sorry, I thought it will be obvious from the $subj

> Can you describe what this fixes
> verbally and if its a critical fix or not, if it is, its important to
> know whether or not to propagate this to stable,

I would say it is rather feature then a fix. It just makes
ieee80211_hdrlen() to account new HT Control field in 802.11 header of
data frames introduced by IEEE 802.11n-2009 standard. That's it.

>  so please explain its
> impact and what the behavior was before this.
>   

According to 802.11n-2009 standard HT Control field is present in data
frames when both following items are true:

   1. It is QoS data frame.
   2. Order bit is 1 in Frame Control field.

The change might be totally compatible with legacy non-11n aware frames,
because 802.11-2007 standard states that for all QoS frames (i.e.
non-11n frames) Order bit must be set to zero.

> Also please prefix your e-mails with [PATCH].
>   

Sorry, just forgot to do this. Hope, next time it will be better. :)

Thanks a lot for attention!

    Andriy

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-20  9:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-18 14:04 Account HT Control field also in Data frame hdrlen according to 802.11n-2009 Andriy Tkachuk
2010-01-18 22:03 ` Benoit PAPILLAULT
2010-01-19 17:49 ` Luis R. Rodriguez
2010-01-20  7:39   ` Holger Schurig
2010-01-20  9:24   ` Andriy Tkachuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).