wlan: protect ULA callback against adapter state changes

An issue was observed where when wlan_hdd_ula_done_cb() was invoked
the completion variable used to synchronize threads was in an
uninitialized state, leading to a crash.  Fix this by using a new
completion variable that will not be cleared when the adapter changes
state.  In addition add additional protection to make sure the adapter
is valid before referencing the completion variable, and add logging
when the wait_for_completion() times out so we know when the driver is
in an inconsistent state.

Change-Id: Id7687792e8e9aad20b32754f989fa3a41ab7cc85
CRs-fixed: 455822
3 files changed
tree: 3eb4883ee0f4173d53e2df89612e0897a0297c6a
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig