wlan: Install stipped-off version of prima driver.

Changes in the prima Makefile for LE to install
stipped-off wlan driver version.

Change-Id: I3441bc8c7c1393b9b14b5554c41d9be200d4f08b
CRs-Fixed: 703808
wlan: Set proper buffer size in AddBA rsp.

Currently if Buffer size in AddBA rsp comes as 0,
it is set to 64 bytes by default and all non zero
buffer size is passed without any check.As a part of
fix , if buffer size is 0, its been set to buffer size
in AddBA request.For all non-zero buffer size, minimum
of buffersize in AddBA request and rsp is taken.

Change-Id: Iddf4719ac748a62c811bda9fd57cf8856db4ad88
CRs-Fixed: 701131
Wlan: Revision 3.2.3.393

Revision 3.2.3.393

Change-Id: Ibca1eb64445e35f3aebd72871745b43940337ce3
CRs-Fixed: 688141
wlan: Protection of active session while disconnecting with spin lock.

[wpa_supplicant]wlan: wlan_hdd_disconnect: Set HDD connState to
                      eConnectionState_Disconnecting
[wpa_supplicant]wlan: wlan_hdd_decr_active_session:
                      No.# of active sessions for mode 2 = 0

If driver calls wlan_hdd_disconnect function and changes
connection state to eConnectionState_Disconnecting, at the
same time if thread context switch happens, hdd_DisConnectHandler
can also decrease active sessions.

[VosMCThread] wlan: ****eCSR_ROAM_DISASSOCIATED****
[VosMCThread] wlan: hdd_DisConnectHandler: Set HDD connState
                    to eConnectionState_Disconnecting from 2
[VosMCThread] wlan: hdd_connSetConnectionState:
                    ConnectionState Changed from oldState:2 to State:5
[VosMCThread] wlan: wlan_hdd_decr_active_session:
                    No.# of active sessions for mode 2 = 255

Here due to thread change, hdd_DisConnectHandler is being called
with connected state and driver will try to decrease active sessions
again.

Fix is to apply spinlock before getting connection state and
after setting connection state.

CRs-Fixed: 704001
Change-Id: I80dfac5324f6731896d5d2ae23d863173c85b455
wlan: Fix to avoid SAP operating in DFS channel.

In ACS, SAP was never picking up channels based on the country code
acquired after the weights are computed for different channels. This
commit ensures SAP to pick the least congested channel based on the
country accquired.

Also, if all of the channels in the specified ACS range are disabled,
currently SAP will pick a default channel 6 if band selected is 2.4G
and default channel 40 if band is 5G. This is an issue in a scenario
where the specified ACS range is 5G and the country accquired has only
2.4G channels. As SAP would be picking an invalid channel 40 by default.
To address scenario, pick a default channel from 2.4G as 2.4G channels
are present in all the countries.

CRs-Fixed: 704735
Change-Id: I1b399d24f65af8799c1b17714a9f5b4e22ff8d0d
wlan: Don't decrease no of sessions if no of session is zero.

If due to some reason wlan_hdd_decr_active_session
is being called when active sessions are zero;
wlan_hdd_decr_active_session will make active sessions
as 255. Next time driver will not be able to connect
as no of connected sessions will be 255.
Fix is to Don't decrease no of sessions if no of session is
zero.

CRs-Fixed: 704947
Change-Id: I29b5112b042b84872d243b53ba5b912e4823a41f
wlan: Add NULL check for FTM ioctls.

Add NULL check to FTM IOCTLs to avoid crash if user/app tries to
execute the ioctls without using ioctl to allocate memory.

Change-Id: Ic68dee653289351c0d9f782a380c106abfa0f984
CRs-Fixed: 703779
wlan: EXTScan, adding ini parameter for llstat and EXTScan

added ini parameter gEnableLLStats and gEnableEXTScan for
enabling/disabling Link Layer Statistics and EXTSCan feature

By default these parameters are enabled. ie set it as 1.

Change-Id: I392337f3a50f40ab30120c7952d8c77bafb7f131
CRs-Fixed: 704519
Wlan: Release 3.2.3.394

Release 3.2.3.394

Change-Id: If623f4c6b7c3e929f2eaecc4b069c272defa0676
CRs-Fixed: 688141