Commit grafiek

3305 Commits

Auteur SHA1 Bericht Datum
qcabuildsw
a85a3e1e2f Release 5.2.0.5
Release 5.2.0.5

Change-Id: I99d405e9f49b6e3f244efd0b127628f0c68ede59
CRs-Fixed: 688141
2017-01-12 13:45:53 -08:00
Dustin Brown
9d797d6b67 qcacld-3.0: Track WoW stats per vdev
Currently wake-on-wireless wake-up stats are tracked globaly. Split
WoW stats tracking per virtual device instead.

Change-Id: If913081cf726d20b9cda2dde58a9b9f4f7cbcf19
CRs-Fixed: 1110403
2017-01-12 13:45:50 -08:00
qcabuildsw
4ead0fe522 Release 5.2.0.4Z
Release 5.2.0.4Z

Change-Id: I1787a101750cdf640162ec2114e71bb51ffe10b0
CRs-Fixed: 688141
2017-01-12 13:12:53 -08:00
Krunal Soni
4274f36bcd qcacld-3.0: Allow full spectrum scan when agile & aDFS scan supported
Traditionally full spectrum scan on STA/CLI is not allowed when SAP/GO is
already present on DFS channel.

With new generation of hardware, agile scan and agile DFS scan features
are supported which will allow hardware to do full spectrum scan even if
SAP/GO is present on DFS channel.

Change-Id: I7e5a21601642e0d6afef73beeecf80a3e0475909
CRs-Fixed: 1103730
2017-01-12 13:12:51 -08:00
qcabuildsw
6325d269f4 Release 5.2.0.4Y
Release 5.2.0.4Y

Change-Id: I66d5be169957769995b690fb1b645ee22e7a823f
CRs-Fixed: 688141
2017-01-12 10:03:02 -08:00
Rajeev Kumar
699debfa8f qcacld-3.0: Create object manager API files in HDD
Create HDD object manager API files and move HDD object manager
APIs implementation inside it.

Change-Id: I762c8a4aafb67c35ef1eb07a7efa5b826659754e
CRs-Fixed: 1108557
2017-01-12 10:03:01 -08:00
qcabuildsw
92d6b37281 Release 5.2.0.4X
Release 5.2.0.4X

Change-Id: Iaddae60b2bc23e67eeae577e5fcc4dc15b38bf8a
CRs-Fixed: 688141
2017-01-11 22:15:29 -08:00
jge
620378686e qcacld-3.0: Reset IPA disconnect events(AP/STA) during SSR
This is a qcacld-2.0 to qcacld-3.0 propagation.

IPA disconnect events(WLAN_AP_DISCONNECT/WLAN_STA_DISCONNECT)
are not sent to IPA driver in case of SSR. This is resulting
in mismatch between IPA driver and HOST driver, and headers in
IPA can't be freed, which causes memory overflow after multiple
times SSR.

Change-Id: I9c84cc84d943d6e3c6604db7b859127a7af5a654
CRs-Fixed: 1069083
2017-01-11 22:15:28 -08:00
Paul Zhang
5e1eccc664 qcacld-3.0: Calculate LI per AP's BI and DTIM
Propagation from qcacld-2.0 to qcacld-3.0.

Assuming gEnableModulatedDTIM=9 and gMaxLIModulatedDTIM=9,
when AP's beacon interval is 100ms, the DUT's listen
interval is 900ms, it is OK; But if AP's beacon interval
is 200ms or more, the DUT's listen interval is 1800ms
or even more. This causes large data latency.

Change-Id: I622ae9ab21aaf23c585ca67efa8452a705f8e3f0
CRs-Fixed: 1087619
2017-01-11 22:15:26 -08:00
qcabuildsw
aa4bf8a5d9 Release 5.2.0.4W
Release 5.2.0.4W

Change-Id: I682aba6ae86180fbd71557a7fa72b0e4bbce7332
CRs-Fixed: 688141
2017-01-11 20:54:31 -08:00
Tushnim Bhattacharyya
d07dc906c7 qcacld-3.0: Fix for 2x2 DBS capability
Fix the way DBS capability is read from FW dev cap. Also, add HW mode
request for 2x2 DBS.

Change-Id: I935a2d0f4a7eed1517a3263fb8b29838f135f91e
CRs-Fixed: 1068000
2017-01-11 20:54:30 -08:00
qcabuildsw
c9c17e0684 Release 5.2.0.4V
Release 5.2.0.4V

Change-Id: Icee4cdcff3d842b150d0cc3684eb76a921eb8f65
CRs-Fixed: 688141
2017-01-11 13:34:25 -08:00
Poddar, Siddarth
2333acba36 qcacld-3.0: Register Bus bandwidth timer directly with kernel
Currently, bus bw timer is defined globally and it access the
adapter nodes.The crash can happen when the adapter is getting
deregistered in one thread and in another thread bus bw timer
handler is trying to access the same adapter.

To mitigate this issue, bus bw timer needs to directly registered
with kernel and once the timer callback is executed then it needs
to schedule a workqueue where all the processing is done.
While closing the adapter, do flush_work for this timer to
make sure that workqueue is done and then it is closing the adapter.

CRs-Fixed: 1104615
Change-Id: I81a7bfa43e3fb43488966dda702c6f394f9b40c7
2017-01-11 13:34:24 -08:00
qcabuildsw
88aecb8a23 Release 5.2.0.4U
Release 5.2.0.4U

Change-Id: I30e95423b50bea1fc4c156d03116c1ea11a5c23e
CRs-Fixed: 688141
2017-01-11 12:18:24 -08:00
Jeff Johnson
03294f192b qcacld-3.0: Fix checkpatch errors in HDD
Over time some checkpatch errors have crept into the HDD code, so
fix the issues that should be fixed.

Change-Id: I9287a724b856bcc62ac284ba66e68cdf12077646
CRs-Fixed: 1102140
2017-01-11 11:02:55 -08:00
qcabuildsw
0a6ea03f36 Release 5.2.0.4T
Release 5.2.0.4T

Change-Id: I222698eccc9ab18e6474fb5a07676f558ad25e37
CRs-Fixed: 688141
2017-01-11 09:06:43 -08:00
SaidiReddy Yenuga
c56a767e70 qcacld-3.0: Remove NULL check in get Tx power API
Adapter can be NULL and accessing it result in crash
Remove NULL check for adapter to avoid crash

CRs-Fixed: 1094603
Change-Id: I1c7efdfeb7829640cef740f873cb367befd810c9
2017-01-11 09:06:42 -08:00
Yun Park
8b2bc4b7e1 qcacld-3.0: Add unsigned long long type conversion for qdf_dma_addr_t
Fix the compilation error: '%llx' expects argument of type 'long long
unsigned int', but argument 4 has type 'qdf_dma_addr_t' [-Werror=format=]

Change-Id: Iccb24e7da2c665c43b7ea8c03d3a00866935658f
CRs-fixed: 1102676
2017-01-11 09:06:40 -08:00
Mohit Khanna
816e653f75 qcacld-3.0: enable TSO only if IP/UDP/TCP checksum is enabled
Enable TSO only if both gEnableIpTcpUdpChecksumOffload and TSOEnable=1
flags are enabled in the ini file.

Change-Id: I8004c381be06fd85883e9537038d32622a7e39dc
CRs-Fixed: 1099742
2017-01-11 09:06:38 -08:00
Kabilan Kannan
3c0a735b24 qcacld-3.0: Add SAR power limit configuration
There is a regulatory requirement for Specific Absorption
Rate (SAR) whereby the phone transmit power is reduced
when it is determined that the phone is in close
proximity to the body.
Implement a vendor command interface to set SAR power
limits dynamically.

