wlan: Set connState to not connected if conn fails with disconnect pending

If driver receive stop adapter when STA is in connecting state, driver
queue a disconnect command without changing the connState of the STA.
It also sets the sme session disconnect in progress.

Now if the connection fails and if sme session disconnect in progress is
set driver doesn't send assoc failure indication to HDD and thus the
connState state remain connecting, now when HDD receives disconnect
callback it assume that connection is in progress and thus doesn't change
the connState. Thus STA remain in connection in progress and reject scans
continuously.

Fix is to call assoc failure indication to HDD in case sme session
disconnect in progress and connect fails. Also before processing the
disconnect set the connState to disconnecting so that HDD is in proper
state.

Change-Id: Ib9d607ad2ab05e5edc266e59516b4ae2b7668c78
CRs-Fixed: 2276843
2 files changed
tree: 0b31b85ab055f2e82494c3da244b821b93774b66
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile