Commit 2c40fbb1 authored by Johannes Berg's avatar Johannes Berg Committed by Carlos Llamas
Browse files

UPSTREAM: wifi: ieee80211: fix ieee80211_mle_basic_sta_prof_size_ok()



If there was a possibility of an MLE basic STA profile without
subelements, we might reject it because we account for the one
octet for sta_info_len twice (it's part of itself, and in the
fixed portion). Like in ieee80211_mle_reconf_sta_prof_size_ok,
subtract 1 to adjust that.

When reading the elements we did take this into account, and
since there are always elements, this never really mattered.

Fixes: 7b6f0877 ("wifi: ieee80211: Support validating ML station profile length")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Reviewed-by: default avatarIlan Peer <ilan.peer@intel.com>
Signed-off-by: default avatarMiri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240318184907.00bb0b20ed60.I8c41dd6fc14c4b187ab901dea15ade73c79fb98c@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>

Bug: 338806915
Change-Id: If8e492750d01ead429bf9e7236818dd2fb699319
(cherry picked from commit c121514d)
Signed-off-by: default avatarVeerendranath Jakkam <quic_vjakkam@quicinc.com>
parent 7e0e3a71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment