wlan: Purge the scan results based on ref count only when scan is complete

Currently the scan results are aged out based on number of scans for
each scan response in SME. But lim may send the scan response to SME
often, if the allocated length of scan rsp in lim is less than the
scan response or the BSS count is less than or equal to 20, due to
this aging count would be decremented quickly and thus would age out
the scan results soon

To address this, flush the scan results based on the number scans
after scan is complete.

CRs-Fixed: 1000624
Change-Id: If1bbe6d4ab9fdb05d0986b955cdefac66d1ee508
1 file changed
tree: 893130796a421e28c3bc4d5bd6236b346da8af31
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile