提交線圖

1032 次程式碼提交

作者 SHA1 備註 日期
Yeshwanth Sriram Guntuka
46d86f50df qcacld-3.0: Enable wlan tracepoints config flag for LI/BE
Enable wlan tracepoints config flag for Lithium and
Beryllium.

Change-Id: Idf40e510f084a9b4e2b3d67160c80dba8a49f7e2
CRs-Fixed: 3080798
2021-12-14 21:22:33 -08:00
Amruta Kulkarni
a32e3f1a0c qcacld-3.0: Add new files for mlo roaming
Add new files for mlo roaming and update Kbuild file.

Change-Id: I3e672a5e068648fd836ecccb0edbac084850f11d
CRs-Fixed: 3090925
2021-12-14 14:09:03 -08:00
Yu Wang
10aa99f14f qcacld-3.0: Compile target_if APIs for MLO manager
Update Kbuild to compile target_if APIs for MLO manager.

Change-Id: If7c2ce106aaae98024892b400eca2ad6764b7ec0
CRs-Fixed: 3060585
2021-12-06 23:55:18 -08:00
Bapiraju Alla
63867fd076 qcacld-3.0: Add support to calibration failure events parsing
Currently there is no provision to get the calibration failure
information from the driver. Because of this it is getting difficult
to debug the calibration failure issues.

To simplify the calibration failure issue debugging, add support to
parse calibration failures events in the driver.

Change-Id: I6d831804cca259862fea3e8bb4af33d556138d43
CRs-Fixed: 3078926
2021-12-06 22:33:20 -08:00
Jinwei Chen
d3fc2dc056 qcacld-3.0: Enable TX AST index search for HMT STA
Enable TX AST index search for HMT STA which is more efficient
compared with older source address search.

Change-Id: Ie5ebf4199ada959ebd33351929cf642c21657c51
CRs-Fixed: 3084026
2021-12-01 00:06:46 -08:00
Rakesh Pillai
c613af5c5e qcacld-3.0: Disable timer irq for CE in WCN7850
Kbuild change to
- Disable timer irq for CE in WCN7850
- Disable status ring timer WAR in WCN7850

Change-Id: I59a247bf14450c5e1ec194c505f3a00eb5f3619f
CRs-Fixed: 3075871
2021-11-24 01:14:14 -08:00
sandhu
4938a636b7 qcacld-3.0: Add path of cleaned-up HW header files
Add path of final version (E3.0 R38) of cleaned up HW header files
with comments removed and appropriate copyright added.

Change-Id: I5b65141d68672da6368f71132ad583ed1fc3db53
CRs-Fixed: 3076670
2021-11-23 15:25:04 -08:00
Zhaoyang Liu
f9a17cae5a qcacld-3.0: enable pci low power int reg configuration
Enable PCIe low power interrupt mask register config for QCA6174.

Change-Id: Id05e4eb0c0c6b824ddfb05ea4fe8efd191015d88
CRs-Fixed: 3075919
2021-11-21 22:23:01 -08:00
Yeshwanth Sriram Guntuka
01acacfcfa qcacld-3.0: Enable irq affinity feature config flag for LI
Enable irq affinity feature config flag for Lithium.

Change-Id: I0a97dd85369aae66450e4869b591c7af74a66960
CRs-Fixed: 3073375
2021-11-12 22:52:07 -08:00
Ke Huang
b43015863f qcacld-3.0: Add the Full Power Down feature support
Add the support for the feature of Full Power Down while
in low power mode.
For this feature, it need to power down wlan chip when
suspend, and power up wlan chip when resume, so need to
change to call wlan driver shutdown and then power off the
wlan chip instead of calling wlan driver suspend when do
suspend, and changing to do power on wlan chip, download
wlan firmware, and calling wlan driver reinit instead of
calling wlan driver resume when do resume.

Change-Id: I293647175c151da0fd6628345f98ea65c83b1bb3
CRs-Fixed: 3061366
2021-11-11 03:12:28 -08:00
Will Huang
eb218a1c61 qcacld-3.0: Add vendor attribute to configure ARP/NS offload
In some scenario, it is required to receive every ARP/NS packet even
it is not to solicit address itself. So add this vendor attribute
configuration to enable/disable ARP/NS offload on fly.

On some platform, if target suspend to WoW mode, APF filter will drop
such ARP/NS packet in the front, so prevent runtime suspend happen
if disable ARP/NS offload. System suspend still allow in consideration
of potential power impact.

It only support on STA/P2P-Client mode device, and this configure is
optional, while default behavior is ARP/NS offload enable. It will
restore to default behavior if interface being closed.

Change-Id: Icd49e230024bc1ce51519cd9fafee9bc9f79f382
CRs-Fixed: 3058494
2021-11-10 23:02:37 -08:00
Yeshwanth Sriram Guntuka
f819fd2149 qcacld-3.0: Enable multiple TX ring pairs for qca6490
Enable config flag to use multiple tx and tx completion
ring pairs for qca6490 when IPA is disabled.

Change-Id: Iafa6df504d7be55cbc5a233d6975963f0e118df5
CRs-Fixed: 3059736
2021-11-09 15:34:35 -08:00
Yu Wang
b5bf07d319 qcacld-3.0: Update Kbuild to compile wmi_unified_11be_api APIs
Update Kbuild to compile wmi_unified_11be_api APIs.

Change-Id: I226cfd9b0d42e4d239a2b966da73c61f3998803e
CRs-Fixed: 3054742
2021-11-06 11:51:52 -07:00
Balaji Pothunoori
517caa56e6 qcacld-3.0: add os_if layer for monitor mode configuration
Add os_if layer for monitor mode vendor configuration.

Change-Id: I20488e0e398b1761745b24a70e9888fe487b88ac
CRs-Fixed: 3055069
2021-11-05 16:31:41 -07:00
Yeshwanth Sriram Guntuka
21958305b5 qcacld-3.0: Add support for multiple queues per AC in TX
Add support for multiple queues per access category and
flow steering in TX.

Change-Id: I40385ab300fc2f7ef83a0f052b95e32a25accfb0
CRs-Fixed: 3059758
2021-11-05 07:59:31 -07:00
Utkarsh Bhatnagar
40d0e1ae42 qcacld-3.0: Cleanup WMA HWMODE
Cleanup WMA HWMODE and WMA HWMODE List
as the same functionality is already taken
care by policy manager

Change-Id: I5dc1342422e70737111f882013ed3a6351a85336
CRs-Fixed: 3064739
2021-11-05 02:34:33 -07:00
Jinwei Chen
3cd06e5ecf qcacld-3.0: RX packet FW reinjection check for FISA
For beryllium, use sw_exception bit to indentify is it FW
reinjected frame or not, if sw_exception bit is marked, then
skip FISA for these kind of frame.

Change-Id: I6ca74c244c366641a7bcfddff2834550b1e5b472
CRs-Fixed: 3056157
2021-10-28 10:21:10 -07:00
Rakesh Pillai
b716b9746c qcacld-3.0: Enable Reduced peer_id field width feature
Enable the below datapath MLO features in Kbuild
- DP_USE_REDUCED_PEER_ID_FIELD_WIDTH

The above feature reduces the width of peer_id from
peer_metadata, thereby reducing the size of the peer
object array.

Change-Id: I58533c241a40184129786f11a47f3722cf005a61
CRs-Fixed: 3059637
2021-10-27 01:11:21 -07:00
Vevek Venkatesan
0ea8b922c2 qcacld-3.0: remove FEATURE_HAL_DELAYED_REG_WRITE_V2 from Kbuild
Since the code under FEATURE_HAL_DELAYED_REG_WRITE_V2 has been
removed and cleaned up, removing the build flag from Kbuild.

Change-Id: I66072af952877881fb700869ae4774e4f1a388cc
CRs-Fixed: 3056477
2021-10-14 15:04:47 -07:00
Mohit Khanna
35736804a8 qcacld-3.0: Update path for monitor files
Monitor mode code has been restructured into 1.0 and 2.0 directories.
Update Kbuild path to reflect the same.

Change-Id: I59e79decd269a394b21c30e0685015e6ff16e772
CRs-Fixed: 3027215
2021-10-12 02:28:04 -07:00
Aditya Kodukula
37026bc3ff qcacld-3.0: Add Support to offload icmp feature to fw
Add support to offload icmp feature to fw in case of
suspended state to avoid high power consumption.

Change-Id: I3ff19d71eac530c75be57e6b52b975e755ff2a53
CRs-Fixed: 3042452
2021-10-12 00:08:44 -07:00
Srinivas Dasari
fbd5ee5c48 qcacld-3.0: Cleanup ROAM_TARGET_IF_CONVERGENCE usage
wma to target_if convergence code is guarded under the feature
flag ROAM_TARGET_IF_CONVERGENCE and it's is enabled currently.
Remove the flag usage and remove the deprecated code(else part)
also.

Change-Id: I6973d9c366ec6a9c6164dd19f6f4775dd3ebf5f0
CRs-Fixed: 3049942
2021-10-06 00:02:06 -07:00
sandhu
cff5dc24a9 qcacld-3.0: create a sysfs to display stats on console
Add a sysfs to display DP stats on console. Sysfs file
displays requested stats on console and wlan logs.

Change-Id: Ifd56d1bf6f578a4ce3f1d963040e6d3cd138c64a
CRs-Fixed: 3035860
2021-10-05 02:51:12 -07:00
bings
a44cf88b36 qcacld-3.0: Implement legacy commands of easy mesh
Provide below APIs for easy mesh.
API to get the current frequency of the given VDEV.
API to get acs status of the given VDEV.
API to get cac status of the given VDEV.
API to get/set bandwidth of the given VDEV.
API to get band information of the given VDEV.
API to get connected STA count of the given VDEV.
API to get BSSID of the given VDEV.
API to get SSID of the given VDEV.
API to set channel of the given VDEV.
API to get/set cac timeout of the given VDEV.
API to get/set country code of the given VDEV.

Change-Id: Ia0bd201ad8155a66a4a8c5517f6fa43f3f358505
CRs-Fixed: 3027192
2021-09-30 10:51:28 -07:00
Pragaspathi Thilagaraj
7e90b8b5f5 qcacld-3.0: Fix missing attributes in connectivity logging events
Fix few missing attribute in below connectivity events:
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP

Also send the roam candidate info properly to userspace.

Change-Id: Ia9c4f095316adf8f40294f1e119cad648749bb72
CRs-Fixed: 3037650
2021-09-28 21:11:51 -07:00
Bapiraju Alla
49d83e4831 qcacld-3.0: Fix undefined symbols for ifmgr APIs
Fix undefined symbols for ifmgr APIs while compilation

Change-Id: I3563b04f9995e5c91f351f997b391fc22eb9c1b2
CRs-Fixed: 3046487
2021-09-28 17:04:35 -07:00
Huashan Qu
818dcd2f18 qcacld-3.0: Rename QCA_MCL_DFS_SUPPORT to MOBILE_DFS_SUPPORT
Rename QCA_MCL_DFS_SUPPORT to MOBILE_DFS_SUPPORT.

Change-Id: I82fbad81b4a66f2e1cb7780d13248b18d5fb5da2
CRs-Fixed: 3038285
2021-09-23 21:35:04 -07:00
Aditya Kodukula
9115747214 qcacld-3.0: Add feature flag to support ICMP offload
Add Feature flag WLAN_FEATURE_ICMP_OFFLOAD to support
ICMP offload feature.

Change-Id: I7ef593c76eaf4a02651e67bcf53b7a607a58421e
CRs-Fixed: 3042400
2021-09-22 22:00:28 -07:00
Pragaspathi Thilagaraj
2483cde388 qcacld-3.0: Kbuild: Enable nested composites on supported QKI kernels
KERNEL_SUPPORTS_NESTED_COMPOSITES := y is used to enable nested
composite support. The nested composites support is available in
all GKI & QKI kernels beginning with
5.10.20, but unfortunately is not available in any upstream kernel.

When a QKI kernel is used the flag is not set explicitly on the
kernel sources. Current logic sets the flag for GKI kernels only.
So extend the logic to set the flag for QKI kernels also.

Change-Id: I96aa36628aaf66f194c14f8883674da205220117
CRs-Fixed: 3041134
2021-09-21 14:29:35 -07:00
Srinivas Dasari
c3470070d6 qcacld-3.0: Enable ROAM wma to target_if convergence
Enable ROAM_TARGET_IF_CONVERGENCE to enable the
wma to target_if roaming convergence code.
This is a temporary change and shall be reverted by
removing the define ROAM_TARGET_IF_CONVERGENCE usage and
the legacy code(i.e. code present in else part).

Change-Id: I840573b4699f23b7633b8049741a57a0dda975a7
CRs-Fixed: 3039950
2021-09-20 12:12:00 -07:00
Pragaspathi Thilagaraj
612fe2eca2 qcacld-3.0: Add infrastructure for connect/roam logging
Add new files for connect/roam logging. Add changes to
initialize the logging buffer.
Make changes to support enqueue/dequeue log.
Define enums for MAIN_TAG, Sub TAG, category.
Add structure definitions for logging buffer.

Change-Id: I1d283fcf464da90d4f5533214d480ddda156ec27
CRs-Fixed: 3013486
2021-09-17 13:47:47 -07:00
Ashish Kumar Dhanotiya
33ec87f37a qcacld-3.0: Add feature flag for connection roaming ini
Currently driver don't have any feature flag for connection
roaming ini config and it directly tries to read the connection
roaming ini file, on some of the platforms if this ini file is
not present it returns failure message but some of the platforms
results in timeout which results in unexpected behavior.

To address above issue add a feature flag to read connection
roaming ini config.

Change-Id: Ica4159533e46ca5cc2048bf50eab2290bf5ae7d5
CRs-Fixed: 3035148
2021-09-16 10:47:19 -07:00
Aditya Kodukula
ac2783819c qcacld-3.0: Move MDNS offload changes to a new file
Add a new file and move mdns offload changes into it.

Change-Id: I6b42dd7abfbf91952ca2b7e6a89b46df269ff32f
CRs-Fixed: 3032927
2021-09-12 01:12:17 -07:00
Yu Wang
a4791d8279 qcacld-3.0: add build flag for network package timestamping
Network package timestamping is optional for TSF feature,
to make it configurable, add a new build flag
WLAN_FEATURE_TSF_PLUS_SOCK_TS.
This flag will be set only when CONFIG_WLAN_SYNC_TSF_PLUS
is enabled and CONFIG_WLAN_SYNC_TSF_PLUS_DISABLE_SOCK_TS
is not.

Change-Id: I413e85fadf93264cd41c2739b6d870aa08d60efb
CRs-Fixed: 3027378
2021-09-10 15:36:13 -07:00
Karthik Kantamneni
d49f188236 qcacld-3.0: Enable WLAN_SKIP_BAR_UPDATE support for lithium targets
Enable WLAN_SKIP_BAR_UPDATE support for lithium targets

Change-Id: Ic7ac34a6845b54005181f58081b389b2e79b29a8
CRs-Fixed: 3031396
2021-09-08 00:19:21 -07:00
Chaoli Zhou
c87f453be0 qcacld-3.0: Export CFG_TGT_DEFAULT_BMISS_OFFLOAD_MAX_VDEV
In order to support four STA default interfaces
to be created and up after driver loaded, it
requires setting bmiss_offload_max_vdev=4 to
Hastings fw. So export this variable to be
configurable and can be modified if in need.

