|
@@ -763,6 +763,9 @@ QDF_STATUS dp_ipa_enable_autonomy(struct cdp_soc_t *soc_hdl, uint8_t pdev_id)
|
|
|
if (!wlan_cfg_is_ipa_enabled(soc->wlan_cfg_ctx))
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
|
|
|
+ if (!hif_is_target_ready(HIF_GET_SOFTC(soc->hif_handle)))
|
|
|
+ return QDF_STATUS_E_AGAIN;
|
|
|
+
|
|
|
/* Call HAL API to remap REO rings to REO2IPA ring */
|
|
|
ix0 = HAL_REO_REMAP_IX0(REO_REMAP_TCL, 0) |
|
|
|
HAL_REO_REMAP_IX0(REO_REMAP_SW4, 1) |
|
|
@@ -810,6 +813,9 @@ QDF_STATUS dp_ipa_disable_autonomy(struct cdp_soc_t *soc_hdl, uint8_t pdev_id)
|
|
|
if (!wlan_cfg_is_ipa_enabled(soc->wlan_cfg_ctx))
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
|
|
|
+ if (!hif_is_target_ready(HIF_GET_SOFTC(soc->hif_handle)))
|
|
|
+ return QDF_STATUS_E_AGAIN;
|
|
|
+
|
|
|
/* Call HAL API to remap REO rings to REO2IPA ring */
|
|
|
ix0 = HAL_REO_REMAP_IX0(REO_REMAP_TCL, 0) |
|
|
|
HAL_REO_REMAP_IX0(REO_REMAP_SW1, 1) |
|