wlan: Fix memory leak in csrInitCountryValidChannelList()

Static source code analysis identified a memory leak in
csrInitCountryValidChannelList().  This function allocates memory for
pOutChannelList but it never saves the pointer, and hence the memory
is leaked (and the function doesn't actually perform the function it
was designed to perform).  Update the code so that the pointer to the
channel list is actually saved for later use.

Change-Id: Iac148ae15458332279705c2da738d5f43635724c
CRs-fixed: 470188
wlan: fix CSR TDLS issues found by static source analysis

Static source code analysis identified four issues in
csrTdlsProcess.c.  Three of the issues are memory leaks.  Fix these by
rearranging the code such that sanity checks are performed before
memory is allocated.  The last issue is the potential use of an
uninitialized variable.  Fix this by modifying conditional code to
make sure there is no path where the variable is not initialized.

Change-Id: I657dff78a4c50f2b702035c714300a3d0abb6d38
CRs-fixed: 470188
wlan: Fix issues in limSetLinkStateForPostAssocCallback()

Static source code analysis identified several issues in
limSetLinkStateForPostAssocCallback() including memory leaks, a double
free, and access to an uninitialized variable, so resolve these
issues.

Change-Id: I13cf8f079996ef1677336b3db435bf5e3585aa55
CRs-fixed: 470188
wlan: Sending NULL TSPEC if send one after another

Sending wrong ADDTS for DL traffic after sending ADDTS for UL traffic

Change-Id: I07c2c2864551b4ff794e84cc0f304f8df64e4ba3
CRs-fixed: 463958
wlan: Update Heart beat related logs

Heart beat related logs are moved to appropriate places
Few new logs are added

Change-Id: Ibf092b386889c8b2eaaa80527094ed71ae89609f
CRs-Fixed:  471433
wlan: Memory leak fix in WDA

If there are back to back reqs from UMAC, some gets buffered in WDI Q.
After deQ if the req fails, there is no way to notify WDA, hence the
memory leak. This fix is for the HostOffload req case.

Change-Id: If97e37e3b35b90562682d3f5704de0a62db143b4
CRs-fixed: 468379
wlan: Static source code analysis fixes for TL, VOSS, WDI and utils

Fixes for WLAN host driver TL, VOSS, WDI and utils modules based on
the static source code analysis.

Change-Id: I1ee30da61565925e78b02942ecb5b9e5d41a0128
CRs-fixed: 466197
wlan: assoc rejects and connection failures with ZERO bssid

After Association Timeout, CSR continue to trying
connection when roaming completes

CRs-fixed:461229
Change-Id: Iae50b81fd0653e8fce9486701a6121062fc919bd
wlan: Reduce data path debug message

When HDD TX has timeout problem, triggered data path debug routine.
Within this routine, memory alloc is needed.
But timeout is on interrupt context
then memory alloc is not allowed.
HDD TX timeout is not an error condition.
So, remove this debug routine.

Change-Id: Ic66bad72c7611f39f0ba2122492654d661411c3f
CRs-fixed: 469763
wlan: avoid double free

static source code analysis identified potential double free if
palSendMBMessage() is failed. Updated the code to avoid this.

Change-Id: I46a9548a31aad9cdacebb561fea74af1467ebbbe
CRs-fixed: 470188
wlan: Add build option for msm8610 target.

Add build option for msm8610 target.
wlan: Change so that host driver has PMF support in Pronto builds

This change allows Pronto host driver builds to include Protected
Management Frames (802.11w) support.  Prima host driver builds
will not include this support.

Change-Id: I69c9c4d77f1c32371e0fafd9dd51984277ca8ef2
CRs-Fixed: 452558
scan based teardown across wlan and p2p interface

Find the peer for all interfaces even when scan is issued on
one interface, and use corresponding wiphy dev pointer when
indicating teardown to supplicant.
Change station accepts p2p client device mode.

Change-Id: Ic959dea0855b8bafa631a177d575c07325f702a7
CRs-Fixed: 466996
Fix for the crash in wlan_hdd_tdls_check_bmps

Check the device mode if it is WLAN_HDD_INFRA_STATION
or WLAN_HDD_P2P_CLIENT then only access the TDLS Context
from station context.

Change-Id: I7a205cbb25942d5ade93f870fa23415487b3f89d
CRs-Fixed: 467890
wlan: Release 3.2.3.97