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
This commit is contained in:
Rohan Dutta
2017-03-28 13:06:21 +05:30
committed by snandini
parent 330179cff8
commit 355295c6b4

View File

@@ -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++)