mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
qcacld-3.0: Abort previous connect if fresh connect is received
qcacld-2.0 to qcacld-3.0 propagation If connect is received with previous connect in progress, driver doesn't abort the previous connect and process the new connect. In csr if new connect is for same profile, sme directly indicate connection success to hdd and thus hdd increment the active session count twice for both connect. Now if one more connect is received it will try to disconnect the previous connection and decrements the active session count. So the count is 1 though no session is active. Eventually if same scenario happens again the active session count will become 2 with no active session. As max active session limit is 2, no more connect is accepted. To avoid this, if fresh connect is received and previous connect is in progress abort the previous connect. CRs-Fixed: 958963 Change-Id: I1544bc6e7894ffeda1956a19a553b6fe4e35f988
This commit is contained in:
parent
7996eb7a8e
commit
03f992e41d
1 changed files with 3 additions and 2 deletions
|
|
@ -8747,8 +8747,9 @@ static int wlan_hdd_try_disconnect(hdd_adapter_t *pAdapter)
|
|||
hdd_conn_get_connected_bss_type(pHddStaCtx, &connectedBssType);
|
||||
|
||||
if ((eMib_dot11DesiredBssType_independent == connectedBssType) ||
|
||||
(eConnectionState_Associated == pHddStaCtx->conn_info.connState) ||
|
||||
(eConnectionState_IbssConnected == pHddStaCtx->conn_info.connState)) {
|
||||
(eConnectionState_Associated == pHddStaCtx->conn_info.connState) ||
|
||||
(eConnectionState_Connecting == pHddStaCtx->conn_info.connState) ||
|
||||
(eConnectionState_IbssConnected == pHddStaCtx->conn_info.connState)) {
|
||||
hdd_conn_set_connection_state(pAdapter,
|
||||
eConnectionState_Disconnecting);
|
||||
/* Issue disconnect to CSR */
|
||||
|
|
|
|||
Loading…
Reference in a new issue