qcacmn: Avoid deadlock while protecting connection list

Avoid deadlock while protecting connection list during SAP channel
switch.

Change-Id: Ib4f8bd3e185b3dd6bd746e49645b6456dca50e96
CRs-Fixed: 2088106
Цей коміт міститься в:
Tushnim Bhattacharyya
2017-07-26 12:10:43 -07:00
зафіксовано snandini
джерело 95e7e27147
коміт 481a9dfb4c

Переглянути файл

@@ -705,11 +705,9 @@ void policy_mgr_check_sta_ap_concurrent_ch_intf(void *data)
policy_mgr_err("SAP restart get channel callback in NULL");
goto end;
}
qdf_mutex_acquire(&pm_ctx->qdf_conc_list_lock);
status = pm_ctx->hdd_cbacks.
wlan_hdd_get_channel_for_sap_restart(psoc, vdev_id,
&channel, &sec_ch);
qdf_mutex_release(&pm_ctx->qdf_conc_list_lock);
if (status != QDF_STATUS_SUCCESS) {
policy_mgr_err("Failed to switch SAP channel");
goto end;