Change-Id: I25db5dd72de7d45c6be682891abba711edaf20dd
CRs-Fixed: 3030148
2021-09-06 20:51:27 -07:00
Bapiraju Alla
07eeda1420 qcacld-3.0: Increase the mac vdev support for 80211be
Currently max vdevs are defined as 6 in osif. Increase it to 9
in case of 11be.

Change-Id: If64306cfc55690d7523ee910074064051a1b1d78
CRs-Fixed: 3027377
2021-09-01 17:13:16 -07:00
Chaoli Zhou
a41677c73f qcacld-3.0: Add CFR support for Hastings
Add CFR build flag and support CFR vendor command for Hastings.

Change-Id: I296d08b532e35c09669091ec7896fd8ab3636d31
CRs-Fixed: 2865391
2021-08-31 01:15:20 -07:00
Surabhi Vishnoi
6ac5a1226e qcacld-3.0: Add support for CFR in adrastea target in Kbuild
Add support for CFR feature for adrastea target. A new feature
flag CONFIG_WLAN_CFR_ADRASTEA is introduced for this purpose.
Also adrastea do not support enhanced CFR so when only
WLAN_CFR_ENABLE and WLAN_CFR_ADRASTEA are enabled, some
compilation issues are seen as CONFIG_WLAN_ENH_CFR_ENABLE is
not set.

Fix these compilation issues as well as introduce a new feature
flag to add support for CFR in adrastea.

Change-Id: I52bc235c4d271004698163897c15721023410017
CRs-Fixed: 2705119
2021-08-31 01:15:13 -07:00
Yue Ma
39066dbed1 qcacld-3.0: Add CONFIG_CNSS_OUT_OF_TREE flag
Use CONFIG_CNSS_OUT_OF_TREE to control if CNSS family drivers are
built from in-kernel-tree source or out-of-kernel-tree source since
the exposed header files will be in different paths. This is also
for backward compatibility.

Change-Id: Icc1253f65a596c8579424f056dcd0fcb5e73a4a1
CRs-fixed: 3022566
2021-08-27 15:12:20 -07:00
Yue Ma
2e49f1156d qcacld-3.0: Handle flags defined as modules properly
The current way in the driver to handle CONFIG_CNSS_UTILS=m and
CONFIG_WCNSS_MEM_PRE_ALLOC=m will not work if the flags are not
coming from kernel Kconfig directly (e.g. CNSS utils and prealloc
module sources are built out of kernel tree) since "cppflags-
$(CONFIG_FLAG) += -DCONFIG_FLAG" will not take effect if CONFIG_FLAG=m.
Fix it in a proper way which is same as handling CONFIG_CNSS_GENL.

Change-Id: Iab4bf34bd1ae89f947bc5f7080e18569810f5f58
CRs-fixed: 3022560
2021-08-27 15:12:16 -07:00
Utkarsh Bhatnagar
ac66479f44 qcacld-3.0: Add support to get thermal throttle stats
Add support for sending WMI_REQUEST_THERMAL_STATS_CMDID
to request for the thermal stats via vendor cmd:
QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS
This vendor cmd can either be used to clear the thermal
stats or to request for the thermal stats.
Added ini gThermalStatsTempOffset, which can
configure thermal temperature offset value for capturing
thermal stats in  thermal range such as Thermal STATS
starts capturing from temperature threshold to temperature
threshold + offset.
If this ini is set to 0, then the events are disabled.
Also, add support for the FW event where the requested
thermal stats are sent in FW event
WMI_THERM_THROT_STATS_EVENTID().
The following attributes are sent in the events for every
level:
	STATS_MIN_TEMPERATURE
	STATS_MAX_TEMPERATURE
	STATS_DWELL_TIME
	STATS_TEMP_LEVEL_COUNTER

Change-Id: If8acdeec5bde33be346332ccaf39d78d0151203d
CRs-Fixed: 3016818
2021-08-27 10:23:21 -07:00
Bapiraju Alla
e75b74396d qcacld-3.0: Update Kbuild to compile wmi_unified_11be_tlv APIs
Update Kbuild to compile wmi_unified_11be_tlv APIs

