Răsfoiți Sursa

qcacld-3.0: Extend support to get IPA HW status on all platforms

Extend support to get IPA HW status on all platforms if IPA OFFLOAD
feature is enabled.

Change-Id: Ideea6b7f058b3d80efecc9473a20d7a31046b4bc
CRs-Fixed: 2230316
Sravan Kumar Kairam 7 ani în urmă
părinte
comite
c8eec8a827

+ 0 - 7
components/ipa/core/inc/wlan_ipa_priv.h

@@ -674,13 +674,6 @@ struct wlan_ipa_priv {
 
 #define BW_GET_DIFF(_x, _y) (unsigned long)((ULONG_MAX - (_y)) + (_x) + 1)
 
-#if defined(QCA_WIFI_3_0) && defined(CONFIG_IPA3)
-#define WLAN_IPA_CHECK_HW() ipa_uc_reg_rdyCB(NULL)
-#else
-/* Do nothing */
-#define WLAN_IPA_CHECK_HW() 0
-#endif /* IPA3 */
-
 #define WLAN_IPA_DBG_DUMP_RX_LEN 84
 #define WLAN_IPA_DBG_DUMP_TX_LEN 48
 

+ 1 - 1
components/ipa/core/src/wlan_ipa_main.c

@@ -30,7 +30,7 @@ static bool g_ipa_hw_support;
 bool ipa_check_hw_present(void)
 {
 	/* Check if ipa hw is enabled */
-	if (WLAN_IPA_CHECK_HW() != -EPERM) {
+	if (qdf_ipa_uc_reg_rdyCB(NULL) != -EPERM) {
 		g_ipa_hw_support = true;
 		return true;
 	} else {