wlan: Add GO LINK MONITOR TIMEOUT config param.

Added GO LINK MONITOR TIMEOUT ini param to calculate total
effective detection time to delete inactive P2P clients.

CRs-Fixed: 531064
Change-Id: I9c48e3a96d8b490b8ca94fedfe6a310b1bb20eeb
wlan: Add traffic monitor on SAP/P2P-GO mode ini change

To address the issue wherein APPS fails to power collapse
when OBSS protection is enabled,
we need to implement an IDLE traffic monitoring
logic in the HDD: it needs to detect 2 states:
IDLE STATE: HDD transitions to that STATE
when there is no traffic for a configuration duration in cfg file.
ACTIVE STATE: this is the initial state when SAP comes up.
HDD moves also to that state
when it sees traffic when in IDLE State.

Change-Id: I3010f753d553c44f58c57dc7498a67fad4a5d518
CRs-fixed: 495899
TDLS : Enhance Link Establish Message to pass off channel info.

Firmware needs offchannel parameters of the peer to perform
the off channel operations.Hence, pass the same.

CRs-fixed: 535301

Change-Id: If3edc6e448dce6793c503e563043672574d63757
wlan: Fix for watchdog timer bark issue.

Sometimes when traffic is running and we turn OFF
WiFi, netif_tx_disable is called from hdd_disConnectHandler
notifying the apps that we can't pass the traffic down
any more and deregister STA from TL by invoking
hdd_roamDeregisterSTA. Though the TX is disabled sometimes
hdd_hard_start_xmit is getting invoked and calls the
WLANTL_STAPktPending on unregistered station id, in this
case excessive logging causes watchdog timer bark.

To mitigate this issue, in hdd_hard_start_xmit add a condition
to check whether TX queue is stopped. If the queue is stopped
return NETDEV_TX_BUSY.

Change-Id: I5e24d5ea939a4eaa8157bad16c4d5149a5aed4ee
CRs-Fixed: 456214
Wlan: Revision 3.2.3.171

Revision 3.2.3.171
Wlan: Fixing the copyright commits

feature: Implement embedded template in NV
Wlan: Enable/Disable dynamic split scan

Enable/Disable the split scan dynamically based on the traffic
on TX and RX side. IOCTL to support miracast.

Change-Id: I249c3f7eec624cc06a6cd1829f6742a04c3efae3
CRs-Fixed: 468913
wlan: Add set MC rate IOCTL

Add capability to set MC rate through IOCTL interface.
Add iwpriv functionality also for testing reason.

Change-Id: Ie293b766410987f8814eb278ba14dc3eff11ea63
CRs-fixed: 532328
wlan:Updated SAP-ACS algo to consider 4 interference channels

Modified AutoChannelSelection algorithm to consider
upto four adjacent channels as the interfering channels
for a particular channel in 2.4Ghz band.

Change-Id: I26b92e24a147104f2e6868c8aeae5f375d8f33c8
CRs-Fixed: 491068
SCAN-OFFLOAD: Adding separate SME queue for scan commands.

In concurrent scenarios when scan is issued from the host, the FW will
do the split the scan. In this case the scan is going to take huge time
to complete. Adding a separate SME to queue for scan commands, to avoid
the blocking the SME sme command active list till scan gets complete.

Change-Id: I12e162f69f809e5849a9decaf99d7fd0f1c0015c
CRs-fixed: 500914
wlan : To remove PAL memory wrapper in PE(5)

This is to remove PAL memory wrapper in PE and replace with vos calls.

CRs-Fixed: 520321
Change-Id: I7afe36e4a36e33f4cbf75f4a81f041c2b385cb8e
wlan: Enter download mode upon unexpected WDI response message.

When unexpected response message is received at WDI layer,
trigger device into download mode. This enables gathering ramdump
and determine the source of invalid response message from WCNSS.
This is controlled by PANIC_ON_BUG flag in Kbuild.

Change-Id: I119cd863d58377b746cc0d1f2c85a68c5154d9b8
CRs-Fixed: 535683
wlan : 11r : Reassoc Request with zero medium time in Tspec

Medium time in Tspec of reassoc request is non-zero due to which
AP is failing the reassociation. Change is to make the medum time
zero in the spec of reassoc request

Change-Id: Id30dcc0c93fdc45199c31fe5bc292fe287903424
CRs-Fixed: 534799
Fix for STA sends data packets only at 1Mbps

When STA is in 11N mode and AP is configured in only 11B,
STA sends data packets only at 1Mbps due to host not sending
11b rates to firmware.populate 11b rates to firmware

Change-Id: I22a5bb8466c98a8086acc18680f0a01813fbe16f
CRs-fixed: 523521
wlan: PMF connection state not initialized correctly

Fixes a problem on the Soft AP where the Protected
Management Frames (PMF, 802.11w) connection
state for an associated station is not initialized
correctly in the open-security case.

Change-Id: I9715507a09aa7e1a855870495a9da62646e5c1f2
CRs-Fixed: 524449
wlan : wmm : Enable UAPSD properly for all ACs with UAPSD mask

With UAPSD mask enable in ini, UAPSD is not enabled properly
for all the ACs except Voice. Change is made to enable UAPSD
for all ACs properly with implicit and explicit QoS enable.

Change-Id: I251607fbf34a5ec0162b808a25fca20fcdd88c6e
CRs-fixed: 530368
wlan: Static source code analysis fixes for HDD

Fixes for WLAN host driver HDD module based on static source code analysis.

Change-Id: I2c1db7b688d4caccb82e746849648110c2481174
CRs-fixed: 466197
wlan: Do not close host driver if debugfs initialization fails

Debugfs initialization should not block host driver to start. Make sure
host driver will continue to initlialize even if debugfs interface
initialization fails.

Change-Id: If97882a4c159af0c2ee7d9c536736d468c21df45
CRs-Fixed: 524374
wlan: PNO mode ssid kmsg printout unreadable

ssid is defined as an array of char with maximum 32 bytes.
Without explicit definition,unreadable char may appear when
it is printed in string format as no null as delimiter.Explicit
print format will avoid this situation.

Change-Id: I02692c9339ebf2cc51149b686dd6630eee7f671d
CRs-Fixed: 531386
Non-zero dialog token of ADDBA req frame

Dialog token of ADD BA request should be non-zero value.

Change-Id: I74888d46a6f3df2bc1d18b95d43aaffa5489e462
CRs-fixed: 533225