Change-Id: I1188408d94f3d15661bb0b1555969232ab9274ed
CRs-Fixed: 3021154
2021-08-24 23:47:44 -07:00
Yu Tian
25c1a53711 qcacld-3.0: Keep using 4 RX threads for platform with no IPA
For platforms that don't have IPA module, 4 RX rings can be
enabled to map to 4 RX threads. This Change is to implement a
feature flag to separate the number of threads used for
different platforms.

Change-Id: I23744ca6333f29667b0860f386dc9fc45f29abe4
CRs-Fixed: 3018613
2021-08-23 15:43:57 -07:00
Aditya Kodukula
e5d87bf5d6 qcacld-3.0: Support Multicast Domain Name Server Offload
The purpose of the multicast Domain Name System (mDNS) is to resolve
host names to IP addresses within small networks that do not include
a local name server.

It utilizes essentially the same programming interfaces, packet formats
and operating semantics as the unicast DNS, and the advantage is zero
configuration service while no need for central or global server.
Based on mDNS, the DNS-SD (Service Discovery) allows clients to discover
a named list of services by type in a specified domain using standard
DNS queries.

Here, we provide the ability to advertise the available services by
responding to mDNS queries.

Change-Id: Id2a0468d49237c21062cfd1988e34903658cdad9
CRs-Fixed: 3008549
2021-08-20 22:02:01 -07:00
Jianmin Zhu
1d4b529547 qcacld-3.0: Fix Dual AP IPA failed when NAPI enabled
Fix AP+AP IPA offload path failure when NAPI over IPA enabled on mdm
platforms by adding QCA_CONFIG_RPS check.

QCA_CONFIG_RPS is same as CONFIG_RPS, default Y, but depend on CONFIG_SMP
as msm-5.4/net/Kconfig.

For AP+AP mode,
For LA,   CONFIG_SMP on,  then QCA_CONFIG_RPS on,  use IPA exception path.
For mdm,  CONFIG_SMP off, then QCA_CONFIG_RPS off,  use IPA offload path.

For IPA napi enable status check, just use qdf_ipa_get_lan_rx_napi,
don't need MACRO IPA_LAN_RX_NAPI_SUPPORT.

Change-Id: I6b16f2a830d4e7829c9e539896ed2977895d367e
CRs-Fixed: 2992393
2021-08-17 11:01:11 -07:00
sheenam monga
e0c299d567 qcacld-3.0: Add WLAN_FEATURE_P2P_P2P_STA flag for p2p + p2p support
Add feature flag for conditional compilation of feature to enable
p2p+p2p on a device.

Change-Id: I2c95b39c3db6e51213f7625383c365799fff9e31
CRs-Fixed: 2991307
2021-08-16 12:52:55 -07:00
Bapiraju Alla
6a51927f0a qcacld-3.0: Add the 11be mlo related files for compilation
Add the new common files for the 11be mlo files for compilation.

Change-Id: Ia6cbdb83ab67cb0f6174da0cd5072b5a69ce1952
CRs-Fixed: 3009965
2021-08-10 06:14:34 -07:00
Arun Kumar Khandavalli
01dce308f4 qcacld-3.0: Derive MLD mac address
As part of new implementation for 802.11BE MLD(multi link device)
address also need to be generated, derive the address during the
driver probe for max supported MLD's.

Change-Id: I092aac0607a6b7e9e420b1c82a61869cc0b8a2d4
CRs-Fixed: 2993460
2021-08-09 07:51:53 -07:00
Amruta Kulkarni
46d873e37a qcacld-3.0: Generate assoc resp for MLO links
- Generate association response for secondary MLO links
- Update pe session and connect resp with partner link info

CRs-Fixed: 2977970
Change-Id: I17a820abef4f4df082c1f219f35599f669142670
2021-08-03 06:54:26 -07:00