Bläddra i källkod

qca-wifi: Fix compiler issues when WAPI is disabled

Variable "i" in "send_setup_install_key_cmd_non_tlv" function is used
only when ATH_SUPPORT_WAPI is enabled. Hence, kept its declaration
inside ATH_SUPPORT_WAPI macro itself.

Change-Id: Ic67362b0d90db64fb44b2e9ad7d026c836a95c51
Pooventhiran G 5 år sedan
förälder
incheckning
419e7a2388
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      wmi/src/wmi_unified_non_tlv.c

+ 1 - 2
wmi/src/wmi_unified_non_tlv.c

@@ -712,7 +712,6 @@ static QDF_STATUS send_setup_install_key_cmd_non_tlv(wmi_unified_t wmi_handle,
 	/* length depends on ieee key length */
 	int len = sizeof(wmi_vdev_install_key_cmd) + param->key_len;
 	uint8_t	wmi_cipher_type;
-	int i;
 
 	wmi_cipher_type = param->key_cipher;
 
@@ -755,7 +754,7 @@ static QDF_STATUS send_setup_install_key_cmd_non_tlv(wmi_unified_t wmi_handle,
 
 #ifdef ATH_SUPPORT_WAPI
 	if (wmi_cipher_type == WMI_CIPHER_WAPI) {
-		int j;
+		int i, j;
 		/* For WAPI, TSC and RSC has to be initialized with predefined
 		 * value.Here, Indicating TSC, RSC to target as part of set
 		 * key message