mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Don't Check for concurrency if pre_cac adapter exists
Currently, host driver is checking for concurrency while handling the pre_cac request. pre_cac adapter won't be deleted until SAP is stopped. As a result the second pre cac request for the same SAP will be dropped due to this concurrency check. To avoid this, Don't check for pre cac concurrency if the pre cac adapter is already exists. Change-Id: I780c6310cf819da1a2f5c7c93590ccb1b544e7a4 CRs-Fixed: 2848736
This commit is contained in:
parent
eacb3b9a83
commit
8818ab5102
1 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -187,11 +187,11 @@ static int __wlan_hdd_request_pre_cac(struct hdd_context *hdd_ctx,
|
|||
/* Flush existing pre_cac work */
|
||||
if (hdd_ctx->sap_pre_cac_work.fn)
|
||||
cds_flush_work(&hdd_ctx->sap_pre_cac_work);
|
||||
}
|
||||
|
||||
if (policy_mgr_get_connection_count(hdd_ctx->psoc) > 1) {
|
||||
hdd_err("pre cac not allowed in concurrency");
|
||||
return -EINVAL;
|
||||
} else {
|
||||
if (policy_mgr_get_connection_count(hdd_ctx->psoc) > 1) {
|
||||
hdd_err("pre cac not allowed in concurrency");
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
ap_adapter = hdd_get_adapter(hdd_ctx, QDF_SAP_MODE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue