mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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:
parent
8c1cbba938
commit
fbed5b3e52
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue