From: Mahesh Palivela <maheshp@posedge.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: <linux-wireless@vger.kernel.org>,
Johannes Berg <johannes.berg@intel.com>
Subject: Re: [PATCH 2/3] mac80211: support VHT association
Date: Tue, 27 Nov 2012 17:42:25 +0530 [thread overview]
Message-ID: <50B4AE29.3040600@posedge.com> (raw)
In-Reply-To: <1353939915-25121-3-git-send-email-johannes@sipsolutions.net>
On 11/26/2012 07:55 PM, Johannes Berg wrote:
> +static u8 ieee80211_ht_vht_rx_chains(struct ieee80211_sub_if_data *sdata,
> + struct cfg80211_bss *cbss)
> +{
> + struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
> + const u8 *ht_cap_ie, *vht_cap_ie;
> + const struct ieee80211_ht_cap *ht_cap;
> + const struct ieee80211_vht_cap *vht_cap;
> + u8 chains = 1;
> +
> + if (ifmgd->flags & IEEE80211_STA_DISABLE_HT)
> + return chains;
> +
> + ht_cap_ie = cfg80211_find_ie(WLAN_EID_HT_CAPABILITY,
> + cbss->information_elements,
> + cbss->len_information_elements);
> + if (ht_cap_ie && ht_cap_ie[1] >= sizeof(*ht_cap)) {
> + ht_cap = (void *)(ht_cap_ie + 2);
> + chains = ieee80211_mcs_to_chains(&ht_cap->mcs);
> + /*
> + * TODO: use "Tx Maximum Number Spatial Streams Supported" and
> + * "Tx Unequal Modulation Supported" fields.
> + */
> +
> + }
> +
> + if (ifmgd->flags & IEEE80211_STA_DISABLE_VHT)
> + return chains;
> +
> +
> + vht_cap_ie = cfg80211_find_ie(WLAN_EID_VHT_CAPABILITY,
> + cbss->information_elements,
> + cbss->len_information_elements);
> + if (vht_cap_ie && vht_cap_ie[1] >= sizeof(*vht_cap)) {
> + u8 nss;
> + u16 tx_mcs_map;
> +
> + vht_cap = (void *)(vht_cap_ie + 2);
> + tx_mcs_map = le16_to_cpu(vht_cap->supp_mcs.tx_mcs_map);
Guess we should take rx_mcs_map as we are determining vht_rx_chains?
Thanks,
Mahesh
next prev parent reply other threads:[~2012-11-27 12:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-26 14:25 [PATCH 0/3] mac80211: VHT managed mode & radiotap support Johannes Berg
2012-11-26 14:25 ` [PATCH 1/3] cfg80211: rework chandef checking and export it Johannes Berg
2012-11-26 14:25 ` [PATCH 2/3] mac80211: support VHT association Johannes Berg
2012-11-27 12:12 ` Mahesh Palivela [this message]
2012-11-27 12:44 ` Johannes Berg
2012-11-26 14:25 ` [PATCH 3/3] mac80211: support (partial) VHT radiotap information Johannes Berg
2012-11-28 12:24 ` [PATCH 0/3] mac80211: VHT managed mode & radiotap support Johannes Berg
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=50B4AE29.3040600@posedge.com \
--to=maheshp@posedge.com \
--cc=johannes.berg@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 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.