android_kernel_xiaomi_sm8350/core/hdd
Min Liu 602c1b19a6 qcacld-3.0: Fix race condition when disconnecting
When an attempt of connection failed and followed by a disconnection
initiated from user space, randomly it would take more than 10 seconds
to complete the disconnection due to disconnect_comp_var is not
completed in some race condition and it has to wait till timeout.

To fix this race condition, in hdd_association_completion_handler, also
need to complete disconnect_comp_var for the case when hddDisconInProgress
is true and roam_status is eCSR_ROAM_ASSOCIATION_FAILURE or
eCSR_ROAM_CANCELLED, it will also cover the following scenario besides
the one mentioned above:

Connection is in progress. But the connect command is in pending queue
and is removed from pending queue as part of csr_roam_disconnect.

Change-Id: Ib6a30057469d60efcc905d97b5234ea5a0e097a8
CRs-Fixed: 2547320
2019-10-23 03:46:38 -07:00
..
inc qcacld-3.0: Cleanup sta_index in TDLS structures and APIs 2019-10-22 09:05:33 -07:00
src qcacld-3.0: Fix race condition when disconnecting 2019-10-23 03:46:38 -07:00