Commit graph

20,721 commits

Author SHA1 Message Date
snandini
342576c5c3 Release 5.2.0.202E
Release 5.2.0.202E

Change-Id: I041e7ecbd63dbe7f1623b804138cf968154cdd4c
CRs-Fixed: 774533
2020-09-11 19:08:09 -07:00
Jia Ding
7f57d1c40f qcacld-3.0: Support pld_smmu_unmap for PCIe platform
Add pld_pcie_smmu_unmap API to support SMMU unmap of
addresses mapped in smmu_iova_ipa bank.

Change-Id: Idcb76a4f9d6573fb3f2c1fe22f6fbbe1728fa079
CRs-Fixed: 2768112
2020-09-11 19:08:09 -07:00
Srinivas Girigowda
375cf9be91 qcacld-3.0: Remove logs for wlan_hdd_validate_context() checks
wlan_hdd_validate_context() function already takes care of logging
the caller function name in case of any error. Hence there is no need to
add the error log again.

Getting rid of these unnecessary logs reduces driver memory footprint.

Change-Id: Ia1f4a1a413249e10c40d7644e9ffb314e991b237
CRs-Fixed: 2769591
2020-09-11 19:08:05 -07:00
snandini
7ccccb00a6 Release 5.2.0.202D
Release 5.2.0.202D

Change-Id: Ifb71740a88e9943cbe12296dfe6face60004b25e
CRs-Fixed: 774533
2020-09-11 16:17:34 -07:00
Nisha Menon
bd6e2805bf qcacld-3.0: Update the gold core latency on clearing cpu_mask
Set the latency of gold cores to default on clearing the
cpu_mask for gold cores. This ensures that power drain on
gold cores is minimal after gold core affinity is removed
after traffic reduces.

Change-Id: I4f17e9b9e36c57ac22a12e3abbc0155eef238a04
CRs-Fixed: 2764803
2020-09-11 16:17:34 -07:00
Rakesh Pillai
0bc6e1b24f qcacld-3.0: Dump SWLM stats periodically
Add the support to dump software latency
manager statistics as a part of periodic
stats.

Change-Id: I22169979ecf3f78840086284432b94c5756edcf1
CRs-Fixed: 2769018
2020-09-11 16:17:30 -07:00
Rakesh Pillai
d250c88d4c qcacld-3.0: Handle TX register write coalesces
Currently for every packet transmission, the head
pointer register is updated. Each write corresponds
to one PCIe write.

Add the logic to coalesce the head pointer
register writes to reduce the PCIe writes. This
also helps in PCIe bus staying in low power states
for some more time and thereby reducing power
usage.

Change-Id: I10fe0499222fbcf94305c681008d12449cda5359
CRs-Fixed: 2769013
2020-09-11 16:17:26 -07:00
Rakesh Pillai
d74aee1730 qcacld-3.0: Save low latency connection count in DP vdev
The 11g and 11a connections are latency critical and
hence tx coalescing cannot be applied on traffic
running for these connections.

Detect the latency critical connections and save the
number of latency critical connections in DP vdev.
This information can be used by the Software latency
manager to skip tx register write coalescing when there
is a packet transmission for low latency connections.

Change-Id: I2ebf40e670cc3139b2bc41a690c79ebb31c7b9c7
CRs-Fixed: 2769026
2020-09-11 16:17:22 -07:00
Abhishek Ambure
e23d02544e qcacld-3.0: Remove DFS_CAC_IN_PROGRESS check in HDD for STA DEL request
For users delete station request, host checks DFS CAC progress flag in HDD.
If DFS CAC progress is set, host doesn't send disassoc/deauth request to
LIM. Due to this peer instance in FW remains undeleted and host returns
success. On SAP vdev delete this peer instance in FW remains undeleted and
FW crashes. In LIM host already handles deauth/disassoc request if DFS CAC
is in progress. Hence remove DFS CAC in progress check from HDD.

Change-Id: I27953eac86fc4258ff764fb0ac8e6b95cb7ae99b
CRs-Fixed: 2773050
2020-09-11 16:17:18 -07:00
snandini
6c380cc932 Release 5.2.0.202C
Release 5.2.0.202C

Change-Id: I05b561629271bd9fc4df0c911a8e863a820210be
CRs-Fixed: 774533
2020-09-11 13:55:31 -07:00
Srinivas Dasari
6cc76d41ab qcacld-3.0: Cleanup all NDPs as part of NAN disable
NDPs can exist on an NDI only when the NAN discovery is active.
Currently, firmware sends NDP_END indication for all NDPs when NAN
is disabled. Host driver removes the NDI entry from the policy mgr
based on these NDP_END indications. But firmware might miss to send
the NDP_END indication in some cases though the NDPs are deleted
in firmware. This leads to stale NDI entries in the policy mgr and
it prevents STA connections as NDI+STA without NAN discovery is not
a valid concurrency.
Host driver can remove all NDPs before sending NAN disable request
to firmware to avoid this. This is a blocking call in driver and
wait for the NDP_HOST_UPDATE event from firmware. Cleanup the policy
mgr entries in timeout case as well to avoid further failures due
to unsupported concurrency.

Change-Id: I8df905b7ae4cfe5dfb5affe5b6a3fd478851a453
CRs-Fixed: 2774329
2020-09-11 13:55:31 -07:00
snandini
c7ab3145b8 Release 5.2.0.202B
Release 5.2.0.202B

Change-Id: I67574319800c706ae3a5f9a4390b668c69c07a93
CRs-Fixed: 774533
2020-09-10 23:19:18 -07:00
Manikanta Pubbisetty
7da5e88fc2 qcacld-3.0: add debug stats for REO ID mismatch
Add statistics if the packets of the flow are coming on
a different REO than the one configured. This would help
in debugging the race conditions where the packets of the
same flow arrive on different REO rings.

Change-Id: Ifc52dd595b7e308d8a0c233768015af45f485b15
CRs-Fixed: 2770886
2020-09-10 23:19:17 -07:00
nakul kachhwaha
af7e67eee5 qcacld-3.0: Schedule autobmps timer for open security
Auto BMPS timer is not running for STA, connected
using wpa_cli in open mode. This will lead STA not
entering in power save mode.
Running auto bmps timer for station connected via
CLI in Open mode after association completion.

Change-Id: I38ac5f89c3b9bddf6f25800be5979698f6a59de7
CRs-Fixed: 2765315
2020-09-10 23:19:12 -07:00
snandini
2e9d0897b9 Release 5.2.0.202A
Release 5.2.0.202A

Change-Id: I5f51463a40290f4073638d9f5946850a3d0095fd
CRs-Fixed: 774533
2020-09-10 21:00:42 -07:00
Mohit Khanna
8d17532e58 qcacld-3.0: Add more DP rings to prealloc
Add RXDMA_DST, SW2WBM_RELEASE and RXDMA_BUF rings to DP prealloc
infrastructure.

CRs-Fixed: 2747089
Change-Id: Ic744fde5b5ebccc6b344e60722d03a0da02c5cf6
2020-09-10 21:00:42 -07:00
Mohit Khanna
e3d78d5d9d qcacld-3.0: Enable DP_MEM_PRE_ALLOC flag
Add support for DP SRNG consistent memory pre-alloc.

Change-Id: I867ff901aa6d26f86b16167fb3955096d318d61c
CRs-Fixed: 2740424
2020-09-10 21:00:38 -07:00
Jinwei Chen
9406c02ec4 qcacld-3.0: Add support to pre-allocate DP SRNG mem
Add logic to pre-allocate DP consistent memory and reuse later.
Only SRNG memory is preallocated. This is useful to prevent memory
allocation failures due to fragmentation over cycles of WLAN ON/OFF.

Change-Id: I1f814f9f18d482eb5f55e0b157606d1792e665f8
CRs-Fixed: 2740424
2020-09-10 21:00:33 -07:00
CNSS_WLAN Service
db7393e971 Merge "Release 5.2.0.202" into wlan-cld3.driver.lnx.2.0 2020-09-09 23:45:21 -07:00
CNSS_WLAN Service
33ec8eeb00 Merge "qcacld-3.0: Send install key command response for open mode connection" into wlan-cld3.driver.lnx.2.0 2020-09-09 23:45:20 -07:00
CNSS_WLAN Service
004bbfdab0 Merge "qcacld-3.0: Fix memory leak for IPA config allocation" into wlan-cld3.driver.lnx.2.0 2020-09-09 23:45:19 -07:00
CNSS_WLAN Service
413650dc16 Merge "Release 5.2.0.201Z" into wlan-cld3.driver.lnx.2.0 2020-09-09 23:30:20 -07:00
CNSS_WLAN Service
deca2aa6c1 Merge "qcacld-3.0: Change ucfg tdls API as wrapper to wlan API" into wlan-cld3.driver.lnx.2.0 2020-09-09 23:30:09 -07:00
CNSS_WLAN Service
7c12b30567 Merge "Release 5.2.0.201Y" into wlan-cld3.driver.lnx.2.0 2020-09-09 23:30:08 -07:00
CNSS_WLAN Service
8007d3c91b Merge "qcacld-3.0: use ucfg api to get full channel list" into wlan-cld3.driver.lnx.2.0 2020-09-09 23:30:07 -07:00
snandini
64c13b94ef Release 5.2.0.202
Release 5.2.0.202

Change-Id: Idbba2210382a4dd6ab84f1ba18d9f527359547dc
CRs-Fixed: 774533
2020-09-09 22:59:22 -07:00
Pragaspathi Thilagaraj
b3fb8f8338 qcacld-3.0: Send install key command response for open mode connection
Currently for Open mode, the install key command is not allowed
but usually set key with 0 length is sent in open mode and in
set key response path the OBSS scan is configured to firmware.

So send dummy response for install key command to go for open
mode connection.

Change-Id: Ia3665ca018114bbf354b8c3138a7c4d81f7f9707
CRs-Fixed: 2769414
2020-09-09 22:59:22 -07:00
Yu Tian
4cc1f3808b qcacld-3.0: Fix memory leak for IPA config allocation
Memory allocated in ipa_config_mem_alloc during
wlan startup, but it is not freed in error handler
path. Add ipa config free in error handler path.

Change-Id: Icc86a9c65220f86897481107e8d81cfd87058fa2
CRs-Fixed: 2770385
2020-09-09 22:59:18 -07:00
snandini
3bbdcd04f2 Release 5.2.0.201Z
Release 5.2.0.201Z

Change-Id: I3cc552ca1ce5e8dbbb102d1c9af042440282511c
CRs-Fixed: 774533
2020-09-09 20:47:21 -07:00
Gururaj Pandurangi
5202fa8547 qcacld-3.0: Change ucfg tdls API as wrapper to wlan API
Change ucfg_tdls_notify_connect_failure() API as a
wrapper to a new API wlan_tdls_notify_connect_failure()
which in turn calls the core API.

Change-Id: I998669f9c829cb91e21b359ba794f396214854e2
CRs-Fixed: 2767682
2020-09-09 20:47:20 -07:00
CNSS_WLAN Service
eb061daa0c Merge "Release 5.2.0.201X" into wlan-cld3.driver.lnx.2.0 2020-09-09 18:53:24 -07:00
CNSS_WLAN Service
6242d6615f Merge "qcacld-3.0: Add disconnect changes to interface mgr" into wlan-cld3.driver.lnx.2.0 2020-09-09 18:53:22 -07:00
CNSS_WLAN Service
a754b31818 Merge "qcacld-3.0: Add start/stop bss changes in interface mgr" into wlan-cld3.driver.lnx.2.0 2020-09-09 18:53:21 -07:00
CNSS_WLAN Service
931ff345e8 Merge "qcacld-3.0: Register wma module to qdf trace" into wlan-cld3.driver.lnx.2.0 2020-09-09 18:53:20 -07:00
CNSS_WLAN Service
80085781f4 Merge "qcacld-3.0: Change legacy macro msg types to enum msg types" into wlan-cld3.driver.lnx.2.0 2020-09-09 18:53:19 -07:00
CNSS_WLAN Service
5989174de9 Merge "Release 5.2.0.201W" into wlan-cld3.driver.lnx.2.0 2020-09-09 18:53:17 -07:00
CNSS_WLAN Service
867f61360f Merge "qcacld-3.0: Use objmgr api to get the vdev for pmo" into wlan-cld3.driver.lnx.2.0 2020-09-09 18:53:16 -07:00
CNSS_WLAN Service
f79421f725 Merge "qcacld-3.0: Print periodic stats only if roaming not in progress" into wlan-cld3.driver.lnx.2.0 2020-09-09 18:53:15 -07:00
CNSS_WLAN Service
a6f51e777f Merge "qcacld-3.0: fix improper data rate in rtap header in monitor mode" into wlan-cld3.driver.lnx.2.0 2020-09-09 18:53:13 -07:00
snandini
d146edd331 Release 5.2.0.201Y
Release 5.2.0.201Y

Change-Id: Iefb25665956e1f7683dd7410bfc9b6c6dadc71cc
CRs-Fixed: 774533
2020-09-09 18:35:52 -07:00
Yu Wang
47326c4971 qcacld-3.0: use ucfg api to get full channel list
Remove band dependent code in iw_get_channel_list, use
existing ucfg api ucfg_reg_get_current_chan_list to get
the current channel list.

