From 4ab698b6eb54ddb14a062df4e558f1b23b68417a Mon Sep 17 00:00:00 2001 From: jiad Date: Fri, 2 Feb 2018 13:43:09 +0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_ipa.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index 2e6c91a089e0..0d323ba6776c 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/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;