Fix the error in Tx/Rx highest supported data rate value in VHT cap

Use the highest long GI data rate value or zero in Tx/Rx highest
data rate supported field in VHT supported MCS set

Change-Id: I39c15d2fd3151b69b44f6f51c2c0fda2723dfbf2
CRs-Fixed: 502892
wlan: Fix for invalid broadcast station id

HDD is using station as 1 instead of 0 while registering
broadcast station with TL. This is incorrect.

Change-Id: Ia505ed08cc21d0fcc17f80260733cb56ae0b8748
CRs-Fixed: 501345
wlan: Free pbssDescription allocated by csrRoamIssueFTPreauthReq

pbssDescription is allocated by csrRoamIssueFTPreauthReq and not
freed anywhere. The changes are to free this memory when the
pbssDescription for the new session is being saved.

Change-Id: I835bacef269074cee9441ef68950c15076417799
CRs-fixed: 467962
wlan: Fix for build issue when BUILD_DEBUG_VERSION = 0.

This commit fixes compilation issue when BUILD_DEBUG_VERSION
set to 0

CRs-fixed: 502802
Change-Id: I78a38fe27db40a82bb11550aa12a1baa406d272b
Fix for wake lock issue

Before scan wlan acquires wake lock.due to race condition between
disconnect command from HDD and linkteardown from PE, SME is stuck
in scan and wake lock is not being released, which results in kernel
panic.avoid the race condition.

Change-Id: Id365d8be556fb741e4efa6f1ac6bae21cbb1e5db
CRs-fixed: 476066
wlan: Release 3.2.3.137

Release 3.2.3.137
wlan: Reduce logging level of DXE logs

Reduce logging level of some DXE logs to prvent
watchdog bite

Change-Id: Iedfe0618ecae5732a3ce2447c75ec4862ac2b1f5
CRs-Fixed: 479479
wlan: Avoiding possible null pointer dereference

Before accessing ucTxSuspended variable check if STA id is valid
for that STA type to avoid the NULL pointer crash

CRs-Fixed: 498234
Change-Id: Ic13449f26b2e8bcfdcb1af6f7b1e1d32de175236
wlan: SW workaround to mitigate HW statbility

HW bug to handle small frame within WQ.
BMU Release FIFO Overrun in HW causing data abort.
As a SW workaroud, delay 1usec for each RX frame pulling.

Change-Id: I6dc075dd52d9342a9cce2521c0970b6e783457a1
CRs-fixed: 502453
wlan: Include IGTK optional sub-element in the FTIE

With the new controller with pmf + 11r enabled, the STA
is not accepting pre-authentication response with frame length
more than 185 bytes from AP. Hence the FT roam always fails
with that AP. Pre-authentication response from AP
include IGTK optional sub element which increases the
FTIE length. The change is made to add IGTK optional
sub-element in the FTIE IE.

Change-Id: I89c9d4624567933eff191db6d77a8233e9ddc74a
CRs-fixed: 496033
wlan: set default value of home away time to 0

Changing the default value of home away time to 0

Change-Id: I52453de62c55e65a87722fd7c12493ad9f5f0e2a
CRs-Fixed: 481935
wlan: Do not consider eLIM_SME_WT_DEAUTH_STATE.

Do not consider eLIM_SME_WT_DEAUTH_STATE to check number of valid or
active sessions in peGetValidPowerSaveSession api as there may be a
scenario in which limMlmState is in eLIM_SME_WT_DEAUTH_STATE and the
api may not return valid session.

Change-Id: Id6984b88d474c8b7a363e6770d3b075d224a7685
CRs-Fixed: 503789
wlan: fix for invalid gRateSupported

Minor Fix. supported gRate is fixed to include 54Mbps
This change should be propogated across all branches.

Also making the supported rates a static const array
so that these values aren't changed later in the code
and are initialized only once during the run.

Change-Id: I945e9a4d25b3a3bb93d65457de8ee64a439044e7
CRs-fixed: 502456
wlan: Update the interface files for prima/pronto.

The wlan driver fails to load due to the recent changes in the
firmware api folder. Update the interface files for both
prima and pronto.

Change-Id: I39c13313c3594c43719d2208a94f7aeb833c09bf
CRs-Fixed: 503052
wlan: Release 3.2.3.138

Release 3.2.3.138
wlan: Copy current profile to previous without connection state check

After every new connection, we check if the current AP profile
(SSID & security type) matches previous AP profile.
if yes, then we don't clear the learned channel history about
the AP (prev and current same in this case)
If not, then user has connected to new AP. There is no point in
storing the channel learned history for the old AP. so we clear it.

Root cause for this CR:
One every disconnect, we free up previous profile and copy the
current profile to previous profile, but the problem is after
freeing, during the copyCurrentProfile, there is a check for
csrIsConnStateConnected() only if SUCCESS, it copies, but by this
time connection state is already disconnected it returns FAILURE,
so copy won't happen. That means previous profile is Empty here.

On next connect, during full scan, since the previous profile
is empty we try to build channel list all over again and
if we find both the APs in the scan results, both channels
will be added in the list (new learning). But the issue we are
seeing only one channel some time because at that instant we are
already away from AP, and scan results does not have both the APs.

Hence, the fix is to copy the current profile to previous profile
unconditionally (in csrNeighborRoamIndicateDisconnect)

Change-Id: Icefb89ed4eaa50daa93797c4675c71a334b992c7
CRs-Fixed: 499630
wlan: Exit BMPS when host sends DEL_STA msg to firmware

As firmware cannot handle DEL_SELF_STA msg in BMPS state
host will do exit bmps and then will send DEL_STA msg.

Change-Id: I7d70ab3df475084383779503066c9316ca10b0ef
CRs-Fixed: 498124
wlan: Enable GTK rekey offload

Earlier case supplicant was handling GTK rekeying
even when wlan suspended thus wlan host had to
come out from the sleep for GTK rekeying.
with this change, support for GTK offload has been added
so that firmware will take care of GTK rekey when
wlan is in suspend mode.

Change-Id: If1a63f3ad5953298da5e2d5cb8e9eb098dbd069a
CRs-fixed: 467114
Add beacon filter for channel width change in VHT operation IE

Add support for handling the channel width change in VHT operation
IE. Updates the channel width whenever AP advertises the change in
channel width in VHT operation IE in the beacon.

Change-Id: I21aeb33dd039065051f9f0c69ad8f208d3950b92
CRs-Fixed: 496042
wlan: fix for printing non-null terminated ssid properly

SSID is now printed with precision in %s.
This prints only characters upto length of SSID.
In this error message, SSID looks cleaner and legible

Change-Id: Ifa46f8ae67202c5776d6f31ffef3bec4a306d57b
CRs-fixed: 494110