nl80211: MBSSID and EMA support in AP mode
authorJohn Crispin <john@phrozen.org>
Thu, 16 Sep 2021 02:54:34 +0000 (19:54 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Sep 2021 13:33:03 +0000 (15:33 +0200)
commitdc1e3cb8da8b414b37208b2fb6755fef8122504b
tree9dbfa9ed546e3a0bc72f906466b22450cdc22317
parent05075fe7455a210769b266e62a0040ddc98b2739
nl80211: MBSSID and EMA support in AP mode

Add new attributes to configure support for multiple BSSID
and advanced multi-BSSID advertisements (EMA) in AP mode.

- NL80211_ATTR_MBSSID_CONFIG used for per interface configuration.
- NL80211_ATTR_MBSSID_ELEMS used to MBSSID elements for beacons.

Memory for the elements is allocated dynamically. This change frees
the memory in existing functions which call nl80211_parse_beacon(),
a comment is added to indicate the new references to do the same.

Signed-off-by: John Crispin <john@phrozen.org>
Co-developed-by: Aloka Dixit <alokad@codeaurora.org>
Signed-off-by: Aloka Dixit <alokad@codeaurora.org>
Link: https://lore.kernel.org/r/20210916025437.29138-2-alokad@codeaurora.org
[don't leave ERR_PTR hanging around]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c