mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 04:59:05 -04:00
qcacmn: Set passive dwell time
Set passive dwell time to 28msecs for active
scan when bt a2dp is enabled and hw is not dbs
capable and when sta is connected on 2G band.
Change-Id: I44f2e3d98f2d7ddc52e4902ba989131c256da4ef
CRs-Fixed: 2160963
This commit is contained in:
parent
efbeeab4fc
commit
067cd3e3eb
2 changed files with 31 additions and 0 deletions
|
|
@ -2198,4 +2198,11 @@ void policy_mgr_set_weight_of_dfs_passive_channels_to_zero(
|
|||
*/
|
||||
bool policy_mgr_is_sta_sap_scc_allowed_on_dfs_chan(
|
||||
struct wlan_objmgr_psoc *psoc);
|
||||
/**
|
||||
* policy_mgr_is_sta_connected_2g() - check if sta connected in 2g
|
||||
* @psoc: pointer to soc
|
||||
*
|
||||
* Return: true if sta is connected in 2g else false
|
||||
*/
|
||||
bool policy_mgr_is_sta_connected_2g(struct wlan_objmgr_psoc *psoc);
|
||||
#endif /* __WLAN_POLICY_MGR_API_H */
|
||||
|
|
|
|||
|
|
@ -2740,3 +2740,27 @@ bool policy_mgr_is_sta_sap_scc_allowed_on_dfs_chan(
|
|||
|
||||
return status;
|
||||
}
|
||||
|
||||
bool policy_mgr_is_sta_connected_2g(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct policy_mgr_psoc_priv_obj *pm_ctx;
|
||||
uint32_t conn_index;
|
||||
bool ret = false;
|
||||
|
||||
pm_ctx = policy_mgr_get_context(psoc);
|
||||
if (!pm_ctx) {
|
||||
policy_mgr_err("Invalid Context");
|
||||
return ret;
|
||||
}
|
||||
qdf_mutex_acquire(&pm_ctx->qdf_conc_list_lock);
|
||||
for (conn_index = 0; conn_index < MAX_NUMBER_OF_CONC_CONNECTIONS;
|
||||
conn_index++) {
|
||||
if (pm_conc_connection_list[conn_index].mode == PM_STA_MODE &&
|
||||
pm_conc_connection_list[conn_index].chan <= 14 &&
|
||||
pm_conc_connection_list[conn_index].in_use)
|
||||
ret = true;
|
||||
}
|
||||
qdf_mutex_release(&pm_ctx->qdf_conc_list_lock);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue