[RFC 07/30] WPA: Add SMD Information Element to KDE parsing

Ilan Peer ilan.peer at intel.com
Wed Oct 21 06:43:25 PDT 2026


Extended the KDE parsing to also handle SMD Information
Element.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 src/common/wpa_common.c | 4 ++++
 src/common/wpa_common.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/src/common/wpa_common.c b/src/common/wpa_common.c
index efaf0cff8015..c38c50c37e3f 100644
--- a/src/common/wpa_common.c
+++ b/src/common/wpa_common.c
@@ -4558,6 +4558,10 @@ int wpa_parse_kde_ies(const u8 *buf, size_t len, struct wpa_eapol_ie_parse *ie)
 				    "WPA: Security Profile element in EAPOL-Key",
 				    ie->security_profile,
 				    ie->security_profile_len);
+		} else if (*pos == WLAN_EID_EXTENSION &&
+			   pos[1] >= 1 + sizeof(struct ieee80211_smd_info) &&
+			   pos[2] == WLAN_EID_EXT_SMD_INFO) {
+			ie->smd_info = pos + 3;
 		} else if (*pos == WLAN_EID_QOS && pos[1] >= 1) {
 			ie->qosinfo = pos[2];
 		} else if (*pos == WLAN_EID_SUPPORTED_CHANNELS) {
diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h
index 58201250b6ba..e9e98acdc520 100644
--- a/src/common/wpa_common.h
+++ b/src/common/wpa_common.h
@@ -785,6 +785,7 @@ struct wpa_eapol_ie_parse {
 	size_t mlo_link_len[MAX_NUM_MLD_LINKS];
 	const u8 *rsn_override_link[MAX_NUM_MLD_LINKS];
 	size_t rsn_override_link_len[MAX_NUM_MLD_LINKS];
+	const u8 *smd_info;
 };
 
 int wpa_parse_kde_ies(const u8 *buf, size_t len, struct wpa_eapol_ie_parse *ie);
-- 
2.55.0




More information about the Hostap mailing list