wlan: prima: copy measurement type and duration (RRM)

Fix for issue where DUT was doing a passive scan
instead of an active scan when there is a beacon report
request on a specific channel. In the case where the
num_APChannelReport is zero, the measurement type and
measurement duration are not being copied. Hence added
an else condition to address this.

Change-Id: If8a2f3d44afe552a063c16b37efaa99d1f25ca5b
CRs-Fixed: 605173
wlan: UMAC: update channel list support

Enhance capability of update channel list

Change-Id: I661351531e6f902ed9a262ffb71bcddcfdc1d88c
CRs-Fixed: 605330
wlan: Fix for DUT not sending 11k beacon report

This is a regression issue caused by CCX Upload change, in
which if the CCX upload is defined DUT alway sends beacon report
to upper layer (wpa_supplicant) even though the beacon request
initiated by 11k RRM. There is no run time check done to differenciate
who triggered beacon request, as CCX, 11k and upload approach uses
RRM scanning as a common code.

The fix for this issue is to difference which module initiated
beacon request based on the message source and forward the beacon report
to that module.

Change-Id: Ie502843c5db8f0f7398d875493c9568a405fac82
CRs-Fixed: 611034
Wlan: Revision 3.2.3.233

Revision 3.2.3.233
wlan: To remove extra action frame sent in beacon report

Changes have been made in the driver such that the driver
will now not send an extra action frame when there are no
reports on the last channel measured. Instead a frame with
zeroed tagged parameters is only sent when there are no
scan results found on all the channels measured.

Also changes have been made in function
rrmProcessBeaconReportReq to copy measurement duration
and mode correctly when AP channel report is present.

Change-Id: I8a598a98227cf384d4c4178b8ed00aa7d96d9a9e
CRs-Fixed: 594919
MAC:Avoid disassociation on connecting more than supported sta's.

Disassociating wrong station on receiving auth frame from
station for which we already have entry in DPH table and
assocId equal to DPH hash table size.

Change-Id: Idabaa9cdd1fdffa4b987ea98211e8dd8385deae0
CRs-Fixed: 610553
wlan: Rate limit the print indicating Tx queue is 3/4th full.

When Tx queue for Best Effort access category is 3/4th full,
donot print info message for every packet instead print when
the access category of DHCP packet is changed to VOICE since
Best Effort access category Tx queue is 3/4th full.

Change-Id: I7f9aba9fc248442a421da01c0005946861f904b7
CRs-Fixed: 611754

Conflicts:
	CORE/HDD/src/wlan_hdd_tx_rx.c
Wlan: Revision 3.2.3.234

Revision 3.2.3.234
wlan: Fix for Statis analysis errors in SME module

It will fix all critical errors reported in SME
module by statis analysis tool.

Change-Id: Ie083a3a12a36ec4bacb0eb4abd7e26f923808af9
CRs-Fixed: 609608
wlan: sme: Fix regression in csrRoamCallCallback()

The commit "wlan: Fix for Statis analysis errors in SME module" added
NULL check for pRoamInfo in csrRoamCallCallback() along with assert
to fix Klockwork defect. There are quite few places in CSR module
explicitly passes NULL for pRoamInfo (eCsrForcedDisassoc, etc) and
expects csrRoamCallCallback() to handle it gracefully.

Change-Id: If6ea8a1b57bbf099e169658976f433b0254c2b74
CRs-Fixed: 609623
wlan: Fix for Statis analysis errors in SAP module

It will fix all critical errors reported in SAP
module by statis analysis tool.

Change-Id: I7cce27b4bffbff9262d83170d4cc85be3ff3e754
CRs-Fixed: 609614
Wlan: Revision 3.2.3.235

Revision 3.2.3.235
wlan: check for parameters for hearbeat offload

Check that the time period passed is not zero for
TCP hearbeat offload feature.

Change-Id: I47a05df7347ac69ec30adde70d2243509f706fa6
CRs-Fixed: 608722
wlan: Don't process reg_notifier during SSR.

In case of  SSR, HAL context is made  NULL. So during SSR if
reg_notifir is invoked, driver is accessing HAL context in
sme_GetPhyMode(), leading to crash. Hence make sure
reg_notifier()is not processed during SSR.

Change-Id: I9bc116e94aa2787bc74f99fb5824f50748b9e5ce
CRs-Fixed: 608881
wlan: Check for WatchDog reset status during queue selection

Check for the WatchDog reset status during queue selection request,
If WD reset in progress, then return the Best Effort queue index.
Else derive queue index based on the current session parameter and
return.

This avoids any access to the internal data structure during
reset.

Change-Id: I3a5e0b3223153733fac19cd935364749f2fd1f94
CRs-Fixed: 609907
Wlan: Revision 3.2.3.236

Revision 3.2.3.236
wlan: TL vos packet user_data_ptr handling 64-bit clean.

In WLANTL_STARxAuth() before calling vos_pkt_set_user_data_ptr
we are directly typecasting an integer to pointer which are of
different size's hence the errors. By typecasting using uintptr_t
it is now compiling without any errors.

CRs-Fixed: 582089
Change-Id: Iea3edb9258fc397bbd4be760c7c7a81a1b479e41
Fix for FTM mode host driver memory leak

The Memory allocated is not being freed in case of failure
free the memory allocated when return due to failure

Change-Id: Ifb7e7178ffb1cb31f61bfa9a6fc36833abc5cbe6
CRs-fixed: 533757
HDD: Return 0 when wlan_hdd_tdls_set_force_peer succeeds.

This commit ensures wlan_hdd_tdls_set_force_peer to return 0
on success without which the tdls_setup and tdls_teardown commands
return failure to the user.

Change-Id: I80026a03667f03331ac94381e4c659d125bbc4c4
CRs-Fixed: 611277
wlan:Retry ReassocReq only in FT_REASSOC_RSP_STATE

Currently upon the ReassocTimer expiry the
limAssocFailureTimerHandler checks and retries
the Reassoc request. But the ReassocRetryReq is
populated only in eLIM_MLM_WT_FT_REASSOC_RSP_STATE,
which is leading to crash due to lack of availablity
of retry context in another state
(eLIM_MLM_WT_REASSOC_RSP_STATE). Hence added the
approriate check in limAssocFailureTimerHandler
to retry reassoc when only in limstate
eLIM_MLM_WT_FT_REASSOC_RSP_STATE.

Change-Id: I62449d7e3f99781105d74c2f2042081a9673d4dc
CRs-Fixed: 608890