TDLS: Fixed mem_free problem at driver unload.

The peer list is doubly linked list. The code to free the peers at exit is
not correct and will result in double free error if there are more than 1 peer.
Use linked list APIs to take care of mem_free.

CRs-fixed: 445416
Change-Id: Ib3a5b659743898796cbc3edd21a0d1aa9682a63c
(cherry picked from commit 387663d2dd25cdee0dab418a78be7c6229b7f8bc)
6 files changed
tree: 57d951da82038c9fd3c47e4349094f320359e961
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig