wlan: UBSP Stats: Avoid using void arguments and use global structures.

Same structured are used in HDD and SME layers so instead of defining
them in all layer define them globaly so that they can be used by
all layer.
Also avoid using void arguments in the functions.

CRs-fixed: 771074
Change-Id: Ibbf5c71b81484793ae96800025629d2056108805
wlan: Address memory corruption due to double free

If MC thread fails to post any WDI message over bus then failure
status is sent to the caller through registered request callback
and WDI_STATUS_PENDING is returned to the actual request funcion
to avoid repeated functionality done in the request callback for
failure case. But the commit "Reload driver if EXIT IMPS REQ fails
due to invalid SMD port" will modify the wdiStatus which results
in double free, i.e both WDA request and WDA request status callback
functions endup in freeing the same memory.

To mitigate this issue, return WDI_STATUS_PENDING to the request
function if we already returned WDI_STATUS_DEV_INTERNAL_FAILURE
or WDI_STATUS_E_FAILURE status through registered request callback.
And also handle the logic to reload the wlan driver if WDI_EXIT_IMPS
REQ fails due to closed SMD port in request callback function.

Change-Id: I932e6684c4272332c2b14cc4896b7c00c86fa4cd
CRs-Fixed: 767711
wlan: Ini param to allow back ground scan in TDLS.

Provided a config item which is disabled by default.
if gEnableTDLSScan is
0: Same as gEnableTDLSScanCoexistence ; driver will do disconnect if
   Peer is not buffer STA capable when scan is initiated.
1: Dut will scan in all cases.
2: If peer is not buffer STA capable, driver will use
   CTS2self to do scan.

CRs-Fixed: 769709
Change-Id: I2e78cfb87203ec177502eb192bcfa77e73e6e37a
wlan: Use the correct macro FEATURE_WLAN_ESE for CCX

Currently the wrong macro FEATURE_WLAN_CCX is used in vos_utils.h
Changes are done to use the correct macro FEATURE_WLAN_ESE.

Change-Id: I9c76458dc09c1af7271fde26d7ff8c64438fdc78
CRs-Fixed: 771096
Wlan: Release 3.2.3.477

Release 3.2.3.477

Change-Id: Id0ea852ec870fcc16ec64d189c81d8a28c418a44
CRs-Fixed: 688141