Commit Graph

20761 次程式碼提交

作者 SHA1 備註 提交日期
snandini
fa28e74a83 Release 5.2.0.202S
Release 5.2.0.202S

Change-Id: I4022e25618a5acfa9d1690f6fd9fd539aa3972ba
CRs-Fixed: 774533
2020-09-15 11:38:32 -07:00
Nisha Menon
d5f0559bbb qcacld-3.0: Disable ipa ready registration in FTM mode
In FTM mode do not register callback with IPA driver
to check if IPA is ready.
IPA offload is not supported in FTM mode.

Change-Id: I9d36f3085db72d3ffe9e6080f422618f7a531c01
CRs-Fixed: 2772192
2020-09-15 11:38:32 -07:00
Liangwei Dong
662bade898 qcacld-3.0: Add INI to configure thermal action
There is customer requirement that once wifi chip overheat,
we should switch the tx chain mask to 1X1 to cool down the
chip instead of halting the tx completely.
Add new INI gThermalMgmtAction to configure thermal mgmt action
with default 0. The valid thermal mgmt action INI value is defined
as enum thermal_mgmt_action_code. To set it to 3 -
THERMAL_MGMT_ACTION_CHAINSCALING to meet customer requirement.

Change-Id: I88b1237fae1f476ad9ff0e7b5a469ec314a42bf9
CRs-Fixed: 2765289
2020-09-15 11:38:26 -07:00
snandini
af475b303e Release 5.2.0.202R
Release 5.2.0.202R

Change-Id: Ic4cdefe55c442b1ae57b3cdb3905a76feb9d9168
CRs-Fixed: 774533
2020-09-15 09:28:44 -07:00
Yeshwanth Sriram Guntuka
843e288336 qcacld-3.0: Fix possible NULL pointer dereference
Pointers returned by wlan_ipa_get_iface API and
cds_get_context API are not NULL validated at few
places. Add NULL checks for these pointers to avoid
possible NULL pointer dereference.

Change-Id: I44f226c2ce97afd6ad2ff9cde5cd70d9d12bc3d2
CRs-Fixed: 2775197
2020-09-15 09:28:43 -07:00
Jia Ding
0358fd452a qcacld-3.0: Provide soc handle and pdev id for IPA cleanup
To do SMMU unmap for IPA TX and RX doorbell registers, provide
soc handle and pdev id to CDP layer.

Change-Id: I6e4fcc7d96d3dabe9dcbb85b9d7193e898d9a73e
CRs-Fixed: 2768306
2020-09-15 09:28:40 -07:00
snandini
21fcc793eb Release 5.2.0.202Q
Release 5.2.0.202Q

Change-Id: Icad079527bf2ab67d9d6fa2ea08e142134836ba3
CRs-Fixed: 774533
2020-09-15 07:19:34 -07:00
Abhinav Kumar
7ac893f2af qcacld-3.0: Add a new INI bg_rssi_threshold
FW triggers roaming based on the RSSI score of AP(s) available
after background scan. Currently, the host does not configure
the value of bg_rssi_threshold RSSI. This results in ping-pong
roaming after background scan, even though candidate AP
RSSI is not better than 5dbm than connected AP.

Fix is to configure the value of bg_rssi_threshold via new
INI "bg_rssi_threshold" and configuring default value of
INI as 5dB.

Min: 0
Max: 100
Default: 5

Change-Id: Ib710e294c8b33ff4903d41453e3b55f02daf53ae
CRs-Fixed: 2763962
2020-09-15 07:19:33 -07:00
snandini
e0d7d0e692 Release 5.2.0.202P
Release 5.2.0.202P

Change-Id: If221fc3a15e7b16fbef72c4df86d9d6e4e75433c
CRs-Fixed: 774533
2020-09-15 04:59:25 -07:00
Abhishek Ambure
2813eaa802 qcacld-3.0: Add support for SAE-PK roam scoring
SAE Public Key (SAE-PK) authentication is an extension of SAE. Host adds
support for SAE-PK APs roam score which host uses to select AP for initial
connection and roaming.

Change-Id: Id8c420950bb8c1d11db5a26aa860e280bcb672d1
CRs-Fixed: 2769372
2020-09-15 04:59:24 -07:00
Alan Chen
387298825a qcacld-3.0: Add declaration for btc_chain_mode_policy
The BTC_CHAIN_MODE command policy table is missing its declaration in the
.h file. Add the declaration to resolve the compilation issues.

Change-Id: I5bdd54dc9c3488054bafabd772f4f8b375fe50fa
CRs-Fixed: 2773241
2020-09-15 04:59:20 -07:00
wadesong
fae1b8966e qcacld-3.0: Fix some kw warnings
In function hdd_process_genie(), pointers like encrypt_type
and mc_encrypt_type should be validated before getting
dereferenced.

Add pointer validation before every dereferencing takes place.

Change-Id: Ib894153ddac3e75fae5e0e7798b705ac5951ea17
CRs-Fixed: 2775378
2020-09-15 04:59:16 -07:00
snandini
db3710b638 Release 5.2.0.202O
Release 5.2.0.202O

Change-Id: I17188e649e710396201f65a503606c6b023cc811
CRs-Fixed: 774533
2020-09-15 00:41:36 -07:00
Abhishek Ambure
5ccc3d2dcc qcacld-3.0: Generate the IV and repeat until it is non-zero
If the IV value is zero then some IOT APs fail to decrypt WEP AUTH frame
hence host gets random value of IV using qdf_get_random_bytes().
Presently host checks if the IV is non-zero value in "seed" which is local
uninitialized variable, static analysis tool reports an error "seed array
elements are used uninitiated".
In order to address both these issues, generate the IV using
qdf_get_random_bytes() first and if it is zero, then repeat
invoking qdf_get_random_bytes() until it is non-zero.

Change-Id: Ib211e58ebe21d49ab1dc693ee8a6cad9bfd25ae8
CRs-Fixed: 2775943
2020-09-15 00:41:36 -07:00
snandini
d15168e897 Release 5.2.0.202N
Release 5.2.0.202N

Change-Id: I634a14cf07f7c91a621332226d62d6d51c6a3b7c
CRs-Fixed: 774533
2020-09-14 09:55:15 -07:00
Pragaspathi Thilagaraj
4bfed04ab4 qcacld-3.0: Fix RSSI_CHANGE command values
Move the rssi change vdev params initialization to
csr_neighbor_roam_info_ctx_init() so that vdev priv object will
be created and per vdev parameters are saved and proper values
are sent to firmware.

Change-Id: I87c8272d89f431fa3db60beed4d1da6d9790ec28
CRs-Fixed: 2774826
2020-09-14 09:55:14 -07:00
Amruta Kulkarni
ea53232656 qcacld-3.0: Enable roaming on interface mgr
- Use sme roaming api's instead of converged
 roaming api's.
- Add debug logs in if mgr api's.
- Fix typo in Kbuild file.
- Fix compilation errors.
- Fix comments for readability.
- Update disconnect functions so parameter type matches.

Change-Id: Ia0adf6f79036e9348bf4ebb6237a5e25ef813a21
CRs-Fixed: 2774509
2020-09-14 09:55:10 -07:00
Wu Gao
56afad67cb qcacld-3.0: Set current mode properly for TDLS
This change fixes two issues about TDLS:
    1. It updates current mode only if tdls vdev object is NULL.
    2. Handles pre-scan callback but ignore scan done callback if device
       type isn't station or P2P client.

Change-Id: I4badbf3a7c40eca813a6360817d5483be88f2c5d
CRs-Fixed: 2769638
2020-09-14 09:55:07 -07:00
snandini
a81c16eb92 Release 5.2.0.202M
Release 5.2.0.202M

Change-Id: I40211911d751c73a67be277e4c036e058ef0e61e
CRs-Fixed: 774533
2020-09-14 01:13:43 -07:00
Visweswara Tanuku
c9547d2105 qcacld-3.0: Validate TWT setup cmd/request type value
Validate TWT setup request type value obtained from
user space, before sending down to fw

Change-Id: I820f4912bafb84b76583ac9ed1cd88f59ea9fb3d
CRs-Fixed: 2770628
2020-09-14 01:13:43 -07:00
snandini
95ec1289e5 Release 5.2.0.202L
Release 5.2.0.202L

Change-Id: I8808ee0b5bd15c92519e67a5a5609922a82e1f87
CRs-Fixed: 774533
2020-09-13 22:31:33 -07:00
Jinwei Chen
a11d408201 qcacld-3.0: remove pktlog feature for lithium based target
For lithium based target, rx pktlog depends on monitor status ring
and this ring is reaped by timer in host. if host try to disable
pktlog and high DL T-put traffic is ongoing in parallel, there is
no guarantee that HW stop to update PPDU status to monitor status
ring after host stopped reaping timer, unless host add some delay
between HTT ring reset msg and timer stopping, then FW will have
enough time to reset ring configuration.
Since FW side has disabled pktlog and looks pktlog is not necessary
for lithium based target, remove pktlog support by macro
FEATURE_PKTLOG, macro REMOVE_PKT_LOG is not preferred as it will
remove WDI_EVENT support that impact CFR feature.

Change-Id: I723f65ba3d2ffa58469b886e6795956f69d4e891
CRs-Fixed: 2763095
2020-09-13 22:31:33 -07:00
snandini
a34969e63d Release 5.2.0.202K
Release 5.2.0.202K

Change-Id: I15fccc3b27e5cfadbad2aca67ed98786bc80aedc
CRs-Fixed: 774533
2020-09-13 14:58:18 -07:00
Ananya Gupta
6fed9a7bd3 qcacld-3.0: Take in ini value of RPS as string
ini string value of RPS,rpsRxQueueCpuMapList is directly
pushed in hdd_context->config->cpu_map_list. Default value
is set as "e". During RPS enablement,
hdd_hex_string_to_u16_array converts this string into u16
array which is used for cpu mapping of RX queues for RPS.

Change-Id: I352bf7c5b16f61e17d918ceec53b0bcd47eecfba
CRs-Fixed: 2761785
2020-09-13 14:58:18 -07:00
snandini
e5fb7d7e5a Release 5.2.0.202J
Release 5.2.0.202J

Change-Id: I9fdf7f13b11aa917010c6065fd6f752903f374e4
CRs-Fixed: 774533
2020-09-12 08:17:12 -07:00
Gururaj Pandurangi
c199935f4b qcacld-3.0: Add checks to handle return value from crypto APIs
Add checks in caller APIs to handle negative return value from
crypto get param and crypto get peer param APIs.

Change-Id: Ibb138971f347c7ccdacbc93aa38521d5d9536759
CRs-Fixed: 2775328
2020-09-12 08:17:11 -07:00
snandini
9a760e30d3 Release 5.2.0.202I
Release 5.2.0.202I

Change-Id: I5f4cac0701a96b114a12ae3ff771b5ed85b6c278
CRs-Fixed: 774533
2020-09-12 06:13:08 -07:00
Subrat Dash
ec2d8ab7ff qcacld-3.0: Enable UAPSD when TWT requster mode is disabled
The csr_enable_twt() returns true when the fw is 802.11ax
capable. This lead to failure of UAPSD even though the twt
requested mode is disabled throgh ini.

Fix the logic in the csr_enable_twt() to enable UAPSD when
the twt requester mode is disabled.

Change-Id: I5338b95b66312337d6b8befe700f31f3e214b7b1
CRs-Fixed: 2765999
2020-09-12 06:13:07 -07:00
snandini
99017b0cfe Release 5.2.0.202H
Release 5.2.0.202H

Change-Id: Idc406fb51bb8d426283a0b57cd8974cc0f2d4dc7
CRs-Fixed: 774533
2020-09-12 01:59:43 -07:00
Lincoln Tran
53f7903389 qcacld-3.0: Add candidate validation to the if_mgr
Add the API to validate the BSS before roaming to it. This API will check
if other vdevs are already connected to the BSS, if concurrency is allowed,
and if channel is allowed for the current HW mode.
Keep the new changes under the interface_mgr feature flag.

