mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
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
This commit is contained in:
parent
d63e2de947
commit
4ab698b6eb
1 changed files with 5 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue