diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 3cabd9b26f18..512e54b7ac8e 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -5806,6 +5806,10 @@ int wma_pdev_div_info_evt_handler(void *handle, u_int8_t *event_buf, return -EINVAL; } + if (!pmac->sme.get_chain_rssi_cb) { + WMA_LOGE(FL("Invalid get_chain_rssi_cb")); + return -EINVAL; + } param_buf = (WMI_PDEV_DIV_RSSI_ANTID_EVENTID_param_tlvs *) event_buf; if (!param_buf) { WMA_LOGE(FL("Invalid rssi antid event buffer"));