Ver código fonte

qcacld-3.0: extend support to get IPA hw status

HDD_IPA_CHECK_HW limits to Helium and IPAv3 only.

Fix is to extend support to all platforms as long as IPA_OFFLOAD
is defined.

Change-Id: I35ac2cee58e242060757465e3870327d3c06673e
CRs-Fixed: 2182459
jiad 7 anos atrás
pai
commit
4ab698b6eb
1 arquivos alterados com 5 adições e 9 exclusões
  1. 5 9
      core/hdd/src/wlan_hdd_ipa.c

+ 5 - 9
core/hdd/src/wlan_hdd_ipa.c

@@ -505,13 +505,6 @@ struct hdd_ipa_priv {
 
 #define HDD_BW_GET_DIFF(_x, _y) (unsigned long)((ULONG_MAX - (_y)) + (_x) + 1)
 
-#if defined(QCA_WIFI_3_0) && defined(CONFIG_IPA3)
-#define HDD_IPA_CHECK_HW() ipa_uc_reg_rdyCB(NULL)
-#else
-/* Do nothing */
-#define HDD_IPA_CHECK_HW() 0
-#endif /* IPA3 */
-
 #define HDD_IPA_DBG_DUMP_RX_LEN 84
 #define HDD_IPA_DBG_DUMP_TX_LEN 48
 
@@ -4557,8 +4550,11 @@ static void hdd_ipa_send_pkt_to_tl(
  */
 bool hdd_ipa_is_present(struct hdd_context *hdd_ctx)
 {
-	/* Check if ipa hw is enabled */
-	if (HDD_IPA_CHECK_HW() != -EPERM)
+	/*
+	 * Check if ipa hw is enabled
+	 * TODO: Add support for WDI unified API
+	 */
+	if (ipa_uc_reg_rdyCB(NULL) != -EPERM)
 		return true;
 	else
 		return false;