Parcourir la source

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
Bing Sun il y a 2 ans
Parent
commit
859027dad8
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

+ 7 - 0
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,