diff --git a/components/ipa/core/src/wlan_ipa_core.c b/components/ipa/core/src/wlan_ipa_core.c index b88f6d2fae..a0affaa6e9 100644 --- a/components/ipa/core/src/wlan_ipa_core.c +++ b/components/ipa/core/src/wlan_ipa_core.c @@ -1424,7 +1424,8 @@ static QDF_STATUS __wlan_ipa_wlan_evt(qdf_netdev_t net_dev, uint8_t device_mode, * RADAR detection and chosen channel may not be a DFS channels. * So dont return error here. Just discard the event. */ - if (wlan_ipa_get_iface(ipa_ctx, QDF_SAP_MODE)) { + if (ipa_ctx->vdev_to_iface[session_id] != + WLAN_IPA_MAX_SESSION) { qdf_mutex_release(&ipa_ctx->event_lock); return 0; }