Merge "wlan: cs release 3.2.0.81"
TDLS Support for the P2P interface

Make the HDD TDLS Context separate for each interface and have the
TDLS connection information common for both interface in HDD global
context.

CRs-Fixed: 458139
Change-Id: I07f06f3caa446d6d57645ff1abcb0dd09f4b0ea4
Fix for the crash while sending TDLS mgmt frames

Check the Bss desctiption pointer for NULL before accessing
the bssid when sending TDLS mgmt frames.

CRs-Fixed: 453497
Change-Id: I77d567c595b3c0b91e2877a5fc9169925967a6bd
Fix for link not establishing in multiple peer scenario

Dont send setup indication to supplicant for the peer if, the
status of same peer link is eTDLS_LINK_CONNECTING.

CRs-Fixed: 460926
Change-Id: I5e30d293ac4904ad68d1f715439ac3ad44e693c7
Pass TDLS Peer Capabilities for Rate Adaptation

Firmware needs the capabilities of the peer to implement the RA.
Update the peer's capabilities as part of the change station
from the supplicant.

Change-Id: Ic16ce5e58d4b96c9b49f24a6141e39ae786a6dce
CRs-fixed: 452921
Fix the compilation issue

Compilation issue when FEATURE_WLAN_TDLS flag is disabled
in Kbuild.
Make the call to wlan_hdd_tdls_add_station under
FEATURE_WLAN_TDLS flag.

CRs-Fixed: 462590
Change-Id: I6227448ba19b4c3d8b86223115bd5aedca753de2
wlan: Release 3.2.0.82
wlan: Avoid invalid channel configuration for GO/SAP.

If supplicant sends invalid channel then return with
EINVALID error.

Change-Id: I57183a36966ad8bd5b9df6edb6796989b2823fde
CRs-fixed: 441604
wlan: maxTxPower should fall between the range

A new function added which caps the value of maxTxPower
between 13 to 19

CRs-fixed: 438160
Change-Id: If63f594c929fded97d6a4e989789ee2ea068b522
wlan: iwpriv getRoamRssi to query RSSI from roaming engine

A new iwpriv getRoamRssi is supported to query RSSI from
the LFR firmware monitoring.
Since the RSSI monitoring and penalization is done in
Riva in BMPS mode. Iwpriv wlan0 getRoamRSSI fetches RSSI
from the riva only in BMPS Mode. If this command is used
while not associated or not in BMPS mode, it returns a value of 0

Change-Id: Ifa660c51685af5dd5d20b28546aa1b9d4f217082
CRs-Fixed: 427473
wlan: Memory leak fix in WDA/WDI

If there are back to back req from UMAC, some gets buffered in
WDI Q. After deQ if the req fails, there is no way to notify
WDA, hence the memory leak. The fix is to address this scenario.

Change-Id: Iefa41c8a7e7f6a9550591aa325768d2d930173b9
CRs-fixed: 455843
wlan: Kbuild: remove obsolete -D flags

Recently some obsolete conditional compilations were removed from the
source code.  Since the conditional code no longer exists, it is no
longer necessary to define the enabling macros as part of the wlan
driver build, so remove all (currently) obsolete -D flags from Kbuild.

CRs-fixed: 452041
Change-Id: I6b0d4bafe5b2c9bb0039eb98431f6c4547aff85d
wlan: remove obsolete VOSS_ENABLED featurization

The current code has VOSS_ENABLED conditional compilation.  This is no
longer a feature but is an integral part of the driver, so remove the
conditional compilation.

CRs-fixed: 452041
Change-Id: Ie71d5213a9bb9a5f945ee3e7509678d9c8b71c67
wlan: remove FEATURE_WLAN_UAPSD_FW_TRG_FRAMES featurization

The current code has FEATURE_WLAN_UAPSD_FW_TRG_FRAMES conditional
compilation.  This is no longer a feature but is an integral part of
the driver, so remove the conditional compilation.

CRs-fixed: 452041
Change-Id: Ic41813683b016d6ac9eff432f7736099cb833aba
TDLS: Fix for low throughput in 2.4GHz

When AP is 2.4GHz TDLS is picking up only fixed
rate index 67.
Send the correct value of ChannelWidthSet to the firmware
i.e. zero when TDLS link is on 2.4GHz band.

CRs-Fixed: 462399
Change-Id: I894632dc5148c8f6704e5763e9237babc7173feb
wlan: encrypt gtk 2/2 message during wpa authentication

The TL state machine does not move to authenticated state till
GTK is installed. And TL does not allow encrypted data in case
of WPA(2) till it goes to authenticated state.
In case of WPA after the 4 way handshake when AP and STA do the
GTK handshake the STA does not encrypt the GTK 2/2 message and
the AP drops it. Some APs detect MIC failures in such a case.
Make changes to encrypt the GTK 2/2 message even when TL is not
in authenticated state.

CRs-Fixed: 453977
Change-Id: I93ab0304186645996bbfe2e2a895e8fb3c082235
wlan: Fixing memory leaks in roaming

There are memory leaks when an association fails while roaming. Ensure that
memory allocated is freed in case of failure or during clean-up.

Change-Id: Idf9543981b9977e19bf4da58c848a8752ebd6bfd
CRs-Fixed: 456763
Remove redundant new line in SME logs

Remove \n in log msg to make available of more logs when device
gets crashed.

Change-Id: I75dc47c921143229713ee7d55186e5242fdfa5f4
CRs-Fixed: 441138
wlan: Release 3.2.0.83
wlan: Increase TIM_IE_SIZE to accommodate 41 STA

With 41 STA support, TIM_IE_SIZE increased to allow 41 STA in bitmap.
TIM_IE_SIZE=0xA can support max 40 sta. Increase by 1 byte.

CRs-fixed: 461524
Change-Id: I1dc91def5dbaebc255d660435088341ea2a38de6