wlan: Add sanity checks to wlan_hdd_cfg80211_start_ap()

In internal sanity testing a kernel crash was
observed in csrIsInfraConnected() where it
tries to access a NULL pointer.
Analysis of the call stack shows this
access occurs as a result of invoking
wlan_hdd_cfg80211_start_ap() when the adapter
is not in a "sane" state.Therefore add sanity
checks to wlan_hdd_cfg80211_start_ap() to
make sure CSR is not invoked with a "bad" adapter.

Change-Id: Ib965a1752829328fc3041be97cac100aee7e7ee3
CR-Fixed: 417973
1 file changed
tree: 4a02eb7b59052062f2813efb3340ebfe2d06bb04
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Kconfig
  5. Makefile