qcacld-3.0: Set cdp_soc null in dp_ctx during detach

Currently, stale cdp_soc member in dp_ctx is being accessed
when interface is being added after wlan is detached during
idle shutdown.
To fix this, set cdp_soc NULL in dp_ctx when wlan is detaching.

Change-Id: I922f92cb7ba22bf84f39a44b6d78cd4b36bea058
CRs-Fixed: 3872183
This commit is contained in:
Ananya Gupta 2024-07-26 09:58:32 +05:30 committed by Ravindra Konda
parent d2812c25e5
commit ec6854defd

View File

@ -2218,8 +2218,13 @@ err_soc_detach:
void wlan_dp_txrx_soc_detach(ol_txrx_soc_handle soc)
{
struct wlan_dp_psoc_context *dp_ctx = dp_get_context();
cdp_soc_deinit(soc);
cdp_soc_detach(soc);
if (dp_ctx)
dp_ctx->cdp_soc = NULL;
}
QDF_STATUS wlan_dp_txrx_attach_target(ol_txrx_soc_handle soc, uint8_t pdev_id)