wlan: Prevent memory access to already freed pointer

Prevent memory access to already freed pointer

Change-Id: I8f4f2888ffc8ea0444855e2ebe0eba9d17c00df9
CRs-Fixed: 693681
wlan: Profiling for roam delay calculation at HDD Layer

At HDD layer we store the time stamps for m1/m3 in
rx path m2/m4 for tx path apart from it we are also storing
the time stamps and few bytes of the first data packet
went out from dut.Apart from this we cache the time
when tx queue made disabled and make enabled again.

Change-Id: I266970d27fed0f47d755a7a00001d96c7b2273d4
CRs-Fixed: 688014
TDLS: Fix for potential buffer overflow

Static analyser is reporting errors for array bound
checking.
To resolve this, Check for condition array index
shouldn't exceed WNI_CFG_VALID_CHANNEL_LIST_LEN
before accessing ChannelList array.

CRs-Fixed: 696606
Change-Id: I52817fa3bb216838f250aecea2eb3e0143161e00
wlan: Update countryCode11d with countryCodeSelected.

Whenever driver choose the country code on basis of majority
it store this country code in countryCodeElected.
When driver is trying to acquire the country code to AP
to which it is about to connect , it's not updating
country code.
At the time of changing country code Driver compare
country code acquired and countryCode11d.
At this state countryCode11d is prev elected country.
As driver is not updating countryCode11d with AP's Country
code in csrLearnCountryInformation, there is mismatch in
sme_HandleChangeCountryCodeByUser so driver will update old
country only.
Fix is to update countryCode11d variable when driver
acquires country to which it is about to connect.

CRs-fixed: 696609
Change-Id: I0c69052d993901f382e18332c0ef3be819181397
wlan: Logging Enchanement.

As a part of logging enchanement , lowered log level
of certain logs.

Change-Id: Id35c12a4e394c189b47eb344cf62dfeabb17b29f
CRs-Fixed:  696591
wlan: Update countryCode11d with countryCodeDefault at boot up time.

During driver initialization coutryCode11d is initialized as NULL.
When driver is being loaded again; in sme_HandleChangeCountryCodeByUser
API pMsg->countryCode will be having old country code and
pMac->scan.countryCode11d will be having NULL.
At the time of load time; driver is trying to set the country
code in sme_HandleChangeCountryCodeByUser, driver will call
regulatory hint with NULL country code.
As there is no NULL country code in db.txt; due to mismatch
it will take 3 sec to call world reg domain.
Fixing this issue by initializing countryCode11d with
countryCodeDefault in csrInitChannels.

CRs-Fixed: 697290
Change-Id: I184da8449157af4dcfa266301d5003bce9ee6687
wlan: EnableStrictRegulatoryForFCC should be False by default.

Currently at the time of driver loading EnableStrictRegulatoryForFCC
is true. With the new rules of FCC, this param should be FALSE
so that GO/SAP can work on UNII-1 band in FCC domain.

CRs-Fixed: 697408
Change-Id: I5f73a819f6af4a2682402c56d61488b5412ade84
wlan: Correcting the WDI response enum types for EXT SCAN support.

Correcting the values of WDI responses for Extend Scan supported
types. This WDI support for extended scan is committed in
Change-Id:I5e0b2d207f71078ade24cb8cc6d9229a3f9e6ac2.

CRs-fixed: 697281
Change-Id: I0c05b36005bd736e914af672c019238d066dcf4a
Wlan: Release 3.2.3.382

Release 3.2.3.382

Change-Id: Ib6fc5a3f100facb839c15fdeb9858888552868c4
CRs-Fixed: 688141