mbssid: Configure parameters and element data

Add helper functions to retrieve the context for the transmitting
interfaces of the MBSSID set and the index of a given BSS.

Set device parameters: BSS index and the transmitting BSS.

Include Multiple BSSID elements in Beacon and Probe Response frames.

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Co-developed-by: John Crispin <john@phrozen.org>
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
Aloka Dixit 2022-11-30 19:18:38 -08:00 committed by Jouni Malinen
parent c5a09b051a
commit a004bf2cd0
2 changed files with 115 additions and 2 deletions

View file

@ -1635,6 +1635,42 @@ struct wpa_driver_ap_params {
* Unsolicited broadcast Probe Response template length
*/
size_t unsol_bcast_probe_resp_tmpl_len;
/**
* mbssid_tx_iface - Transmitting interface of the MBSSID set
*/
const char *mbssid_tx_iface;
/**
* mbssid_index - The index of this BSS in the MBSSID set
*/
unsigned int mbssid_index;
/**
* mbssid_elem - Buffer containing all MBSSID elements
*/
u8 *mbssid_elem;
/**
* mbssid_elem_len - Total length of all MBSSID elements
*/
size_t mbssid_elem_len;
/**
* mbssid_elem_count - The number of MBSSID elements
*/
u8 mbssid_elem_count;
/**
* mbssid_elem_offset - Offsets to elements in mbssid_elem.
* Kernel will use these offsets to generate multiple BSSID beacons.
*/
u8 **mbssid_elem_offset;
/**
* ema - Enhanced MBSSID advertisements support.
*/
bool ema;
};
struct wpa_driver_mesh_bss_params {