wlan: bss index field is introduced in rssi notification

The header file changes are promoted on the firmware side
and same changes to include bss index field in rssi
notification structure is fix using this gerrit

Change-Id: I3b4840ad1429d693157916e1f3cee52f4c6a72d6
CRs-Fixed: 510475
wlan: Removed unused cfg variables

Removed unused cfg variables:
gEnableHandoff
gStatTimerInterval
MaxSpLength
19p2MhzPmicClkEnabled
gFtEnabled

Change-Id: I3160fcb298e825a5d8da0ed44907ffc22d2f8cea
Session was invalid which was causing the pointer dereferencing.

Session was invalid which was causing the pointer dereferencing
and eventually crash, to avoid this situation we will now
validate the session id and then proceed further

Change-Id: Ifa0c5b3f9e0380bbb483c95137b18c68dddddbc4
CRs-fixed: 511324
wlan: Revision 3.2.3.150

Revision 3.2.3.150
wlan: Reduce DXE dump log size

Current dxeSnapshot has too many not needed logs.
As a result, if successive dxeSnapshot issued,
system crash may happen with WD timeout.
To resolve this, reduce snapshot size 1/3 min, 1/10 max.
And add small sleep between each channel dump to kick WD.

Change-Id: I103169ed518c1e5c290213b3d03eac21dc5e512d
CRs-fixed: 460410
wlan: Private IOCTL "dataSnapshot" for Data Path Dump State

Introducing a new Private IOCTL for printing Data Path information. This
can be invoked during data stall issues to give more insight into the
Data Paht.The command first prints HDD WMM Tx Queue information, then
posts a new message in TX Thread, which then is handled by TL. After TL
dumping is done, TL initiates a DXE Dump so that we can have both the
information in one shot.

Change-Id: I0449d16939ec029032ee27abf884a8525846c6df
CRs-fixed: 483187
wlan: ptt_socket_app enhance

Make ptt_socket_app as a WLAN NL Daemon application.
Then user do not need manually run ptt_socket_app for FTM and DIAG.

Change-Id: I08e39e93f8616b8f9107fd9fb50ee91a33f92bf3
CRs-fixed: 509738
wlan: Error when using private wlan ioctls 'setMaxTxPower'

While setting the setMaxTxPower ioctl, Not able to find the
sessionEntry with bssid ff:ff:ff:ff:ff:ff. Need to update the
MaxTxpower for all the active sessions

Change-Id: Id0e6e8f6c66ab172e5e428c591aced706ba438e5
CRs-Fixed: 480697
Crash due to mismatch of datatype of bssidx between host and firmware

Host is supplying bssIdx as 8 bit value to firmware and
firmware is expecting bssIdx as 16 bit value. This incorrect
mapping between host and firmware resulted in to crash.

Change-Id: I2eab993721b0d7fa99caa1076a4a8eadb684fcae
CRs-fixed: 514580
wlan: Update Reg Domain for AUSTRALIA

Commit "Update country/region regulatory table information"
updates the RegDomain table and misses the domain
specific to Australia. This commit addresses the same by
updating the RegDomain table for Australia.

CRs-Fixed: 513113
Change-Id: I88920865db631e2775285c4dc2b301de43b4e6b9
WLAN : Extended iwpriv command 'getHostStates'

As part of the 'getHostStates' printing the HDD,CSR,
Lim (SME and MLM) and TL states.

CRs-Fixed: 508110
Change-Id: I8d7169275eeb877736379b0767f6c960147390fe
wlan: Fix compilation error when BUILD_DIAG_VERSION is enabled.

Fix compilation error when BUILD_DIAG_VERSION is enabled for self-host
logging.

Change-Id: I93c3ab41408653f25ae1a7ef3cf54782dbb008a9
CRs-fixed: 514653
wlan: Protect cfg APIs during uninitialized access

During WLAN driver load/unload sequences and also during SSR, we have
seen race conditions where the cfg APIs are invoked even before they are
initialized. Protect these APIs when they are called before MAC module
is initialized.

Change-Id: Idc9261d7040587bcdcf7e78729ba4bd1e6432f6a
CRs-Fixed: 512618
Wlan: Revision 3.2.3.151

Revision 3.2.3.151
Add DS param IE in probe request frame for 2.4 GHz channel.

Add the DS param IE in probe request frame when it is trasmitted
on 2.4 GHz band.

Change-Id: I72dc0a5036f702a94e6b152a88a2ffa94082b698
CRs-Fixed: 507100
wlan: False SSR and RIVA crash fix

If RX interrupt happens with host RX low buffer condition,
it's same with DXE RX channel disabled condition,
processed RX frame count set as '0'.
When RX buffer available signal schedule, if RX interrupt happen,
RX buffer avaliable process will be intercepted by interrupt.
And RX DXE will be enabled right before RX interrupt schedule by
RX buffer available process. In this case, previous frame count '0'
will be handled as empty interrupt and SSR will be issued.
To avoid this, RX DXE disabled interrupt should be marked as
non-empty interrupt.

Change-Id: I209797e0def40938dbcb764dec42c7274d2865db
CRs-fixed: 506731
Fix the memory leaks observed in static source code analysis

Resolves the memory leaks observed in static source code analysis.
And remove the csrStop routine call in csrClose function as csrStop
is already called in smeStop routine during the driver unload. Calling
csrStop in csrClose routine leads to memory leak during the driver
unload as csrStop posts message to PE and the message will not be
processed since the scheduler is already closed in the unload process.

Change-Id: I105f03c1ae3d006b0bc1bf37ab3dbd6a680fb658
CRs-Fixed: 507819
wlan: supported rates generated based on the configured mode

When DUT associates to a 11b AP then the supported
rates updated to firmware contains only the 11b rates which
is causing througput issue in TDLS mode.
After the modification supported rates are generated based on
the configured dot11mode but not based on the current session.

Change-Id: I57ed7065ce9be6a379a91ce91d97d0154f7ea9bd
CRs-Fixed: 510920
wlan: Increase limit on IE size to 255 bytes.

Increase max scan IE length from 200 to 255 bytes
to incorporate more vendor specific IE.
Limiting this to 255 only, as a greater value shall
require some enhancements in SME and other related
modules also.

CRs-fixed: 514890
Change-Id: I3dff4c7c71d29fc0511f711d3352a0b8f0c87d18
Initialize TDLS only for the STA or P2P_CLIENT mode.

This gerrit addresses the following to handle the issues
related to the TDLS initialization and exit.
In tdls_init(), proceed with the initialization/allocation only
for STA or P2P_CLIENT device_modes.Also check for the existance of
TDLS context before proceeding with the allocation.
Also invoke tdls_init when the device_mode changes to P2P_CLIENT
for the P2P Adapter.

Change-Id: Ia03fde0b0d5357a9c19b02f0a4cbc88f9be15165
CRs-fixed: 501059