|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2018, 2020-2021 The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -35,6 +35,11 @@ QDF_STATUS tgt_ipa_uc_offload_enable_disable(struct wlan_objmgr_pdev *pdev,
|
|
|
IPA_ENTER();
|
|
|
|
|
|
ipa_obj = ipa_pdev_get_priv_obj(pdev);
|
|
|
+ if (!ipa_obj) {
|
|
|
+ ipa_err("IPA object is NULL");
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+ }
|
|
|
+
|
|
|
psoc = wlan_pdev_get_psoc(pdev);
|
|
|
|
|
|
if (ipa_obj->ipa_tx_op)
|
|
@@ -55,6 +60,11 @@ tgt_ipa_intrabss_enable_disable(struct wlan_objmgr_pdev *pdev,
|
|
|
IPA_ENTER();
|
|
|
|
|
|
ipa_obj = ipa_pdev_get_priv_obj(pdev);
|
|
|
+ if (!ipa_obj) {
|
|
|
+ ipa_err("IPA object is NULL");
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+ }
|
|
|
+
|
|
|
psoc = wlan_pdev_get_psoc(pdev);
|
|
|
|
|
|
if (ipa_obj->ipa_intrabss_op)
|