Explorar el Código

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
Rohan Dutta hace 8 años
padre
commit
d52b36da63
Se han modificado 1 ficheros con 4 adiciones y 5 borrados
  1. 4 5
      wmi/src/wmi_unified_non_tlv.c

+ 4 - 5
wmi/src/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++)