Change-Id: I137ce9bde2fa05e363d5af17e155dc739d862c5f
CRs-Fixed: 1098102
2017-01-11 09:06:36 -08:00
Selvaraj, Sridhar
9c47fef814 qcacld-3.0: Update BSS in cfg80211 database on channel switch
Currently, on channel switch, driver is updating only channel switch
not updating the BSS database of cfg80211.

For channel switch, update the BSS with inform_bss

Change-Id: If68b8c5ee7ab5b793a819a609ce5eeb022df75b8
CRs-Fixed: 1099452
2017-01-11 09:06:35 -08:00
Abhishek Singh
61084986b6 qcacld-3.0: Fix double free issue of assoc_req
lim_update_sta_ds can free the assoc_req internally and make it NULL
but as its passed by value the modified NULL value is not seen in the
caller lim_process_assoc_req_frame and thus double free is seen.

To fix this pass assoc_req by context to the lim_update_sta_ds.

Change-Id: If4255e3096f91debf2a23688d4dd36ba90475d1b
CRs-Fixed: 1100562
2017-01-11 09:06:33 -08:00
yeshwanth sriram guntuka
27e4ffcd83 qcacld-3.0: Add TSPEC IE in reassoc request for LFR3
In LFR3, for ccx scenario TSPEC IE are missing in
reassociation request frames initiated by FW.

Assoc IE are sent to FW via CSR Roam Scan Offload as
soon as connection is successful. Add the TSPEC IE
while sending assoc IE to FW via RSO command.

Change-Id: Ifa6145bfa209cca428321db9056c01c3a4b140de
CRs-Fixed: 1096199
2017-01-11 09:06:31 -08:00
Naveen Rawat
b56880cd83 qcacld-3.0: Match the timeout values at HDD with SME cmd timeout
Change the timeout values at HDD to match sme cmd timeout in all the
instances where HDD is sending cmd via SME command queue.

Change-Id: I00337169804b9ce71562cb114e4c2b92a7534dba
Crs-Fixed: 1100854
2017-01-11 09:06:29 -08:00
Sreelakshmi Konamki
8b8257c844 qcacld-3.0: Retrieve BSSID to support vendor scan
Host doesnt have changes to support specific BSSID vendor scan
if supplicant set specific BSSID.

Add changes to get BSSID to do specific scan if supplicant set BSSID.

Change-Id: I2b0ba590814e6c99f7003abdf855d3264b03a060
CRs-Fixed: 1099020
2017-01-11 09:06:27 -08:00
Hanumantha Reddy Pothula
00c74f6084 qcacld-3.0: Deinit tx/rx histogram stats from hdd destroy context
Presently, tx/rx histogram stats are initialized during hdd create
context, but de-initialization of histogram stats is not processed
during hdd destroy context.

De-initialize histogram stats while processing hdd destroy context.

Change-Id: Id2eff48838d34e99dfa3dd5713bca2cd5a2c774e
CRs-Fixed: 1094115
2017-01-11 09:06:25 -08:00
Deepak Dhamdhere
a2785820c4 qcacld-3.0: Enable roaming only on wlan0
Current implementation of host driver will support fast roaming only
on a single device even in DBS mode. It is allowed on the first
STA, i.e. wlan device created in driver initialization. Dynamic roaming
disable/enable is allowed only on that device. Roaming is marked as not
allowed on other devices.

Change-Id: I3e3a72eb4d8fe81f6d3b784ab70023d2e3ac5618
CRs-Fixed: 1092386
2017-01-11 09:06:24 -08:00
Yun Park
b187d549cf qcacld-3.0: IPA_uC: Improve debug log for IPA uC
qcacld-2.0 to qcacld-3.0 propagation

Expand iwpriv command to dump HDD IPA priv, IPA sys pipe, IPA interface
context, and IPA Tx header data structure for IPA uC.