CRs-Fixed: 2773016
Change-Id: Ie650620476a35852456d91363cc7360cb1549f40
2020-09-09 18:35:52 -07:00
snandini
19db11fc17 Release 5.2.0.201X
Release 5.2.0.201X

Change-Id: I64bc57b6c0e208ec7d7f0de1e9a0a2273782e4df
CRs-Fixed: 774533
2020-09-09 16:19:50 -07:00
Lincoln Tran
49f4bf7e0d qcacld-3.0: Add disconnect changes to interface mgr
Add disconnect start and disconnect complete event handlers to
the interface manager.
Add disable roaming, enable roaming on connnected STA, and
enable roaming after P2P disconnect APIs.

This change is part of the connection manager effort.

Change-Id: Ib68b9ef9ff5b6541d7393bfbe6332a68b17bd587
CRs-fixed: 2760090
2020-09-09 16:19:49 -07:00
Amruta Kulkarni
a7c313b997 qcacld-3.0: Add start/stop bss changes in interface mgr
- Add start/stop bss event processing
- Add WLAN_INTERFACE_IF_MGR flag

Change-Id: I472a4534ee7bf95a10058595c85ec89eaf411670
CRs-Fixed: 2759981
2020-09-09 16:19:45 -07:00
Ashish Kumar Dhanotiya
cef57d4f47 qcacld-3.0: Register wma module to qdf trace
WMA module wants to insert recored in the global qdf trace
record table but qdf trace does not allow to insert the trace
record for a module if that module is not registered with the
qdf trace.

To address above issue, register WMA module with the qdf trace.

Change-Id: I5520beaacdb3aeb57c2f46a36766b4f9a73a4e0c
CRs-Fixed: 2719693
2020-09-09 16:19:41 -07:00
Ashish Kumar Dhanotiya
a245fd3dc4 qcacld-3.0: Change legacy macro msg types to enum msg types
Driver maintains a global list of messages (qdf trace) which
different modules posts to each other. If required, this list
can be processed with the help of post processing cmm script.

Currently some of the message types are defined as macros and
these macros can not be used directly in the post processing
cmm script. Enums are much more easy to process with the help
of the cmm script.

To address above issue below fixes are done with this change:
1. Assign enum name to pe message types, lim message types,
   sme message type.
2. Change MLM message type from macros to enum type.
3. Change WMA message type from macros to enum type.

Change-Id: Ibd91a5371457a542cd141f680dda44a48b6f7d98
CRs-Fixed: 2719698
2020-09-09 16:19:37 -07:00
snandini
a169aaffa9 Release 5.2.0.201W
Release 5.2.0.201W

Change-Id: Ic85189b78ade80c2bf894a1ae345298156f18e92
CRs-Fixed: 774533
2020-09-09 14:03:46 -07:00
Ashish Kumar Dhanotiya
95e385cfe1 qcacld-3.0: Use objmgr api to get the vdev for pmo
Currently pmo disable run time pm offload api gets the vdev
inside psoc obj lock but tries to take the reference of
vdev without any lock protection, in this case it is possible
that one thread gets the vdev and when it troes to get the vdev
reference some other thread deletes the vdev because if which
first thread will not be able to get the reference for the vdev
which it alreaady holds.
To address above issue use objmgr api to get the vdev.

Change-Id: I8f47515f39ace809cfe9e134fd704a2914ed3d9a
CRs-Fixed: 2769887
2020-09-09 14:03:46 -07:00
Ananya Gupta
822e4f01a2 qcacld-3.0: Print periodic stats only if roaming not in progress
Roaming is handled by scheduler thread which has lower priority
than kworker thread. Periodic stats are printed in kworker thread.
Since handling roaming is a higher priority job, skip printing
periodic stats so that scheduler thread can be given extra time
slot to process roaming.

Change-Id: I444bdf1df51da2f80111fabd84d19584bd715ae3
CRs-Fixed: 2768360
2020-09-09 14:03:43 -07:00
Vevek Venkatesan
4ad620b903 qcacld-3.0: fix improper data rate in rtap header in monitor mode
In ht monitor mode, mcs data rate is not correctly populated in
radiotap header, so if ht_flag is set, assign mcs value to ht_mcs
to fix it.

Change-Id: If428275671068b31ae1367244c62bc4cac25a2af
CRs-Fixed: 2772405
2020-09-09 14:03:39 -07:00