wlan: rrm: Add support for multiple Beacon reports per channel

With the existing implementation, beacon report from STA reports
details pertaining to only one BSS per channel and this behaviour
is not meeting the VE cert test plan requirements. Hence support
is added to send multiple measurement reports corresponding to
multiple BSSs per channel as the STA identifies via scan.

Change-Id: I67c807308a6e3c8ae0a309490cdccec4441fd913
CRs-fixed: 538880
WLAN: Fix memory leaks during get BSS Descriptor IE's.

1.Free 'ppIEStruct' allocated in csrGetParsedBssDescriptionIEs,
in all instances.
2.Free previous memory (wdiPrefNetworkFoundInd.pData) on a failed
allocation for pPrefNetworkFoundInd in WDA_lowLevelIndCallback
3.Replace the returns with a break in __limProcessSmeAssocCnfNew
to ensure the memory to get freed.

Change-Id: I97c4035ffb62235be83daca9c65b4068011b5cbd
CRs-Fixed: 568201
wlan: Memory leak in cfg80211

In sta+p2p cases, wpa_supplicant tries to setup connection without
knowing wlan driver is unloading by calling cfg80211 to update
bss info, causing memory leak

Change-Id: Ib5b3aa77dfa91657861f4818960b686df05f02ad
CRs-fixed: 545745
wlan: Ignore wlan_hdd_linux_reg_notifier on (un)loading

Ignore the wlan_hdd_linux_reg_notifier call from the
reg-module if isLoadUnloadInProgress is set to TRUE.
processing wlan_hdd_linux_reg_notifier while unloading
the driver may lead to crash.

Change-Id: I6f4e0bf510b7e3a89b2dd1801d90d7cbb53f651e
CRs-Fixed: 550640
wlan: Fix null pointer references found in static analysis.

Fixed potential null pointer references and
memory leaks find by static code analysis.

Change-Id: Ib13533257a23fb0801a287a256a9faa5c7ffa4f4
CRs-Fixed: 594219
wlan: Allow sched scan start request only in dis-connected state

Support Sched scan start only in disconnected state.

Change-Id: Ief6f683b81b6b7acd4e6ffe6e186d9e45bda27c2
Crs-Fixed: 593797
gpu: ion: system_heap: add support for 2MB allocations

Enable 2MB (order 9) allocations from the system heap. This improves the
performance of some heavyweight use cases. The benefit is especially
large for use cases where the buffer is mapped into an IOMMU since we
can leverage the 2MB IOMMU page table mappings.

Change-Id: I869733089b9ccba8090bbca80aac7b5f248b335e
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: camera: Fix unterminated of_device_id table

Add a NULL table entry at end for msm, ispif and
msm_generic_buf_mgr device tree match tables.

Change-Id: I78ff0f63fdb49e8c62b1974c1ee786d48af5e067
CRs-Fixed: 582110
Signed-off-by: Hariram Purushothaman <hpurus@codeaurora.org>
Fix for RSSI low even when DUT is close to AP

when Rssi is reported based on the beacon received from the adjacent
channels other than current operating channel it is low even though
Ap is close to DUT.so filtering the beacons received from the channels
other than current opearting channel is currently present only for
Aps operating in 2.4GHZ channels.this commit extends the filtering
mechanism to HT capable Aps which are operating in 5GHZ channels

CRs-fixed: 552800

Change-Id: Idc2dc3cc9b4e3c1a8981ff258377b78ef092a396
P2P: Abort ongoing scan when connection is initiated.

When DUT receives Provision Discovery request or
GO negotiation request to initiate p2p connection,
respective action frame's response will be delayed
by wpa_supplicant, if p2p scanning is in progress.
This results in multiple Provision discovery request
retries.

So, abort ongoing scan to remove delay in sending
Provision Discovery response or GO negotiation
response.

Change-Id: I8c099438925f50647aad7654d7630fefd0f399f1
CRs-Fixed: 576285
msm: mdss: Decimation and BWC cannot be enabled together

Hardware cannot support decimation and bwc together.
The use case should be failed.

Change-Id: Ic7547340eb08d542a296aa9cfdd150e7eb0bea4b
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@quicinc.com>
Configure flag to debug remain on channel issues.

Add flag to configuration file to debug remain on
channel. This flag is used to send marker frames
at start and end of remain on channel.

Change-Id: I848dc62f3539848e1028e48e77a9cf98e1a1dd8b
CRs-Fixed: 594906
Block scan during BTCOEX operations

Framework issues BTCOEXMODE 1/2 signifying the critical period
where the WiFi has to acquire the antenna during the coex
operations with BT. Thus use the same indication to also
block off channel operations , VIZ scan.

Change-Id: I82bcbc52408fb42a6b37a4480bab0e6a7aa64be9
CRs-Fixed: 584636
wlan: Fix for making dwell time (0) valid for SENDACTIONFRAME

Initial development of NCHO made sure Dwell time 0 is
accepted as a valid value. Later this was broken by a
DroidSec change by adding extra check treating 0 as a
invalid value.

Modify the sanity check to allow 0 as valid value

Change-Id: I5f4ca27b6cf19d06943a08c6a450f7e17681f6ca
CRs-Fixed: 598250
Merge "Merge "Fix for wifi can not connect networks after wake up""
wlan: API Change to Support RxSensitivity Threshold

Rx Sensitivity Threshold would be calculated based
on the minimum data rate and provided to the firmware.
One of the reserved bytes is being used to pass on
this value. So, the structure size would eventually
remain same.

Change-Id: I4247068f27a4bc925b94c4549da31add6a90adfa
CRs-Fixed: 598265
Merge "Merge "Merge "Fix for wifi can not connect networks after wake up"""
Merge "Merge "Fix for wifi can not connect networks after wake up""
Merge "Merge "Merge "Fix for wifi can not connect networks after wake up"""
Merge "Merge "Revert "Registering IPv6 notifier to notify change in IP."""