Skip to content

Commit

Permalink
Merge tag 'LA.UM.12.2.1.r1-03300-sdm660.0' of https://git.codelinaro.…
Browse files Browse the repository at this point in the history
…org/clo/la/platform/vendor/qcom-opensource/wlan/qcacld-3.0 into android-4.19-stable

"LA.UM.12.2.1.r1-03300-sdm660.0"

Signed-off-by: Santhosh <santhosh.user.why.red@gmail.com>
  • Loading branch information
user-why-red committed Jun 11, 2024
1 parent c862e94 commit d4fbe51
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/staging/qcacld-3.0/core/wma/src/wma_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,14 @@ static void wma_update_beacon_noa_ie(struct beacon_info *bcn,
bcn->noa_ie = buf + bcn->len;
}

if (bcn->len + sizeof(struct p2p_ie) + new_noa_sub_ie_len >
SIR_MAX_BEACON_SIZE) {
wma_err("exceed max beacon length, bcn->len %d, new_noa_sub_ie_len %d, p2p len %u",
bcn->len, new_noa_sub_ie_len,
(uint32_t)sizeof(struct p2p_ie));
return;
}

bcn->noa_sub_ie_len = new_noa_sub_ie_len;
wma_add_p2p_ie(bcn->noa_ie);
p2p_ie = (struct p2p_ie *)bcn->noa_ie;
Expand Down

0 comments on commit d4fbe51

Please sign in to comment.