linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Mahesh Palivela <maheshp@posedge.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"linville@tuxdriver.com" <linville@tuxdriver.com>
Subject: Re: [PATCH v2] mac80211: VHT peer STA caps
Date: Mon, 24 Sep 2012 10:59:14 +0200	[thread overview]
Message-ID: <1348477154.10257.2.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <952C5D5D0470AE4FB7D8A75C6ADC71CA0FCF5269@mbx022-e1-nj-10.exch022.domain.local>

On Mon, 2012-09-24 at 03:57 +0000, Mahesh Palivela wrote:
> From: Mahesh Palivela <maheshp@posedge.com>
> 
> To save peer STA VHT capabilities in mac80211.
> 
> Signed-off-by: Mahesh Palivela <maheshp@posedge.com>
> ---
> Taken care of Johannes comments in patch v1


> +void ieee80211_vht_cap_ie_to_sta_vht_cap(struct ieee80211_sub_if_data *sdata,
> +					 struct ieee80211_supported_band *sband,
> +					 struct ieee80211_vht_cap *vht_cap_ie,
> +					 struct ieee80211_sta_vht_cap *vht_cap)
> +{
> +	if (WARN_ON_ONCE(!vht_cap))
> +		return;
> +
> +	memset(vht_cap, 0, sizeof(*vht_cap));
> +
> +	if (!vht_cap_ie || !sband->vht_cap.vht_supported)
> +		return;
> +
> +	vht_cap->vht_supported = true;
> +
> +	vht_cap->cap = le16_to_cpu(vht_cap_ie->vht_cap_info); 
> +

Well I think it'd be better to actually restrict/copy/update the feature
bits correctly, this would simplify drivers.

johannes


  reply	other threads:[~2012-09-24  8:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-24  3:57 [PATCH v2] mac80211: VHT peer STA caps Mahesh Palivela
2012-09-24  8:59 ` Johannes Berg [this message]
2012-09-25  5:26   ` Mahesh Palivela
2012-09-25  7:25     ` Johannes Berg
2012-09-25  9:49       ` Mahesh Palivela
2012-09-25 14:09         ` Johannes Berg
2012-09-26  3:15           ` Mahesh Palivela
2012-09-26 11:53             ` Johannes Berg
2012-09-26 17:22               ` Mahesh Palivela
2012-09-26 17:53                 ` Johannes Berg
2012-09-27  3:23                   ` Mahesh Palivela
2012-09-27  6:24                     ` Johannes Berg
2012-09-27  6:34                       ` Mahesh Palivela
2012-09-27  7:01                         ` Johannes Berg
2012-09-27  7:21                           ` 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=1348477154.10257.2.camel@jlt4.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 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).