qcacmn: Fix tlv formation of gtk offload command
Add gtk offload enable/disable macros and use them while copy keys and replay counter. Change-Id: Ifdd776bc0c567d6c815ab5cb3eb212a43889b5a5 CRs-Fixed: 987362
This commit is contained in:

committed by
Vishwajith Upendra

parent
3f14f6f9d4
commit
c28ab7b4bc
@@ -2181,6 +2181,8 @@ struct periodic_tx_pattern {
|
||||
|
||||
#define WMI_GTK_OFFLOAD_KEK_BYTES 16
|
||||
#define WMI_GTK_OFFLOAD_KCK_BYTES 16
|
||||
#define WMI_GTK_OFFLOAD_ENABLE 0
|
||||
#define WMI_GTK_OFFLOAD_DISABLE 1
|
||||
|
||||
/**
|
||||
* struct gtk_offload_params - gtk offload parameters
|
||||
|
@@ -7446,7 +7446,7 @@ QDF_STATUS send_gtk_offload_cmd_tlv(wmi_unified_t wmi_handle, uint8_t vdev_id,
|
||||
cmd->vdev_id = vdev_id;
|
||||
|
||||
/* Request target to enable GTK offload */
|
||||
if (enable_offload) {
|
||||
if (enable_offload == WMI_GTK_OFFLOAD_ENABLE) {
|
||||
cmd->flags = gtk_offload_opcode;
|
||||
|
||||
/* Copy the keys and replay counter */
|
||||
|
Reference in New Issue
Block a user