From 859027dad8578ada507d4588cd31e5ec1d0a0d9a Mon Sep 17 00:00:00 2001 From: Bing Sun Date: Thu, 22 Sep 2022 15:10:26 +0800 Subject: [PATCH] qcacld-3.0: save EHT in sir_convert_beacon_frame2_struct EHT IE is stripped and decoded, but it is not returned to the caller of sir_convert_beacon_frame2_struct. Save it in pBeaconStruct and return the information to the caller of sir_convert_beacon_frame2_struct. Change-Id: I73d6957a4e275b4d7008cb3de0e3ca2ee4a5b8a3 CRs-Fixed: 3297732 --- core/mac/src/sys/legacy/src/utils/src/parser_api.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/mac/src/sys/legacy/src/utils/src/parser_api.c b/core/mac/src/sys/legacy/src/utils/src/parser_api.c index 3a0602e14a..e11eebc18e 100644 --- a/core/mac/src/sys/legacy/src/utils/src/parser_api.c +++ b/core/mac/src/sys/legacy/src/utils/src/parser_api.c @@ -5330,6 +5330,13 @@ sir_convert_beacon_frame2_struct(struct mac_context *mac, sizeof(tDot11fIEhe_op)); } + if (pBeacon->eht_cap.present) + qdf_mem_copy(&pBeaconStruct->eht_cap, &pBeacon->eht_cap, + sizeof(tDot11fIEeht_cap)); + if (pBeacon->eht_op.present) + qdf_mem_copy(&pBeaconStruct->eht_op, &pBeacon->eht_op, + sizeof(tDot11fIEeht_op)); + pBeaconStruct->num_transmit_power_env = pBeacon->num_transmit_power_env; if (pBeacon->num_transmit_power_env) { qdf_mem_copy(pBeaconStruct->transmit_power_env,