const struct ieee80211_sband_iftype_data *iftype_data;
};
+/**
+ * struct ieee80211_multi_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.
+ */
+struct ieee80211_multi_bssid {
+ u32 index;
+ u32 count;
+};
+
/**
* ieee80211_get_sband_iftype_data - return sband data for a given iftype
* @sband: the sband to search for the STA on
u32 flags;
struct ieee80211_he_obss_pd he_obss_pd;
struct cfg80211_he_bss_color he_bss_color;
+ struct ieee80211_multi_bssid multi_bssid;
};
/**
* @NL80211_ATTR_MULTI_BSSID_PARENT: If this is a Non-Transmitted BSSID, define
* the parent interface.
*
+ * @NL80211_ATTR_MULTI_BSSID_INDEX: The index of this BSS inside the multi bssid
+ * IE.
+ *
+ * @NL80211_ATTR_MULTI_BSSID_COUNT: The number of BSSs inside the multi bssid IE.
+ *
* @NUM_NL80211_ATTR: total number of nl80211_attrs available
* @NL80211_ATTR_MAX: highest attribute number currently defined
* @__NL80211_ATTR_AFTER_LAST: internal use
NL80211_ATTR_MULTI_BSSID_MODE,
NL80211_ATTR_MULTI_BSSID_PARENT,
+ NL80211_ATTR_MULTI_BSSID_INDEX,
+ NL80211_ATTR_MULTI_BSSID_COUNT,
/* add attributes here, update the policy in nl80211.c */
NL80211_MULTIPLE_BSSID_LEGACY,
NL80211_MULTIPLE_BSSID_NON_TRANSMITTED),
[NL80211_ATTR_MULTI_BSSID_PARENT] = { .type = NLA_U32 },
+ [NL80211_ATTR_MULTI_BSSID_INDEX] = { .type = NLA_U32 },
+ [NL80211_ATTR_MULTI_BSSID_COUNT] = { .type = NLA_U32 },
};
/* policy for the key attributes */
!info->attrs[NL80211_ATTR_BEACON_HEAD])
return -EINVAL;
+ if (wdev->multi_bssid_mode == NL80211_MULTIPLE_BSSID_NON_TRANSMITTED &&
+ (!info->attrs[NL80211_ATTR_MULTI_BSSID_INDEX] ||
+ !info->attrs[NL80211_ATTR_MULTI_BSSID_COUNT]))
+ return -EINVAL;
+
err = nl80211_parse_beacon(rdev, info->attrs, ¶ms.beacon);
if (err)
return err;
return err;
}
+ if (info->attrs[NL80211_ATTR_MULTI_BSSID_INDEX])
+ params.multi_bssid.index = nla_get_u32(
+ info->attrs[NL80211_ATTR_MULTI_BSSID_INDEX]);
+
+ if (info->attrs[NL80211_ATTR_MULTI_BSSID_COUNT])
+ params.multi_bssid.count = nla_get_u32(
+ info->attrs[NL80211_ATTR_MULTI_BSSID_COUNT]);
+
nl80211_calculate_ap_params(¶ms);
if (info->attrs[NL80211_ATTR_EXTERNAL_AUTH_SUPPORT])