Merge "qcacld-3.0: Acquire sme global lock if wait for set key times out" into wlan-cld3.driver.lnx.2.0
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
77db486763
@@ -12586,18 +12586,18 @@ void csr_roam_wait_for_key_time_out_handler(void *pv)
|
|||||||
}
|
}
|
||||||
sme_debug("SME pre-auth state timeout");
|
sme_debug("SME pre-auth state timeout");
|
||||||
|
|
||||||
|
status = sme_acquire_global_lock(&mac->sme);
|
||||||
if (csr_is_conn_state_connected_infra(mac, session_id)) {
|
if (csr_is_conn_state_connected_infra(mac, session_id)) {
|
||||||
csr_roam_link_up(mac,
|
csr_roam_link_up(mac,
|
||||||
pSession->connectedProfile.bssid);
|
pSession->connectedProfile.bssid);
|
||||||
status = sme_acquire_global_lock(&mac->sme);
|
|
||||||
if (QDF_IS_STATUS_SUCCESS(status)) {
|
if (QDF_IS_STATUS_SUCCESS(status)) {
|
||||||
csr_roam_disconnect(mac, session_id,
|
csr_roam_disconnect(mac, session_id,
|
||||||
eCSR_DISCONNECT_REASON_UNSPECIFIED);
|
eCSR_DISCONNECT_REASON_UNSPECIFIED);
|
||||||
sme_release_global_lock(&mac->sme);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sme_err("session not found");
|
sme_err("session not found");
|
||||||
}
|
}
|
||||||
|
sme_release_global_lock(&mac->sme);
|
||||||
} else {
|
} else {
|
||||||
spin_unlock(&mac->roam.roam_state_lock);
|
spin_unlock(&mac->roam.roam_state_lock);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user