Răsfoiți Sursa

qcacmn: Fix to propagate key-receiver-sequence-counter to WMI

SME module propagates KeyRSC to MAC/PE module but MAC/PE doesn't
pass this counter to WMA and due to which WMA is not able pass to
WMI module.

Add a fix to propagate KeyRSC field from MAC to WMA module and
WMA to WMI module.

CRs-Fixed: 2130765
Change-Id: I0de6907bf8aa159eccb1d8310e7027f8fdf19fff
Krunal Soni 7 ani în urmă
părinte
comite
0087818a25
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      wmi/src/wmi_unified_tlv.c

+ 3 - 0
wmi/src/wmi_unified_tlv.c

@@ -4940,6 +4940,9 @@ static QDF_STATUS send_setup_install_key_cmd_tlv(wmi_unified_t wmi_handle,
 	key_data = (A_UINT8 *) (buf_ptr + WMI_TLV_HDR_SIZE);
 	qdf_mem_copy((void *)key_data,
 		     (const void *)key_params->key_data, key_params->key_len);
+	if (key_params->key_rsc_counter)
+	    qdf_mem_copy(&cmd->key_rsc_counter, key_params->key_rsc_counter,
+			 sizeof(wmi_key_seq_counter));
 	cmd->key_len = key_params->key_len;
 
 	status = wmi_unified_cmd_send(wmi_handle, buf, len,