[PATCH 02/13] mbssid: retrieve driver capabilities
Aloka Dixit
quic_alokad at quicinc.com
Wed Mar 2 14:26:23 PST 2022
Retrieve driver capabilities for maximum number of interfaces for
MBSSID and maximum allowed profile periodicity for enhanced MBSSID
advertisements.
Signed-off-by: Aloka Dixit <quic_alokad at quicinc.com>
---
hostapd/main.c | 3 +++
src/ap/hostapd.h | 5 +++++
src/drivers/driver.h | 5 +++++
3 files changed, 13 insertions(+)
diff --git a/hostapd/main.c b/hostapd/main.c
index c9ec38d19f88..19db9bc446e3 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -240,6 +240,9 @@ static int hostapd_driver_init(struct hostapd_iface *iface)
wpa_printf(MSG_ERROR, "set_wowlan failed");
}
os_free(triggs);
+
+ iface->mbssid_max_interfaces = capa.mbssid_max_interfaces;
+ iface->ema_max_periodicity = capa.ema_max_periodicity;
}
return 0;
diff --git a/src/ap/hostapd.h b/src/ap/hostapd.h
index f3ca7529ac96..def0971cc11f 100644
--- a/src/ap/hostapd.h
+++ b/src/ap/hostapd.h
@@ -596,6 +596,11 @@ struct hostapd_iface {
/* Previous WMM element information */
struct hostapd_wmm_ac_params prev_wmm[WMM_AC_NUM];
+ /* Maximum number of interfaces supported for MBSSID advertisements */
+ u8 mbssid_max_interfaces;
+ /* Maximum profile periodicity for enhanced MBSSID advertisements */
+ u8 ema_max_periodicity;
+
int (*enable_iface_cb)(struct hostapd_iface *iface);
int (*disable_iface_cb)(struct hostapd_iface *iface);
};
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index ebc550fbe630..cf0f2180e704 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -2141,6 +2141,11 @@ struct wpa_driver_capa {
/* Maximum number of supported CSA counters */
u16 max_csa_counters;
+
+ /* Maximum number of interfaces supported for MBSSID advertisements */
+ u8 mbssid_max_interfaces;
+ /* Maximum profile periodicity for enhanced MBSSID advertisements */
+ u8 ema_max_periodicity;
};
--
2.31.1
More information about the Hostap
mailing list