Merge "wlan: Handling different connect states in virtual interface removal"
Merge "wlan: Split HDD control and Data path logs"
Merge "wlan: In SAP case, split HDD control and Data path logs"
Merge "wlan: Fix wlan_write_to_efs size"
wlan: Logging Infrastructure

Enhance driver to send the driver log messages to the userspace
app. This helps in enabling more log levels in driver without
any issue of device going into download mode due to excessive
logging.

Change-Id: I18d5e593823e394464c0a4824351c4417dca5476
CRs-Fixed: 628075
(cherry picked from commit 55fd6c173286517e34ad865784618d3c46b225ce)
wlan: protect the DXE low resource timer by a compilation flag

DXE low resource timer is started when DXE detects that VOSS
packets are not available for receiving packets and if the
VOSS resources are not made available within the timer
expiration deadline it will panic the system. Add the
timer code within a compilation flag so that the users
can choose to use the driver without the low resource
timer if required.

Change-Id: Icbb6ddfe3ab59fc52e545f3f2a5e7a18809bee1a
CRs-Fixed: 627231
wlan: enable CH144 for only NV version 3

Check for valid and enabled channels while copying 11d scan channel
list. Without this 11d scan is issued on the channel(like CH144)
even for NV.bin which doesnot support it.
And enable CH144 for only NV version 3.

Change-Id: I41423d7f29da02a38b3f19c7b242985c9ec96348
CRs-Fixed: 614247
wlan: SAP is able to select channels marked as unsafe.

If channel no. 14 is present in the 20Mhz scan list
the algo  is not able to populate channels higher than 14.
If SAP  scan results are NULL, SAP is able to select unsafe
channel( 1st channel from the sapContext->channelList ).

Adds the logic to process channel higher than 14.
Populate the SAP scan list(sapContext->channelList) only
with safe channels, so if scan result are NULL,
it will only select safe channel.

Change-Id: I52770cd6f20baf5a40dcb6af25140fb4d131f53e
CRs-Fixed: 626942
wlan: add extra debugging when DXE channel error is detected

When DXE channel error is detected the driver issues SSR, and
if SSR is enabled the system wont panic and we will not get
the ram-dumps for static analysis, so add some extra debug logs
when DXE error is detected these logs will vary from error to
error and will help to collect relevant debugging information

Change-Id: I5f1f389ac45aa24a8b8d8e514cf3e40367fa6828
CRs-Fixed: 629354
wlan: Send deauth and disassoc frames using wq5

To ensure that disassoc and deauth frames are transmitted
without fail, driver will send these frames over wq5, so that
firmware will ensure to send these frames even
though DEL_STA is sent immediately. And diver need not wait
for an ack from firmware since it is sure these frames
will be transmitted.
Hence a new flag FW_IN_TX_PATH is introduced in driver, which
when enabled will ensure that the frames are sent over wq5.

Change-Id: Ie5f523c3bce817b3e1afb80b8dfae12afcc790ab
CRs-Fixed: 567858
(cherry picked from commit 64ac8da609c73ec817e10d12a2bee62c3e369e9c)
Fix continuous scan req failure because of connection in progress

In random case, driver rejects all scan request for longer time saying that
connection in progress. There are two changes covered in this patch to fix
that issue.
1) When disconnect request comes from user space, wlan_hdd_disconnect()
   issues disconnect request to SME and waits for the disconnect completion
   with 500ms timeout. In some rare cases, whole disconnection process
   takes more than 500 ms to complete. On such senario, wlan_hdd_disconnect
   posts success to upper layer (immediately after 500ms) even before whole
   disconnection process completes. To force wlan_hdd_disconnect() to wait
   more time, disconnect timeout value is increased from 500 ms to 2 sec.
2) Also, scan done callback changed to report correct scan status to
   cfg80211. Earlier scan result status always informed as success
   irrespective of actual scan result. This change mainly for cfg80211
   not to post any scan results to user space in scan failure cases.

Change-Id: I651a35532d9594615de2731f992ff1b6aeb2cb0b
CRs-Fixed: 623307
(cherry picked from commit f64f7c4a32b7fb9de16e690889e720801d7c840e)
wlan: Process the first MissedBeaconInd from FW.

When Host receive MissedBeaconInd from FW, it checks if
LimRxedBeaconCntDuringHB is set. If set then it reset it
and ignore the first indication.

Remove the check for LimRxedBeaconCntDuringHB as FW has
already indicated that it missed 40 beacons.

Change-Id: I5fbde52846a25257a4071171b1be6ba0d952da44
CRs-Fixed: 635693
TDLS: Set tdls hdd context to NULL after freeing

While exiting the tdls hdd context after freeing the peer list
we should also set TDLS context in STA session context of adapter
to NULL.

CRs-Fixed: 637112
Change-Id: I5d8f99b74d1421434e28dc3d0a43dde306292fe3
wlan: wdi: Replace VosAssert with VosTrace for message failure

There is need to decrease excessive logging in case of messages
being dropped by SMD Bus during SSR. This generally happen when
bus state is WCTS_STATE_REM_CLOSED. For this reason removing
VosAssert and adding additional info in VosTrace.
CRs-Fixed: 636462
Change-Id: Ic03e51a7c45e102782613bb0fc368655d904adf0
TDLS: replace mutex_lock_interruptible with mutex_lock for tdls lock

Use  mutex_lock instead of mutex_lock_interruptible to avoid race
condition which can occur due to interrupts.

Change-Id: I9ba790926e0b9467e7d2fc2aae0e1d5169231045
CRs-Fixed: 637112
Merge "wlan: do not enter IMPS if DXE rings have pending TX data"
Merge "wlan: Logging Infrastructure"
Merge "wlan: add macros for update channel list capabality"
Merge "wlan: VOSS: add API to get frequency from channel number"
Merge "wlan: add update channel list request support"