wlan:Pass correct session for scan abort

Currently Driver  passes pAdapter->sessionId  for abort Scan.
For concurrency case it may happen that scan is not running
for the pAdapter's->sessionId where as it might be running
on another adapter's session. As a part of fix made sure
that correct sessionId is passed for abort scan.

Change-Id: I51cd614858b082d9bd39b9ada40b7e5a5a32df5c
CRs-Fixed: 743630
wlan: Abort Scan for Miracast session

Currently if split scan is going on and Miracast
session is started in between. Miracast session
doesn't allow scan on DFS channel and if before
Miracast starts as part of split scan if the
channel on which scan is intended is DFS , then
Channel number  0 is passed to lim. Since Channel
number is 0, lim issue full scan. As a part of fix,
abort any scan when Miracast Session is started.

Change-Id: I97d77772dbd2efdb4f07f84faa255686a2e8281f
CRs-Fixed: 740241
wlan: Abort Scan for action frames.

Currently Scan is aborted only for certain
action frame.So if scan is going on, processing
of other action frames get delayed.As a part of
fix, abort scan for every action frame received

Change-Id: I3c82fd7dbc56dc45f530028ace97027b618e403e
CRs-Fixed: 743687
prima: LLstats- Indicate peer type in peer stats

Peer stats expect the peer type. This commit ensures the same.

Change-Id: Ica88b4ca5afa40bfc968dc552a4a793b958d39bf
CRs-Fixed: 741748
Wlan: Correct condition check in csrRoamGetIbssStartChannelNumber50

In csrRoamGetIbssStartChannelNumber50(), after the unsuccessful search
for Ibss channel in csrStartIbssChannels50[] and roam.validChannelList[],
incorrect logic is used to find the first 11a channel.

Correcting the logic to use idxValidChannels and roam.validChannelList[]
for finding the first 11a channel.

Change-Id: Ia84e86ca548a8749b88179dd7b8cc8270ba6c855
CRs-Fixed: 737734
Wlan: Use correct max size enum to access BkidCacheInfo array

In csrRoamGetBKIDCache(), CSR_MAX_PMKID_ALLOWED is used instead of
CSR_MAX_BKID_ALLOWED. This leads to array out of bound access of
'BkidCacheInfo' array.
Replacing CSR_MAX_PMKID_ALLOWED with  CSR_MAX_BKID_ALLOWED.

Change-Id: I258f9e79ca2793394b191c9a21790b443481de48
CRs-Fixed: 737735
Wlan: Release 3.8.20.10

Release 3.8.20.10

Change-Id: I5f4f0bdb19c8234df221f5acea3ff6609bba145b
wlan: Abort existing remain on channel.

Firmware can't handle WLAN_HAL_SET_PREF_NETWORK_REQ in between the
scan (WLAN_HAL_INIT_SCAN_REQ and FINISH_SCAN_REQ/RSP).
Hence abort existing remain on channel before enabling the sched/pno
scan.

Change-Id: I25abf7aa3a147a5abea6f7edcd42db8fdcfed7f1
CRs-Fixed: 744157
wlan: prefill the memory allocated in DMA region with 0s

Modify the API used to return memory in DMA region to
prefill the allocated memory with 0s, this has to be
done to prevent garbage values persisting in memory
which can affect the system performance if the memory
is used to program hardware descriptors.

Change-Id: I98873aa0117ece5530db332e0c148151e263a8ca
CRs-Fixed: 730682
Wlan: Correct VOWIFI feature flag in __schBeaconProcessForSession

In __schBeaconProcessForSession(), incorrect feature flag is used for
VOWIFI feature. Replacing the incorrect flag with WLAN_FEATURE_VOWIFI

Change-Id: I512cc28a2201cee4ee95b7669178ef0c2b6ac196
CRs-Fixed: 744363
Merge "wlan:Pass correct session for scan abort"
Merge "wlan: Abort Scan for Miracast session"
Merge "wlan: Abort Scan for action frames."
Merge "prima: LLstats- Indicate peer type in peer stats"
Merge "Wlan: Correct condition check in csrRoamGetIbssStartChannelNumber50"
Merge "Wlan: Use correct max size enum to access BkidCacheInfo array"
Merge "Wlan: Release 3.8.20.10"
Merge "wlan: Abort existing remain on channel."
Merge "wlan: prefill the memory allocated in DMA region with 0s"
Merge "Wlan: Correct VOWIFI feature flag in __schBeaconProcessForSession"