diff options
| -rw-r--r-- | core/wma/src/wma_features.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 2fdeebff8712..8caa6636500d 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -2176,6 +2176,12 @@ static QDF_STATUS dfs_phyerr_offload_event_handler(void *handle, qdf_spin_lock_bh(&ic->chan_lock); chan = ic->ic_curchan; + if (chan == NULL) { + WMA_LOGE("%s: chan is NULL", __func__); + qdf_spin_unlock_bh(&ic->chan_lock); + return QDF_STATUS_E_FAILURE; + } + if (ic->disable_phy_err_processing) { WMA_LOGD("%s: radar indication done,drop phyerror event", __func__); |
