From: Johannes Berg <johannes@sipsolutions.net>
To: John Crispin <john@phrozen.org>
Cc: linux-wireless@vger.kernel.org, Aloka Dixit <alokad@codeaurora.org>
Subject: Re: [PATCH V5 1/4] nl80211: add basic multiple bssid support
Date: Fri, 06 Nov 2020 10:24:37 +0100 [thread overview]
Message-ID: <aea6777ee2f588cf8df26c416ec0cdb2399ff8cf.camel@sipsolutions.net> (raw)
In-Reply-To: <20201103091743.1924854-2-john@phrozen.org>
On Tue, 2020-11-03 at 10:17 +0100, John Crispin wrote:
> +/**
> + * struct ieee80211_multiple_bssid - AP settings for multi bssid
> + *
> + * @index: the index of this AP in the multi bssid group.
> + * @count: the total number of multi bssid peer APs.
> + * @parent: non-transmitted BSSs transmitted parents index
> + * @ema: Shall the beacons be sent out in EMA mode.
> + */
> +struct ieee80211_multiple_bssid {
> + u8 index;
> + u8 count;
> + u32 parent;
> + bool ema;
> +};
> +
Why is that ieee80211_ rather than cfg80211_? We've often (mostly?)
reserved that for spec structs.
> +/**
> + * struct cfg80211_multiple_bssid_data - multiple_bssid data
> + * @ies: array of extra information element(s) to add into Beacon frames for multiple
> + * bssid or %NULL
> + * @len: array of lengths of multiple_bssid.ies in octets
> + * @cnt: number of entries in multiple_bssid.ies
> + */
> +struct cfg80211_multiple_bssid_data {
> + u8 *ies[NL80211_MULTIPLE_BSSID_IES_MAX];
> + size_t len[NL80211_MULTIPLE_BSSID_IES_MAX];
> + int cnt;
> +};
Not sure if this is dynamically allocated but if now we could, and then
we can make that
struct ... {
unsigned int cnt;
struct {
const u8 *data;
size_t len;
} elems[];
};
and get rid of NL80211_MULTIPLE_BSSID_IES_MAX.
> @@ -1072,6 +1101,8 @@ struct cfg80211_beacon_data {
> size_t probe_resp_len;
> size_t lci_len;
> size_t civicloc_len;
> +
> + struct cfg80211_multiple_bssid_data multiple_bssid;
OK, so it's not (right now), but could even be embedded as the
dynamically sized struct here at the end ...
Or maybe keep some for the common case? But I don't think there's any
general limit of 8, so I'm not convinced it makes sense to have such a
(somewhat artificial) limit in nl80211.
> + * @NL80211_ATTR_MULTIPLE_BSSID_PARENT: If this is a Non-Transmitted BSSID, define
> + * the parent (transmitting) interface.
by what, interface index? wdev id?
> + * @NL80211_ATTR_MULTIPLE_BSSID_INDEX: The index of this BSS inside the multi bssid
> + * element.
> + *
> + * @NL80211_ATTR_MULTIPLE_BSSID_COUNT: The number of BSSs inside the multi bssid element.
> + *
> + * @NL80211_ATTR_MULTIPLE_BSSID_IES: The Elements that describe our multiple BSS group.
Might be better called "ELEMS" or something now, since "IE" is no longer
used in the spec.
> + * these get passed separately as the kernel might need to split them up for EMA VAP.
> + *
> + * @NL80211_ATTR_MULTIPLE_BSSID_EMA: Shall the multiple BSS beacons be sent out in EMA mode.
Probably should describe the formats a bit - U32, nested with..., flag,
etc.
> +++ b/net/wireless/nl80211.c
> @@ -715,6 +715,11 @@ static const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
> NLA_POLICY_EXACT_LEN(IEEE80211_S1G_CAPABILITY_LEN),
> [NL80211_ATTR_S1G_CAPABILITY_MASK] =
> NLA_POLICY_EXACT_LEN(IEEE80211_S1G_CAPABILITY_LEN),
> + [NL80211_ATTR_MULTIPLE_BSSID_PARENT] = { .type = NLA_U32 },
> + [NL80211_ATTR_MULTIPLE_BSSID_INDEX] = { .type = NLA_U8 },
> + [NL80211_ATTR_MULTIPLE_BSSID_COUNT] = NLA_POLICY_RANGE(NLA_U8, 1, 16),
Where does the 16 come from?
johannes
next prev parent reply other threads:[~2020-11-06 9:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-03 9:17 [PATCH V5 0/4] mac80211: add multiple bssid support John Crispin
2020-11-03 9:17 ` [PATCH V5 1/4] nl80211: add basic " John Crispin
2020-11-06 9:24 ` Johannes Berg [this message]
2020-11-06 9:26 ` Johannes Berg
2020-11-03 9:17 ` [PATCH V5 2/4] mac80211: add multiple bssid support to interface handling John Crispin
2020-11-03 9:17 ` [PATCH V5 3/4] mac80211: add multiple bssid/EMA support to beacon handling John Crispin
2020-11-06 9:31 ` Johannes Berg
2020-11-03 9:17 ` [PATCH V5 4/4] mac80211: don't allow CSA on non-transmitting interfaces John Crispin
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=aea6777ee2f588cf8df26c416ec0cdb2399ff8cf.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=alokad@codeaurora.org \
--cc=john@phrozen.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox