qcacld-3.0: Reject pre CAC request when DBS is not supported

Pre CAC feature requires parallel operation in 2.4GHz and 5GHz.
So this feature won't be supported when there is no DBS support.
Reject pre CAC request in this scanario.

Change-Id: Iece04ac0f73aed2dfa1dd9bfd4869d96004534ce
CRs-Fixed: 2870645
This commit is contained in:
Bapiraju Alla 2021-02-04 15:51:39 +05:30 • committed by snandini
commit fbed5b3e52

View file

@ -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) {