From: Aditya Kumar Singh Date: Tue, 11 Feb 2025 11:06:01 +0000 (+0530) Subject: MBSSID: Fix Non-Inheritance element length calculation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2605fbc815c7741aa43d4db7c30bcc2a6ce5e000;p=thirdparty%2Fhostap.git MBSSID: Fix Non-Inheritance element length calculation Commit 4bfc007b61e6 ("MBSSID: Fix Non-Inheritance element encoding") added one octet while filling the data. However, this one octet is missing during length calculation. Add it now. Fixes: 4bfc007b61e6 ("MBSSID: Fix Non-Inheritance element encoding") Signed-off-by: Aditya Kumar Singh --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index ec1437c1e..61dbfe43f 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -8322,7 +8322,7 @@ static size_t hostapd_eid_mbssid_elem_len(struct hostapd_data *hapd, else if (hapd->conf->xrates_supported) ie_count++; if (ie_count) - nontx_profile_len += 4 + ie_count; + nontx_profile_len += 4 + ie_count + 1; if (len + nontx_profile_len > 255) break;