Change-Id: Ifb427281ec82c369de8711cfc684ef22b4f319f1
CRs-fixed: 931733
2017-01-11 09:06:22 -08:00
yeshwanth sriram guntuka
4e2fbd6c14 qcacld-3.0: Enable adaptive dwell scan by default
Set the default value of adaptive_dwell_mode_enabled and
global_adapt_dwelltime_mode config parameters to enable
adaptive dwell scan by default.

Change-Id: I4353f9a9c2bdebb48649cee4a7b7a8d124039e1b
CRs-Fixed: 1100193
2017-01-11 09:06:20 -08:00
Sreelakshmi Konamki
1bb6f31562 qcacld-3.0: Add scan_complete and scan_result_found diag events
Current implementation doesn't have diag events for SCAN_COMPLETE and
SCAN_RESULT_FOUND.

Fix to add SCAN_COMPLETE and SCAN_RESULT_FOUND diag events in PE

Change-Id: I8f3526eac5e1c323f62b0a4cff329db2dd8ef6b8
CRs-Fixed: 1096548
2017-01-11 09:06:18 -08:00
Arunk Khandavalli
702e170947 qcacld-3.0: Check driver state machine and stop iface_change timer during sap start
In a corner case the interface change timer is not getting stopped.
One such case can be:
1) Framework issues add interface command for softap
2) Turns off the wifi sta which check for any interface is opened
and if no interface is opnened it starts the interface change timer.
3) After this hostapd is attached and tethering becomes functional.

Once the interface timer is expired it closes all modules and as part
of del_station from the upper layer it tries to access pdev_txrx_ctx
causing system crash.

So, as part of the hostapd attach check for driver state machine and
also stop the interface timer if it is expired.

CRs-Fixed: 1094440
Change-Id: Ic973d53f09d901ead4fd0921cf3a593728e09c56
2017-01-11 09:06:16 -08:00
Arunk Khandavalli
cfe32d1cd7 qcacld-3.0: Validate if tlds is enabled before setting connection tracker
In the present scenario driver checks for  eTDLS_SUPPORT_DISABLED
before enabling the connection tracker for tdls mode. But if the
tdls is disabled from the ini or disabled in the firmware eTDLS_SUPPORT_NOT_ENABLED
is set in the tdls_mode. Checking for only eTDLS_SUPPORT_DISABLED is resulting
in enabling the connection tracker which tries to access the tdls_ctx
which is NULL.

To mitigate the issue also check for eTDLS_SUPPORT_NOT_ENABLED in the tdls_mode
before enabling the connection tracker.

CRs-Fixed: 1096830
Change-Id: I1e13af6b63aa058c19117efa99563540aa02da0b
2017-01-11 09:06:15 -08:00
qcabuildsw
9c25e91d4c Release 5.2.0.4S
Release 5.2.0.4S

Change-Id: Ieb9e274724bfa54561d54be03433de7e595a50b9
CRs-Fixed: 688141
2017-01-10 23:08:48 -08:00
Poddar, Siddarth
a78cac3fe6 qcacld-3.0: Relocate and rename cds_flush_cache_rx_queue()
API cds_flush_cache_rx_queue() is added as part of propagation
from qcacld-2.0. This function does not belong in CDS but
instead belongs in TXRX because corresponding function in
qcacld-2.0 is tl_shim_flush_cache_rx_queue() which is a datapath
function.

CRs-Fixed: 1106306
Change-Id: I6ca10fa9ebb7ad7cdc0b54ff7ed2cc0595b7d82d
2017-01-10 23:08:47 -08:00
qcabuildsw
c744c30792 Release 5.2.0.4R
Release 5.2.0.4R

Change-Id: I6366b3b518f97c30abe0c20b516c14613bc08976
CRs-Fixed: 688141
2017-01-10 19:01:33 -08:00
Peng Xu
6d578ef79e qcacld-3.0: Allow P2P listen offload count to be 0
0 is a valid value for P2P listen offload start command.

Change-Id: I015898073712678e5fcb5b016d25cdf1598568e0
CRs-fixed: 1109621
2017-01-10 19:01:32 -08:00
qcabuildsw
34c3332a52 Release 5.2.0.4Q
Release 5.2.0.4Q

Change-Id: I73a56764a8725450e25905c950a8dd2aba6b1b98
CRs-Fixed: 688141
2017-01-10 10:52:51 -08:00
Jeff Johnson
26c3f0a1c0 qcacld-3.0: Convert wlan_hdd_cfg.c to unified logging
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_cfg.c to use the unified set of APIs.

Change-Id: I5d55481198e5b0807afb40a3f7e3962aeb8d728a
CRs-Fixed: 937645
2017-01-10 10:52:49 -08:00
Jeff Johnson
a03996470e qcacld-3.0: Replace hddLog() in wlan_hdd_tx_rx.c
Currently in wlan_hdd_tx_rx.c there are several calls to the legacy
hddLog() logging API. There are several problems with this.
1) hddLog() is being deprecated.
2) hddLog() internally uses QDF_MODULE_ID_HDD and yet this file should
   only use QDF_MODULE_ID_HDD for the control plane and should use
   QDF_MODULE_ID_HDD_DATA for data plane.

To fix these issue replace the hddLog() calls with direct calls to
either QDF_TRACE(QDF_MODULE_ID_HDD_DATA, ...) or to the recently
introduced unified logging APIs depending upon whether they are
invoked from the control or data plane.

Change-Id: Ib214cbba33504c26e5c9321bebc699b1468964a5
CRs-Fixed: 1097425
2017-01-10 10:52:47 -08:00
Jeff Johnson
d5bd6fd2de qcacld-3.0: Replace hddLog() in wlan_hdd_softap_tx_rx.c
Currently in wlan_hdd_softap_tx_rx.c there are several calls to the
legacy hddLog() logging API. There are several problems with this.
1) hddLog() is being deprecated.
2) hddLog() internally uses QDF_MODULE_ID_HDD and yet this file should
   only use QDF_MODULE_ID_HDD for the control plane and should use
   QDF_MODULE_ID_HDD_SAP_DATA for data plane.

To fix these issue replace the hddLog() calls with direct calls to
either QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA, ...) or to the recently
introduced unified logging APIs depending upon whether they are
invoked from the control or data plane.

Change-Id: I9ca8b73fed8cd55ba7d2b587e3d513670eb4c64c
CRs-Fixed: 1097418
2017-01-10 10:52:45 -08:00
Yingying Tang
61910ef272 qcacld-3.0: Add support for QCA9379 SDIO & USB boards
Propagate from qcacld-2.0 to qcacld-3.0

This change add the corresponding support for QCA9379 which has new chip ID.

Change-Id: I252b75d9ae7b760a6a8f6931b4db753f50d3baba
CRs-Fixed: 990755
2017-01-10 10:52:43 -08:00
Liangwei Dong
f6e005e87b qcacld-3.0: Fix WME ParamSetCount error
qcacld-2.0 to qcacld-3.0 propagation

During the WFA WME test, the ParamSetCount in beacon
IE is mismatch with the value in ASSOC response.
The root cause is the value will be updated when
station gets connected no matter the WME parameter
changing or not.
The fix is to avoid updating the ParamSetCount count
when there is no change in the WME parameters.

Change-Id: Ied4cb68c6bbf210084bc3f94607354f2054f7fc0
CRs-Fixed: 1080760
2017-01-10 10:52:41 -08:00
Yingying Tang
95409972fb qcacld-3.0: Add support to set wakeup pulse for WoW
Propagate from qcacld-2.0 to qcacld-3.0

Host send WoW pulse setting information to firmware and allow
firmware to use this pulse to wake host

