From: Johannes Berg <johannes@sipsolutions.net>
To: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFCv2 3/6] mac80211: add VHT support for IBSS
Date: Fri, 16 Jan 2015 11:52:54 +0100 [thread overview]
Message-ID: <1421405574.9214.3.camel@sipsolutions.net> (raw)
In-Reply-To: <1421404724-32326-3-git-send-email-janusz.dziedzic@tieto.com> (sfid-20150116_113937_946440_684103C4)
On Fri, 2015-01-16 at 11:38 +0100, Janusz Dziedzic wrote:
> Add VHT80/VHT160 support for IBSS.
> Drivers could activate this feature by
> setting NL80211_FEATURE_VHT_IBSS flag.
>
> Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
> ---
> net/mac80211/ibss.c | 11 +++++++++++
> net/mac80211/ieee80211_i.h | 2 ++
> net/mac80211/util.c | 35 +++++++++++++++++++++++++++++++++++
> 3 files changed, 48 insertions(+)
>
> diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
> index 13b8105..1ffcfab 100644
> --- a/net/mac80211/ibss.c
> +++ b/net/mac80211/ibss.c
> @@ -188,6 +188,15 @@ ieee80211_ibss_build_presp(struct ieee80211_sub_if_data *sdata,
> */
> pos = ieee80211_ie_build_ht_oper(pos, &sband->ht_cap,
> chandef, 0);
> +
> + if (chandef->width != NL80211_CHAN_WIDTH_20 &&
> + chandef->width != NL80211_CHAN_WIDTH_40 &&
> + sband->vht_cap.vht_supported) {
> + pos = ieee80211_ie_build_vht_cap(pos, &sband->vht_cap,
> + sband->vht_cap.cap);
> + pos = ieee80211_ie_build_vht_oper(pos, &sband->vht_cap,
> + chandef);
> + }
> }
>
> if (local->hw.queues >= IEEE80211_NUM_ACS)
> @@ -411,6 +420,8 @@ static void ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
> cfg80211_chandef_create(&chandef, cbss->channel, chan_type);
> break;
> case NL80211_CHAN_WIDTH_40:
> + case NL80211_CHAN_WIDTH_80:
> + case NL80211_CHAN_WIDTH_160:
> cfg80211_chandef_create(&chandef, cbss->channel,
> NL80211_CHAN_WIDTH_20_NOHT);
> chandef.width = sdata->u.ibss.chandef.width;
Hmm. Must you not get a chandef from cfg80211 so you don't need this
weird roundtrip through chandef_create()?
Anyway this is more of the discussion on patch 1.
johannes
next prev parent reply other threads:[~2015-01-16 10:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-16 10:38 [RFCv2 1/6] mac80211: ibss, fix chandef setup for HT40 Janusz Dziedzic
2015-01-16 10:38 ` [RFCv2 2/6] cfg80211: add VHT support for IBSS Janusz Dziedzic
2015-01-16 10:38 ` [RFCv2 3/6] mac80211: " Janusz Dziedzic
2015-01-16 10:52 ` Johannes Berg [this message]
2015-01-16 10:38 ` [RFCv2 4/6] mac80211: IBSS fix scan request Janusz Dziedzic
2015-01-16 10:38 ` [RFCv2 5/6] mac80211: ibss/mesh move bw checking Janusz Dziedzic
2015-01-16 10:38 ` [RFCv2 6/6] mac80211: IBSS setup correctly BW for VHT Janusz Dziedzic
2015-01-16 10:55 ` Johannes Berg
2015-01-16 12:08 ` Janusz Dziedzic
2015-01-16 12:18 ` Johannes Berg
2015-01-16 12:48 ` Janusz Dziedzic
2015-01-16 10:49 ` [RFCv2 1/6] mac80211: ibss, fix chandef setup for HT40 Johannes Berg
2015-01-16 11:24 ` Janusz Dziedzic
2015-01-16 11:47 ` Johannes Berg
2015-01-16 12:18 ` Janusz Dziedzic
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=1421405574.9214.3.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=janusz.dziedzic@tieto.com \
--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.