From: Mohan Raj Date: Mon, 28 Oct 2024 11:22:55 +0000 (+0530) Subject: AP MLD: Show AP MLD Type Indication in STATUS command X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cbbcd3b6ef3ef5c09c4b6a1e1d81a49f0106ff8;p=thirdparty%2Fhostap.git AP MLD: Show AP MLD Type Indication in STATUS command This shows whether the AP MLD is an NSTR mobile AP MLD. Signed-off-by: Mohan Raj --- diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c index be0425fcc..8bc1fa642 100644 --- a/src/ap/ctrl_iface_ap.c +++ b/src/ap/ctrl_iface_ap.c @@ -960,6 +960,15 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf, return len; len += ret; } + + ret = os_snprintf(buf + len, buflen - len, + "ap_mld_type=%s\n", + (hapd->iface->mld_mld_capa & + EHT_ML_MLD_CAPA_AP_MLD_TYPE_IND_MASK) + ? "NSTR" : "STR"); + if (os_snprintf_error(buflen - len, ret)) + return len; + len += ret; } } #endif /* CONFIG_IEEE80211BE */ diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h index 6983ef2e3..4755facab 100644 --- a/src/common/ieee802_11_defs.h +++ b/src/common/ieee802_11_defs.h @@ -2831,6 +2831,7 @@ struct eht_ml_basic_common_info { #define EHT_ML_MLD_CAPA_TID_TO_LINK_MAP_ALL_TO_ALL 0x0020 #define EHT_ML_MLD_CAPA_TID_TO_LINK_MAP_ALL_TO_ONE 0x0040 #define EHT_ML_MLD_CAPA_TID_TO_LINK_MAP_NEG_SUPP_MSK 0x0060 +#define EHT_ML_MLD_CAPA_AP_MLD_TYPE_IND_MASK 0x0080 #define EHT_ML_MLD_CAPA_FREQ_SEP_FOR_STR_MASK 0x0f80 #define EHT_ML_MLD_CAPA_AAR_SUPP 0x1000