Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a68632fb authored by Bapiraju Alla's avatar Bapiraju Alla Committed by Madan Koyyalamudi
Browse files

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
parent 3228c8e9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -179,6 +179,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;
	}

	if (policy_mgr_get_connection_count(hdd_ctx->psoc) > 1) {
		hdd_err("pre cac not allowed in concurrency");
		return -EINVAL;