|
@@ -11181,6 +11181,7 @@ int hdd_configure_cds(struct hdd_context *hdd_ctx)
|
|
|
bool value;
|
|
|
enum pmo_auto_pwr_detect_failure_mode auto_power_fail_mode;
|
|
|
bool bval = false;
|
|
|
+ qdf_device_t qdf_ctx;
|
|
|
|
|
|
mac_handle = hdd_ctx->mac_handle;
|
|
|
|
|
@@ -11277,8 +11278,14 @@ int hdd_configure_cds(struct hdd_context *hdd_ctx)
|
|
|
* IPA module before configuring them to FW. Sequence required as crash
|
|
|
* observed otherwise.
|
|
|
*/
|
|
|
- if (ucfg_ipa_uc_ol_init(hdd_ctx->pdev,
|
|
|
- cds_get_context(QDF_MODULE_ID_QDF_DEVICE))) {
|
|
|
+
|
|
|
+ qdf_ctx = cds_get_context(QDF_MODULE_ID_QDF_DEVICE);
|
|
|
+ if (!qdf_ctx) {
|
|
|
+ hdd_err("QDF device context is NULL");
|
|
|
+ goto out;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (ucfg_ipa_uc_ol_init(hdd_ctx->pdev, qdf_ctx)) {
|
|
|
hdd_err("Failed to setup pipes");
|
|
|
goto out;
|
|
|
}
|