wlan: Prevent disconnection delay in concurrency scenario due to race

Propagation from qcacld-2.0 to prima

Currently, supplicant does not remove a p2p group unless the reason
code is 3 (which is STA leaving). In some scenario, by the time the
deauth indication with reason code 3 reaches CSR, we receive one more
deauth with reason code 7. This reason code of 7 is used by CSR to
update the supplicant. So, the p2p group deletion does not happen. And
finally the group gets removed only after reaching group idle timeout.
During the race, LIM ends up in completion in disassoc state before CSR
starts processing. So, added check to ensure that deauth frames are not
accepted in this disassoc state as well. This way the new subsequent
deauth frames will not corrupt the reason code sent to the supplicant.

Change-Id: Iaf34efe13c3deb63c713722195740421f17a6065
CRs-Fixed: 2148406
2 files changed
tree: 1f141a6135b2021a9aff71f720cec2aa4a70064a
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile