[PATCH 07/42] wpa_supplicant: Fix ml_ie_len type in wpa_bss_parse_basic_ml_element()

Andrei Otcheretianski andrei.otcheretianski at intel.com
Mon Nov 20 15:51:21 PST 2023


Since the ML element can be fragmented, use size_t instead of u8.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
 wpa_supplicant/bss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index e9164a09e7..9f48da31b0 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -1583,7 +1583,7 @@ int wpa_bss_parse_basic_ml_element(struct wpa_supplicant *wpa_s,
 	struct wpabuf *mlbuf;
 	const struct element *elem;
 	u8 mbssid_idx = 0;
-	u8 ml_ie_len;
+	size_t ml_ie_len;
 	const struct ieee80211_eht_ml *eht_ml;
 	const struct eht_ml_basic_common_info *ml_basic_common_info;
 	u8 i, link_id;
-- 
2.38.1




More information about the Hostap mailing list