Browse Source

qcacld-3.0: Fill header for HANG_EVT_TAG_LEGACY_MAC hang data

Currently while filling in the hang event data for the event
HANG_EVT_TAG_LEGACY_MAC, the header is not getting filled in. This can
cause the data to go out of sync.

Add the header to the data before filling in the values.

Change-Id: Iedcb39623276e5f04ef9ffb5b3284e67f6c89312
CRs-Fixed: 2678949
Sourav Mohapatra 4 years ago
parent
commit
1de1ca890f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/mac/src/pe/lim/lim_api.c

+ 2 - 0
core/mac/src/pe/lim/lim_api.c

@@ -768,6 +768,8 @@ static int pe_hang_event_notifier_call(struct notifier_block *block,
 
 		pe_data = (pe_hang_data->hang_data + pe_hang_data->offset);
 		cmd = (struct pe_hang_event_fixed_param *)pe_data;
+		QDF_HANG_EVT_SET_HDR(&cmd->tlv_header, HANG_EVT_TAG_LEGACY_MAC,
+				     QDF_HANG_GET_STRUCT_TLVLEN(*cmd));
 		cmd->vdev_id = session->vdev_id;
 		cmd->limmlmstate = session->limMlmState;
 		cmd->limprevmlmstate = session->limPrevMlmState;