diff --git a/core/hdd/src/wlan_hdd_sap_cond_chan_switch.c b/core/hdd/src/wlan_hdd_sap_cond_chan_switch.c index 3c575f3285d9..8d6610596d71 100644 --- a/core/hdd/src/wlan_hdd_sap_cond_chan_switch.c +++ b/core/hdd/src/wlan_hdd_sap_cond_chan_switch.c @@ -181,6 +181,11 @@ static int __wlan_hdd_request_pre_cac(struct hdd_context *hdd_ctx, mac_handle_t mac_handle; bool val; + if (!policy_mgr_is_hw_dbs_capable(hdd_ctx->psoc)) { + hdd_debug("Pre CAC is not supported on non-dbs platforms"); + return -EINVAL; + } + pre_cac_adapter = hdd_get_adapter_by_iface_name(hdd_ctx, SAP_PRE_CAC_IFNAME); if (pre_cac_adapter) {