wlan: compilation error for CCX in Tspec

Correct medium time variable was not used as a part of
Ied24dc04cac84bd0a72d219c7d38e41ac03b6030 change ID.Corrected
this paramter to compile the code successfully.

Change-Id: Ic6b2c85d279dd82390c2967d34a55ae4c8da1cca
CRs-Fixed: 687943
wlan: Create wlan/prima directory in firmware path if not exists.

Create wlan/prima folder in etc/firmware path if it doesn't exist
before making attempt to copy WCNSS_cfg.dat file from
prima/firmware_bin folder.

Change-Id: I8c978fa3a687a8041f835512f3714120f9d4da13
CRs-Fixed: 687986
wlan: Fix SME disassoc cmd stuck issue.

When heartbeat time out and SME diassoc req received at same time,
then the context of cleanup trigger is corrupted and disaaoc response
message is not sent to SME, hence the command stuck in SME and
no further commands are processed.

Change-Id: Ia7960db103fbe44f5505a9731156c0db288e8d77
CRs-Fixed: 687201
wlan: Fix to select the right country code during roaming

In the current code, with the voting logic for regulatory
in place, during roaming, instead of selecting the
country code of the AP that the STA joins, the STA is
selecting the country code that is decided by the voting
mechanism. This is fixed using this gerrit by using the
country code information from beacon and probe response
for roaming and by using the voting mechanism for other
scenarios.

CRs-Fixed: 676456
Change-Id: I512113fe7ed6b9f85af95b0800f9675add239709
Wlan: Revision 3.2.3.366

Revision 3.2.3.366

Change-Id: Ic4f2124ce7bc0017e07d204e028068eaae1fe907
CRs-Fixed: 687980
TDLS: Check for the connected state while extracing the first peer.

commit I6dad95ce4f453d774b4f6bea99cccca46b95aa5f did not consider peer link
connection status while extracting first peer from the peer list.

Address this issue by checking if peer link status is connected.

Klockwork Issue: pAdapter NULL Pointer Dereference in
wlan_hdd_tdls_indicate_teardown function is also fixed as part of this
commit.

CRs-Fixed: 685956
Change-Id: I5ef55f91dd20c0bb934e9dad90fe901a63480853
wlan: Cache frames only for STA whose assoc/reassoc req is send.

This fix will introduce a variable enableCaching for each
STA ID which will be used to enable/disable cache for that
particular STA. Caching will be enabled when assoc/reassoc
req is being sent while it is disabled after flushing of
frames for that STA.
This fix is done to avaoid low resource condition when
packets are cached at TL.
Also removing variable ucRxBlocked as it is no more
required.

Change-Id: Ic8604f70b835cb5dedcd64662bd6a28f0af6bbfa
CRs-Fixed: 685340
wlan: Avoid exessive logging from logger svc

Rate limit the error logs during low memory scenarios.

Change-Id: I7ffaebfb9c7b440808670a34c6de45cbe01b4a1d
CRs-Fixed: 683609
wlan: enhance debugging when Tx timeout is detected

Add debug information when tx timeout is detected for
AP mode, and if tx stall perisists issue SSR.
SSR may help is restoring Tx data and will also
help to collect ram-dumps for debugging the issue.

Change-Id: Ie62b127e2fb8ad8fa353cb2dc9c217d331caddad
CRs-Fixed: 685415
wlan: Set appropriate rateFlags for 11AC.

If 11AC support is not present then don't set VHT20 bit in rate
flags.

Change-Id: I96595b9144f996fcec72a5588505f2a7c05616bb
CRs-Fixed: 686609.
wlan: HDD: Add request ID in scan event.

Send the request Id received from firmware to Android HAL as part
of the scan progress indication.

Change-Id: Ibfa4205f1a0fb7630350bed0c1e99ea484c01c1d
CRs-Fixed: 687346
Wlan: Revision 3.2.3.367

Revision 3.2.3.367

Change-Id: Ib69b2640acad5e7254407efc4748613e2fc991a8
CRs-Fixed: 688141
wlan: Pass correct size paramter to vos_mem_set

In limProcesSmeTdlsLinkEstablishReq(), size passed to vos_mem_set
is incorrect. This is causing crash during TDLS link setup due to
garbage value in pMsgTdlsLinkEstablishReq.

Change-Id: I73d14cd17ecec8d841d12babd6d337c1fe948001
CRs-Fixed: 683088
wlan: Address watchdog bark due to excessive logging on SSR

If exit IMPS request is failed due to SSR , do not send exit IMPS
request down to the firmware which causes watchdog bark due to
excessive failure logs.

Change-Id: I48e40c213d037c08aa6a82e9df04dda6497d5785
CRs-Fixed: 687378
wlan: Don't remove UNII-1 channels if domain is FCC.

If domain is FCC, in case of SAP current channel list
dones't have 36 to 48 channels. With the new FCC
requirment these channles needs not to remove from
updated channel list.

CRs-Fixed: 688428
Change-Id: Id887ae08adab6738e4b3d420011db104119c43c5
wlan : KW : Array Out of Bounds use of addIE.

Array 'addIE' of size 255 may use index value(s) 0..285

Add the logic to check that ( noaLen + len ) doesnt
exceed by WNI_CFG_PROBE_RSP_BCN_ADDNIE_DATA_LEN (255)
instead of checking just for len.

Change-Id: Ic551d14fc9faccc7f652f5c2c949b25472708b68
CRs-Fixed: 685348
wlan: Add gEnableChannelAvoidance parameter to control channel avoidance

This commit introduces new gEnableChannelAvoidance configuration
parameter to enable or disable LTE Channel Coex Channel Avoidance
functionality in host driver.

By default it will be enabled.

CRs-Fixed: 686638
Change-Id: I4be5b52e42c0b28e7d5e9cdc74d9eef3eb7a876d
Wlan: Release 3.2.3.368

Release 3.2.3.368

Change-Id: I0584b865f9efe93b4d50c4d2f10a8b75e2c621fd
CRs-Fixed: 688141
wlan: Roaming on DFS channels

Remove the DFS channels from the roam scanning
channel list when 'gAllowDFSChannelRoam' is disabled.

Change-Id: Ia043b1dd2bb4334fa216b7c9f2f5260c78db6194
CRs-Fixed: 648897
Revert "wlan: Null pointer dereference in MTRACE in HDD."

This reverts commit 43f9493593eec7f0d663ed56d49e995b32bb0195.

Change-Id: I317d560f26d547d4b93c30272f5e77b6449f868d
CRs-Fixed: 687985