TDLS: Invoke tdls exit explicitly during stop/shutdown adapter

Commit I50c033fe64fa7014231881287e665abdded46c61 introduced a change
wherein the tdls initialization and exit are tied to successful
connect and disconnection events.
However,this leads to a failure where the disconnection event
fails to get triggered resulting to improper tdls exit (specifically
the timer deinit's) and thus a possible illegal memory access by the
registered timer callback's.
Also,this commit shall ensure to do tdls exit on an SSR.
The protection to handle multiple instance of invocation for each
tdls_init / tdls_exit also is part of this commit.

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