Change-Id: I632b3e85a8e113b8b8d4c927e822dce53f1b6727
CRs-Fixed: 924672
2017-01-10 10:52:39 -08:00
Yeshwanth Sriram Guntuka
6f8b875ed5 qcacld-3.0: Fix memory leak in CSR
Memory leak in csr_roam_synch_callback due to not
freeing memory allocated using
csr_get_parsed_bss_description_ies.

Free the memory in function csr_roam_synch_callback.

Change-Id: Iab8454850eabe029df4a3e0d868ca461686ed72f
CRs-Fixed: 1098966
2017-01-10 10:52:37 -08:00
Jeff Johnson
ee34b2e992 qcacld-3.0: Remove obsolete hddLog() macro
All instances of the hddLog() macro have been replaced with a new set
of HDD logging APIs. Remove the hddLog() macro, along with all
instances of the HDD_DISALLOW_LEGACY_HDDLOG guard macro.

Change-Id: Ia755c5f68725fa8d75ad73e61cfa350e2743a623
CRs-Fixed: 937171
2017-01-10 10:52:35 -08:00
Sandeep Puligilla
7a5b84d5b0 qcacld-3.0: Increase SAP open session timeout value
In failure scenario host got two commands, one is connect
request on the STA interface and the second one is add
interface/open session on softAP interface.
HDD/SAP queues the eSmeCommandRoam first to
the SME active list and then eSmeCommandAddStaSession to
sme pending list with timeout value of 2 secs at SAP.
Connect takes more than 2 secs due to which addStaSession
gets timedout.

Configure SME active timeout value to 30sec.
Increase the wait time at SAP for open session to 30secs
which is equal to the SME active command timeout value.

Change-Id: I77a0279421566ded7cd0eb7cde7871d3074ec5cf
CRs-Fixed: 1096771
2017-01-10 10:52:33 -08:00
Sandeep Puligilla
db1c590eae qcacld-3.0: correct module id in log messages
SAP module dubug message log contains QDF
module id.

Replace cds_err API with QDF_TRACE API to
log the correct module id in debug messages.

Change-Id: Ib39a95cd0688d6029c802c4710127a4c72ae6411
CRs-Fixed: 1098145
2017-01-10 10:52:30 -08:00
Jeff Johnson
72706ca5cc qcacld-3.0: Remove obsolete LOG_WLAN_LINKLAYER_STAT_C support
Diagnostic event LOG_WLAN_LINKLAYER_STAT_C is not supported by the
current driver, so remove all of the associated data structures.

Change-Id: Ief112fd0995946e98d2be3ac4c623af741e70528
CRs-Fixed: 1071955
2017-01-10 10:52:28 -08:00
Jeff Johnson
1a92f8cf5c qcacld-3.0: Fix HDD logging API in wlan_hdd_p2p (phase 2)
Previously "qcacld-3.0: Fix HDD logging API in wlan_hdd_p2p" fixed all
instances of legacy logging APIs in wlan_hdd_p2p.c. Unfortunately
since that time new instances of legacy logging APIs were added. Fix
those instances, and enable the compiler macro which will prevent new
instances from being added in the future.

Change-Id: Iaf9dc9a11943ec918a51aa8c9b97a5a49fad535b
CRs-Fixed: 1097439
2017-01-10 10:52:26 -08:00
Yun Park
de38078f7a qcacld-3.0: IPA uC: Round down Tx/Rx buffer count to nearest power of two
qcacld-2.0 to qcacld-3.0 propagation

In certain situation, allocated Tx buffer count could be an arbitrary
number, so not power of two. This could violate F/W ring buffer count
requirement. If allocated Tx buffer count is not power of two, round
down it to the nearest power of two.
The same change is also applicable for INI parameters IpaUcTxBufCount
and IpaUcRxIndRingCount.

Change-Id: I7c119886a669c79adbc7bd9b2c1c1d93de41cf72
CRs-Fixed: 973723
2017-01-10 10:52:24 -08:00