qcacld-3.0: skip sap context destroy if it's NULL
The sap context is NULL when sap adapter is not started, skip context destroy for such case, to avoid error level output. CRs-Fixed: 2749376 Change-Id: I190a3e75187be6b6d70f5a70c71c87e563cd3f15
This commit is contained in:
@@ -3446,6 +3446,11 @@ bool hdd_sap_destroy_ctx(struct hdd_adapter *adapter)
|
|||||||
adapter->session.ap.beacon = NULL;
|
adapter->session.ap.beacon = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!sap_ctx) {
|
||||||
|
hdd_debug("sap context is NULL");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
hdd_debug("destroying sap context");
|
hdd_debug("destroying sap context");
|
||||||
|
|
||||||
if (QDF_IS_STATUS_ERROR(sap_destroy_ctx(sap_ctx)))
|
if (QDF_IS_STATUS_ERROR(sap_destroy_ctx(sap_ctx)))
|
||||||
|
Reference in New Issue
Block a user