From 355295c6b44ad6b879c2312a7b7a3adc74b61f12 Mon Sep 17 00:00:00 2001 From: Rohan Dutta Date: Tue, 28 Mar 2017 13:06:21 +0530 Subject: [PATCH] qcacmn: Set-key convergence for non-TLV boards The tx_iv flag of wapi has been changed from an array of type u32 to array of type u8 this change adds support for it . Change-Id: Ia0e57e25c151e7f7f232cf8dc07d59d5a19b47e0 --- wmi_unified_non_tlv.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wmi_unified_non_tlv.c b/wmi_unified_non_tlv.c index 9a036af392..f1f3ee394a 100644 --- a/wmi_unified_non_tlv.c +++ b/wmi_unified_non_tlv.c @@ -386,13 +386,12 @@ static QDF_STATUS send_setup_install_key_cmd_non_tlv(wmi_unified_t wmi_handle, /* since wk_recviv and wk_txiv initialized in reverse order, * Before indicating the Target FW, Reversing TSC and RSC */ - for (i = (WPI_IV_LEN-1), j = 0; i >= 0; i--, j++) - *(((uint8_t *)&cmd->wpi_key_rsc_counter)+j) = + for (i = (WPI_IV_LEN-1), j = 0; i >= 0; i--, j++) { + cmd->wpi_key_rsc_counter[j] = param->rx_iv[i]; - - for (i = (WPI_IV_LEN/4-1), j = 0; i >= 0; i--, j++) - *(((uint32_t *)&cmd->wpi_key_tsc_counter)+j) = + cmd->wpi_key_tsc_counter[j] = param->tx_iv[i]; + } qdf_print("RSC:"); for (i = 0; i < 16; i++)