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
6 files changed
tree: add0f4f0050287af5e9ffc5bf99d3efb02528f3f
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig