wlan: Update the maximum transit power of an STA.

According to the spec, the local maximum transmit power for a channel
is defined as the maximum transmit powerlevel specified for the
channel in the Country element minus the local power constraint
specified for the channel in the Power Constraint element. This
fix updates the max transmit power according to the spec before
sending it to the FW.

Change-Id: I30c3ec5054651863cd200f92528b7dffa74403d1
CRS-Fixed: 679356
wlan: add support for enhanced WMM-PS

add new configuration parameters in the driver
to support the enhanced WMM-PS implementation
in the firmware

CRs-Fixed: 706003
Change-Id: Ic86755c1be0cfbf4d755eb1bf5f01f60323e766f
wlan: Restart SAP to ensure STA+SAP scc.

To force SCC scenario, SAP will be restarted
on STA channel after STA is successfully connected
on a different channel. If STA channel is same as
SAP operating channel, both will operate on that
channel.

Change-Id: I5ce6bcefffbd54652e25bdcd20df63b35ceff4e6
CRs-Fixed: 705488
wlan: Need to free Active sessions in case of SSR.

If SSR happens; active sessions are not being cleared
so that after SSR recovering station will not be able to
connect again as max concurrent session will be reached.

CRs-Fixed: 705506
Change-Id: I39e031e370c507243329d33061286a98d0ab4f77
wlan: add dynamic WMM-PS support

Add firmware definitions for dynamic WMM-PS support.
Host driver will use these definitions to configure
the firmware to use and tune the dynamic WMM-PS functionality.

Change-Id: I50f4409b00bde2ce7d8b1f62265539f58497e4f7
CRs-Fixed: 705980
wlan: Disable RA filter feature.

By default disable RA filter feature.

Change-Id: I2051b8f33a1da5415cb05418d107340a642a1260
CRs-Fixed: 705474.
Wlan: Revision 3.2.3.395

Revision 3.2.3.395

Change-Id: I0d57473ad96c1fe2137d3bb0bf82963ecca7c6c4
CRs-Fixed: 688141
prima: TDLS Off Channel ioctl support

TDLS Off Channel ioctl support host side implementation.
This ioctl will provide the parameters to f/w for switching
to target channel as needed by certification test.

Change-Id: Iebff803bec5fd56acc0272cb1d1c1b7f1c77c0a8
CRs-Fixed: 703740
prima: TDLS Off Channel ioctl support, HAL changes

HAL changes to support TDLS offchannel ioctl.

Change-Id: I068816fbf611aff74d2f05673805ca64b21947fb
CRs-Fixed: 703740
wlan: Fix kernel panic calling ioctl setTrafficMon.

In this issue ,user data was acessed through wrqu->data.pointer.
But data is only passed by pointer if data size is more than
IFNAMSIZ (16 bytes) for fixed size private ioctl .If data size
is less than IFNAMSIZ then data can be acessed from extra_size.

As a part of fix, made sure that data is acessed through extra_size
parameter.

Change-Id: If4b544d95473e0a877c387e8252bce84ef02feb7
CRs-Fixed: 704425
Wlan: Release 3.2.3.396

Release 3.2.3.396

Change-Id: Id9397da838a61591a6bac41bca8ce58bcc649c6d
CRs-Fixed: 688141
wlan: EXTScan, timestamp for the beacon/probe response

Time stamp in the real time scan results for GScan is expected
to be the time since boot when the result is retrived.
This commit ensure to retrieve the same through the newly
introduced VOS API.

Change-Id: I76c1365fff2f9fe0380ec91e35c2f0d1b04069f9
CRs-Fixed: 703959
Wlan: Release 3.2.3.397

Release 3.2.3.397

Change-Id: I4a97d82f711ed482c7afe1f8642d6e58a59cd509
CRs-Fixed: 688141
PRIMA:Assign large value to NlModType for wlan logging.

Changes to assign large value to NlModType enum that is
used for wlan logging so it would be easier to propagate
to different platforms.

Change-Id: Ib6e668305656cf8d7d11d1d6b11d0bb1f27bb785
CRs-Fixed: 708428
wlan: Enhancements to ensure a better BT session (VOIP)

Disable aggregation, scan and be in full power mode
during an active BT session (VOIP). Also, rename the
parameter WNI_CFG_DEL_ALL_RX_BA_SESSIONS_2_4_G_BTC_APMIN
to WNI_CFG_DEL_ALL_RX_TX_BA_SESSIONS_2_4_G_BTC_APMIN since
both the TX and RX sessions are torn down.

Change-Id: I4c76edabab26422935201f53d04ddbdb91d1c205
CRs-Fixed: 705363.
wlan: issue fiq instead of explicit SSR

Issuing explicit SSR may not restart WCNSS if it is power
collapsed, also WCNSS will not record register debugging
information when SSR is issued using the kernel API. Issuing
an fiq mitigates these issues, so issue fiq instead of an
explicit SSR.

Change-Id: I9c0ac657148620db31afae6326106a2f85ec7dc3
CRs-Fixed: 704368
wlan: Fix for MC_Thread hung during change iface.

During change iface, driver is trying acquire a mutex lock
for tdls_lock before hdd_stop_adapter which is already held
by a tdls API running in wpa_supplicant thread causing the
MC_Thread to be blocked. To address this, accquire a mutex
only after stop adapter to avoid MC thread to be blocked.

Change-Id: If31fa2a7bdb6e07d347eb3d3065fb1fa969ff62a
CRs-Fixed: 706800
wlan: remove WQ5 flag for ARP packet.

Remove the changes to route the ARP packet though WQ5 as no data
frame should be routed through WQ5.

Change-Id: I810ea4dead6952804d0dbb51976126d15535110b
CRs-Fixed: 708377
wlan: Don't Decrease Active session in case of roaming

Active session count is decremented upon disconnection, but during
roaming, there is no disconnect indication and hence active session
count is not decremented.
After roaming is completed, active session count is not incremented.
So driver should not decrement Active sessions.

CRs-Fixed: 706105
Change-Id: I73f734bcbbeda6317841e40b85e1950894351511
Wlan: Release 3.2.3.398

Release 3.2.3.398

Change-Id: Ia571da81a91187438d581d9d90bbdadbe4928132
CRs-Fixed: 688141