Wlan:Check if STA/CLI is Associated before checking for authenticated

In wlan_hdd_enter_bmps if mode is auto, driver checks if the
stacontext is in authenticated state and ignore enter BMPS if
it is not authenticated.

As BMPS state is global, to avoid multiple BMPS entry, in
hdd_suspend_wlan, driver loop for adapters and only check for first
valid adapter to enter BMPS.
Now if STA is in diconnected state and P2P is in connected,
hdd_suspend_wlan check only STA adapter to enter BMPS and fails as
it is not authenticated.

To avoid this check if connection state is Associated before checking
authenticated state.

Change-Id: I49c69d31d8eff9c40c40025b3e24dd8d577acfa5
CRs-Fixed: 929357
1 file changed
tree: 1f5fce1da4008f836c744032d62ac436b0b36a97
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile