wlan : LIM: Remove duplicate scan cache in SME and LIM

Currently before updating the new scan result, both BSSID
and channel number are getting compared before updating the
details in LIM/SMEscan cache. Due to this, if AP moves from
one DFS channel to another DFS channel duplicate entries are
getting created in LIM scan cache for the same BSSID.
When wpa_supplicant says connect to driver, CSR is taking
first entry which has older channel and trying to connect
first time. AP will not be available in older channel.
SO, connection would fail saying that beacon is not received.
And then CSR is taking next entry which has new channel and
trying to connect. 2nd time connection is successful. This patch
removes duplicate entries each bssid.

Change-Id: I451f03d52d626ead194c239dc531c7b1d33f34ca
CRs-fixed: 663362
wlan: Data abort due to NULL pointer access.

In function hdd_remainChanReadyHandler, duration
of remain on channel is acessed without checking
if remain on channel ctx is null or not.As a part
of fix , duration is only acessed when remain on
channel ctx is not null.

Change-Id: I5ab61a45b7e6e421145a38a5088c44da0b3187eb
Crs-Fixed: 662924
wlan: Convert the free call from vos_mem_free to vfree

Correct the call vos_mem_free to vfree.

Change-Id: I6b165b4acfb745e3df388e8755266cf69185ff76
CRs-Fixed: 663439
wlan: Changes to reduce roaming delay with logging enabled

Optimized locking during sending the log messages to app.
Store the logs into the logging buffere even whe there is no
logger app running so that it can be used for triaging in case
of any stability issue.

Change-Id: I982a5da9e5f61c295d225aa7d14792ea118f955c
CRs-Fixed: 649515
Revert "wlan: Continuous Logging in vos_trace"

This reverts commit e479d39ea6e3bfdf15a6b86d5c5571635c60e0b3.
Driver uses logging infrastructure buffer for doing the same.

Change-Id: I15d33516cc82f52d788956667d94eaeeb8c3db28
CRs-Fixed: 649515
Wlan: Revision 3.2.3.323

Revision 3.2.3.323

Change-Id: I01f6cd4190cac2908cbb2b457859ac8b168e945b