diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 96670e814653..98b56508ae73 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -9583,7 +9583,12 @@ QDF_STATUS wma_get_rx_chainmask(uint8_t pdev_id, uint32_t *chainmask_2g, struct wlan_psoc_host_mac_phy_caps *mac_phy_cap; uint8_t total_mac_phy_cnt; struct target_psoc_info *tgt_hdl; + tp_wma_handle wma_handle = cds_get_context(QDF_MODULE_ID_WMA); + if (!wma_handle) { + wma_err("wma_handle is NULL"); + return QDF_STATUS_E_INVAL; + } tgt_hdl = wlan_psoc_get_tgt_if_handle(wma_handle->psoc); if (!tgt_hdl) {