From: Johannes Berg <johannes@sipsolutions.net>
To: Mahesh Palivela <maheshp@posedge.com>
Cc: "linville@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] cfg80211/mac80211: 802.11ac changes
Date: Thu, 28 Jun 2012 13:07:26 +0200 [thread overview]
Message-ID: <1340881646.4491.41.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <952C5D5D0470AE4FB7D8A75C6ADC71CA0B3E4E@mbx022-e1-nj-10.exch022.domain.local>
Ok I applied some of the changes (see mac80211-next tree), but not the
mac80211 pieces. Please fix:
> + if (supp_vht)
> + local->scan_ies_len += 2 + sizeof(struct ieee80211_vht_capabilities);
too long line
>
> + if (sband->vht_cap.vht_supported)
> + pos = ieee80211_ie_build_vht_cap(pos, &sband->vht_cap,
> + sband->vht_cap.cap);
indentation
> return pos - buffer;
> }
>
> @@ -1696,6 +1700,27 @@ u8 *ieee80211_ie_build_ht_cap(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
> return pos;
> }
>
> +u8 *ieee80211_ie_build_vht_cap(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap,
> + u32 cap)
indentation here & in ieee80211_i.h
> + __le32 tmp;
> +
> + *pos++ = WLAN_EID_VHT_CAPABILITY;
> + *pos++ = sizeof(struct ieee80211_vht_capabilities);
> + memset(pos, 0, sizeof(struct ieee80211_vht_capabilities));
> +
> + /* capability flags */
> + tmp = cpu_to_le16(cap);
> + memcpy(pos, &tmp, sizeof(u32));
> + pos += sizeof(u32);
> +
> + /* VHT MCS set */
> + memcpy(pos, &vht_cap->vht_mcs, sizeof(vht_cap->vht_mcs));
> + pos += sizeof(vht_cap->vht_mcs);
> +
endian issues
johannes
next prev parent reply other threads:[~2012-06-28 11:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-22 7:27 [PATCH] cfg80211/mac80211: 802.11ac changes Mahesh Palivela
2012-06-22 7:35 ` Arend van Spriel
2012-06-22 7:37 ` Johannes Berg
2012-06-22 8:17 ` Johannes Berg
2012-06-22 10:11 ` Mahesh Palivela
2012-06-22 10:41 ` Johannes Berg
2012-06-28 10:52 ` Mahesh Palivela
2012-06-28 11:01 ` Johannes Berg
2012-06-28 11:07 ` Johannes Berg [this message]
2012-06-28 12:39 ` Mahesh Palivela
2012-06-28 12:53 ` Arend van Spriel
2012-06-28 12:56 ` Mahesh Palivela
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=1340881646.4491.41.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=maheshp@posedge.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.