Change-Id: I280e95b0a30c08fe4037295330628b79d22acf5f
CRs-fixed: 2774543
2020-09-12 01:59:43 -07:00
Amar Singhal
c89446a515 qcacld-3.0: Use correct size for frequency list
Frequency list elements should be 2 octets, not one octet. Fix this.

Change-Id: I981d3bd23464fc83506c512338e5fb22637272cd
CRs-Fixed: 2775226
2020-09-12 01:59:38 -07:00
Abhishek Ambure
8c579f5a5b qcacld-3.0: Add support to get pmf bcn protect stats
Host sets WMI_REQUEST_PMF_BCN_PROTECT_STAT bit in stats_id param of
WMI_REQUEST_STATS_CMDID command. Firmware supporting pmf beacon
protection stats responds host with stats in wmi_update_stats_id
event. Host extracts PMF beacon protection stats from wmi_update_stats_id
event. Host adds PMF beacon protection stats in the response of vendor
command QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO for STA mode.

Change-Id: Ib3cb06e03dbccdb9fa1782d414ed734bd97aa309
CRs-Fixed: 2705236
2020-09-12 01:59:34 -07:00
snandini
7f2bf137e9 Release 5.2.0.202G
Release 5.2.0.202G

Change-Id: Ie405825e1300b1ba7c94d29fb934bdca9b7735de
CRs-Fixed: 774533
2020-09-11 23:39:34 -07:00
Lincoln Tran
22301fc573 qcacld-3.0: Migrate PCL API to policy manager
Currently, the APIs related to setting the preferred channel list is
in the SME module. Move these APIs to the policy manager so they can
be accessed from non-legacy modules.

Change-Id: Icc487dd2a0014e59db9c2df729b875f58e3e975e
CRs-fixed: 2766863
2020-09-11 23:39:34 -07:00
hqu
193727e455 qcacld-3.0: Add additional debug logs for rso commands
Add debug logs on the sending WMI_ROAM_SCAN_RSSI_THRESHOLD
/WMI_ROAM_FILTER_CMDID/WMI_ROAM_BTM_CONFIG_CMDID
/WMI_11K_OFFLOAD_REPORT_CMDID commands path.

If mawc roaming is not supported by firmware, don't send
WMI_ROAM_CONFIGURE_MAWC_CMDID command.

Add rssi reject AP list to the roam params process in function
csr_cm_roam_scan_filter().

Change-Id: I89e6dcac801e552877f7e918d1179dfa3466857a
CRs-Fixed: 2775101
2020-09-11 23:39:30 -07:00
snandini
87e9e5c2e4 Release 5.2.0.202F
Release 5.2.0.202F

Change-Id: Iaf755211fa50e400bba7e5954b454c6b9be06f2b
CRs-Fixed: 774533
2020-09-11 21:15:56 -07:00
Rakesh Pillai
7ffb80cd98 qcacld-3.0: Enable Software latency manager
Enable the Software Latency Manager in the Kbuild

Change-Id: Icc4b8ef4014508a99d155fc7a2807b99c2de11cc
CRs-Fixed: 2769031
2020-09-11 21:15:56 -07:00
Rakesh Pillai
447b9395ff qcacld-3.0: Add sysfs entry to control SWLM
Add sysfs entry to enable or disable the
Software latency manager runtime.

Change-Id: Iaa920c7c71586b3200322a704003abcf95840edc
CRs-Fixed: 2769035
2020-09-11 21:15:52 -07:00
Rakesh Pillai
98534ecf60 qcacld-3.0: Add INI support for SWLM
Add support to enable or disable the
Software latency manager via INI

Change-Id: I7e0323a0e84c0b6bddaf646dbd0b968d2c6b3f8d
CRs-fixed: 2769033
2020-09-11 21:15:48 -07:00
Gururaj Pandurangi
dc3821cefd qcacld-3.0: Add connect complete changes to if mgr
Add connect complete event handling API as part
of connection manager effort.

Change-Id: Ie1edfb1383ffdef97c7740d936256f7b89649e65
CRs-Fixed: 2760218
2020-09-11 21:15:44 -07:00
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