Commit Graph

1171 Commits

Author SHA1 Message Date
Rakesh Pillai
56c9e8a47c qcacld-3.0: Enable datapath config events history
Enable datapath config events history for debug builds.

Change-Id: If76a5592177ba844736a1ec01e82a8cbe20e408f
CRs-Fixed: 3379155
2023-01-19 02:53:59 -08:00
Roopavathi Lingampalli
38bf757799 qcacld-3.0: Add Component APIs for required ucfg APIs in DP component
When component dependent functions calling from higher
modules or any other components, it uses ucfg APIs pattern.
Calling ucfg dependent APIs is acceptable for higher modules
like HDD, OSIF but for another components like DP to avoid
using ucfg APIs here, implementing component APIs for existing
ucfg APIs to other components like NAN, vdev_mgr in DP
component module.

Change-Id: Ia5431c7de7fc944aacf5c8a328072a8ec31e8f3f
CRs-Fixed: 3351496
2023-01-17 21:04:25 -08:00
Vinod Kumar Myadam
096eb8ce07 qcacld-3.0: Add support to disable concurrency
Add feature flag to disable concurrency

1. STA+P2P+P2P
2. STA+SAP+P2P
3. SAP+P2P
4. P2P+P2P
5. SAP+NAN
6. STA+SAP
7. STA+NAN

Change-Id: Ibbdfa866e5cdefc036ea7f401997a8ab71e0629b
CRs-Fixed: 3345359
2023-01-13 23:20:16 -08:00
Aditya Kodukula
a0878dc902 qcacld-3.0: Remove unused config flag
Remove legacy unused config flag from defconfig files.

Change-Id: Iec3c760be7e6cf2cc789d6bd916642e922ae43a1
CRs-Fixed: 3380334
2023-01-13 20:23:14 -08:00
Ananya Gupta
ec471e92f2 qcacld-3.0: Create sysfs file and ini for direct link unit test
Create sysfs file for direct link unit test command to
generate traffic from LPASS.
Add ini to enable direct link unit testing.

Change-Id: I5b143bc6751eedb1a65cd836ea738744b72cc2cc
CRs-Fixed: 3365576
2023-01-11 03:46:53 -08:00
Aditya Kodukula
6e68981b63 qcacld-3.0: Enable CNSS HW Disable feature based on config flag
Enable the feature CNSS HW Secure Disable only when
CONFIG_CNSS_HW_SECURE_DISABLE is enabled.

Change-Id: Ib0e01360f8ee9390290487c097c3d821f17485f8
CRs-Fixed: 3360826
2023-01-10 23:06:13 -08:00
Jianmin Zhu
a03a3dc504 qcacld-3.0: Enable driver puncture cap
Fix issue that driver doesn't report puncture cap to kernel and hostapd for
undefined MACRO.

Enable a new build flag CFG80211_RU_PUNCTURE_SUPPORT when kernel code
contains nl80211_put_ru_punct_supp_bw.

Change-Id: Ib375c248065b4899f2d336155b1f71a5359e6fb7
CRs-Fixed: 3356751
2023-01-01 20:16:21 -08:00
Divyajyothi Goparaju
ee4ca3b005 qcacld-3.0: Optimize pdev set param command frequency
Currently wlan_mlme_configure_chain_mask API sends many
pdev set param commands separately to firmware.

Combine all pdev set params of wlan_mlme_configure_chain_mask
send to WMI to reduce number of transactions.
Also replace target wmi pdev params with host wmi
pdev params to fix existing broken layering
violation.

Change-Id: If0b7bce9a7c87d0f07e7a9f1d2cd80139f027308
CRs-Fixed: 3151438
2022-12-26 05:51:59 -08:00
VIJAY RAJ
453bc8d113 qcacld-3.0: Add vendor command for Green AP power save mode
Introducing vendor command for Green AP power save mode.

Change-Id: I23b5c12ed3ca3c3b134c59e6c93df72a9072b174
CRs-Fixed: 3265087
2022-12-26 03:23:18 -08:00
Rakesh Pillai
62942097b1 qcacld-3.0: Enable WAR for incorrect first_msdu flag indication
Enable the WAR to handle incorrect setting of first msdu
in mpdu flag for an mpdu with more than 6 msdu.

Change-Id: I7f7219828f2787b889a26092476bd76b97dee149
CRs-Fixed: 3363780
2022-12-20 11:56:23 -08:00
Will Huang
9029c332a6 qcacld-3.0: Enable AFC feature for sdxlemur
Add AFC common include path to regulatory include path.
Enable AFC feature for sdxlemur.

Change-Id: I6b936b3f6443868f05cf86351bcf31d24d65bbbc
CRs-Fixed: 3154178
2022-12-14 11:57:13 -08:00
Jinwei Chen
ad9fd42f9f qcacld-3.0: enable TX completion ring desc sanity check
set CONFIG_DP_TX_COMP_RING_DESC_SANITY_CHECK for Def build to
enable TX completion ring desc sanity check.

Change-Id: Ia9cd28f6bcce234d0e7bf7f621cc33208479e899
CRs-Fixed: 3349744
2022-12-12 09:54:32 -08:00
Roopavathi Lingampalli
b81f52931c qcacld-3.0: Add Rx thread feature support for Dp component
Add Rx thread and Rx refill thread support for
DP componentization.

Change-Id: I2c0a0f7780280a0c2304f026d2580a81123de312
CRs-Fixed: 3316814
2022-12-06 07:35:08 -08:00
Li Feng
980420444e qcacld-3.0: Add timeout of NAPI polling for single MSI case
Observed NAPI of REO2SW1 hard to complete caused by slow CPU/schedule
on REO2SW1, hence IRQ of REO2SW1 keep disabled during the polling which
impact other MSI as well in single MSI case, until hit REO2TCL timeout
and crash.

The fix is complete the dp rx NAPI poll and re-enable the irq if the
irq disabled for long time.

Change-Id: Iad53b39c8b8d6a99a9006149e7579f8dc3c93e39
CRs-Fixed: 3134851
2022-12-04 10:08:32 -08:00
Amruta Kulkarni
a9850cfe67 qcacld-3.0: Parse and save t2lm ie
Adds support to parse and save t2lm ie from beacon or
probe response in t2lm database

Change-Id: Ieea735200ab0ae120c01b632687a82ca972459dc
CRs-Fixed: 3337174
2022-12-02 01:24:26 -08:00
Yeshwanth Sriram Guntuka
bff1e3aa36 qcacld-3.0: Add support for DP QMI WFDS client
Add support for QMI client for WiFi Driver
Service (WFDS) in DP component.

Change-Id: Id0a8a51c32aa9f058e57e622b3ad65d405806148
CRs-Fixed: 3328386
2022-11-23 13:54:33 -08:00
Yeshwanth Sriram Guntuka
c589e67a42 qcacld-3.0: Add QMI files for WFDS service
Add initial version of QMI files that are used for
communication between WLAN host driver on APSS and
WiFi driver on LPASS.

Change-Id: If7352490d73457479e85958b90066f9c397bb310
CRs-Fixed: 3328378
2022-11-23 00:30:07 -08:00
Yeshwanth Sriram Guntuka
d2cc52d5ae qcacld-3.0: Add support for QMI component
Add support for QMI component.

Change-Id: I63735800ea1166e875ff12bfd22df3c3d9c6312f
CRs-Fixed: 3337043
2022-11-23 00:30:01 -08:00
Vinod Kumar Pirla
4f491c277c qcacld-3.0: Increase the max MLD dev context for kiwi_v2
For kiwi_v2 target increase the value of max MLD dev contexts
to three. Define WLAN_UMAC_MLO_MAX_DEV with the new value in
kiwi_v2 defconfig file.

Change-Id: If9f86cbf5c98f69b9f56b0e4226fcf26f2b663c3
CRs-Fixed: 3337651
2022-11-19 07:43:53 -08:00
chunquan
dcbebde9e4 qcacld-3.0: Optimize wlan memory for kuno
Disable CFR/EPPING/NAN/more_tx_desc/OEM DATA and
RSSI_MONITOR/APF/P2P_DEBUG/P2P_LISTEN/SPECTAL_SCAN

Update wlan_hdd_debugfs_offload.c for APF compile error.

Change-Id: I8ede890b0b821cec5f03f2ede535f34d8883638d
CRs-Fixed: 3332742
2022-11-18 00:31:15 -08:00
Venkateswara Naralasetty
1b32411a89 qcacld-3.0: Enable HIF_LATENCY_PROFILE_ENABLE in debug mode
Enable NAPI schedule latency histogram stats in debug mode
which helps to debug the NAPI shcedule delay issues.

Change-Id: Idc58a5c2eab6fcb9ac55ab04cf083982d0aed003
CRs-Fixed: 3318049
2022-11-10 09:33:04 -08:00
Amruta Kulkarni
67e405ee90 qcacld-3.0: Add new files for T2LM handling
Add new files for TID to Link mapping handling.

Change-Id: I296a898e09b67490b85f4f7fba29322dbc3a757f
CRs-Fixed: 3322944
2022-11-04 03:18:47 -07:00
Vishal Miskin
4e95648b6f qcacld-3.0: Measure TSF latency between host TSF sync enabled devices
The feature raises a pulses at specified interval in TSF time domain.
The pulses can be used to determine driver level latency between hosts
as they are operating in same TSF time domain.
Add ini "g_tsf_accuracy_configs" to configure parameters for TSF accuracy
feature to customize GPIO pins and interval.

Change-Id: I49609d5beba8043ac2ecc086e97b01d1e0b2d3f6
CRs-Fixed: 3277992
2022-10-31 09:09:19 -07:00
Rakesh Pillai
400ac6a862 qcacld-3.0: Enable feature to drop packets from non-monitor PMAC
Enable the feature to drop the packets which are
arriving from PMAC on which monitor vdev is not running.

Change-Id: I2a5056f40e961102d01b5776577bd11a551a780d
CRs-Fixed: 3319409
2022-10-27 19:38:31 -07:00
Yu Wang
4d9dfe08fd qcacld-3.0: Introduce CONFIG_WLAN_TRACE_HIDE_SSID
Introduce the feature to hide SSID in the logs.
To enable this feature, set CONFIG_WLAN_TRACE_HIDE_SSID to y.
If this feature is enabled, SSID 'my_ssid' will be printed as
'*' in the logs.

Change-Id: I97ef84ecdcbfd1b36b7874cfc30760f5fda5df14
CRs-Fixed: 3294520
2022-10-18 16:30:28 -07:00
Mohammed Ahmed
00fba42e78 qcacld-3.0: move wlan_coex_public_structs.h to qcacmn
Current code has wlan_coex_public_structs.h in qcacld, when it should
be in qcacmn due to convergence of the COEX feature.
Fix this by moving the header file to qcacmn.

Change-Id: Id45c85e0ff492d149cac71c8c0ca5443b879ef15
CRs-Fixed: 3289250
2022-10-18 07:13:31 -07:00
Vinod Kumar Pirla
8c5680c852 qcacld-3.0: Link params embedded in station param struct
In kernel 5.15 and above a new member is introduced in
station_parameters structure to move link specific variables.

This change will port the driver code to make it compatible.

Change-Id: I3a1a05961bb5e747d946ffa8314319f898ef7b97
CRs-Fixed: 3304240
2022-10-17 19:59:21 -07:00
Sheenam Monga
93c62a8893 qcacld-3.0: Compile spatial reuse files based on flag
Currently, files related to spatial reuse are compiled
based on 11AX feature flag instead of SRP feature flag
and OBSS_PD feature is disabled always.

Fix is to avoid dependency of spatial reuse compilation
on 11AX and conditionally compile spatial reuse based on
SRP feature flag and Enable OBSS_PD feature based on 11AX
feature flag.

Change-Id: Ia5a882f7c842c3c2979da9b73139c59af765d23c
CRs-Fixed: 3306965
2022-10-17 06:47:55 -07:00
Rachit Kankane
983623c4b8 qcacld-3.0: Spatial Reuse enhancement for SAP
Add below two enhancements for SAP
1. Spatial Reuse enabled in single MAC concurrency
2. Set bit HESIGA_Spatial_reuse_value15_allowed in SRP IE

Change-Id: Id2d3d04ae1b3b9a2e6d84f30749b577bc7b79061
CRs-Fixed: 3305447
2022-10-17 06:47:26 -07:00
Jia Ding
1b3e7ed476 qcacld-3.0: Fix WLAN_SYSFS componentization
Move 11be_rate sysfs entry implementation from HDD EHT main body
to separate source files and define WLAN_SYSFS_EHT_RATE feature
flag accordingly in Kbuild.

All sysfs implementations shall be built only if CONFIG_WLAN_SYSFS=y.
Hence correct dp_tx_delay_stats and the closing endif.

Change-Id: I84aa7fc34aeff932bb51800e70c4c3611bf0d627
CRs-Fixed: 3309689
2022-10-14 08:31:09 -07:00
Rakesh Pillai
0481bbb9af qcacld-3.0: Enable the flag setting for NO_MSDU_START for kiwi
For kiwi target, there is no MSDU_START tlv, and hence
the tlv information has to be obtained based on MSDU_END.

Enable this flag, which is used for monitor mode frame
processing for KIWI target.

Change-Id: I160133a92b5f8b79573717b53f248c24935a67eb
CRs-Fixed: 3304764
2022-10-10 01:10:57 -07:00
Jeff Johnson
01bf3d1808 qcacld-3.0: Kbuild: Fix misspelling
Fix misspelling in Kbuild: distingush => distinguish

Change-Id: Ia36e914df27a8a25367ed32e59a86ea7ac38ca02
CRs-Fixed: 3303619
2022-10-03 11:26:56 -07:00
Abhilash
1db3572886 qcacld-3.0: Move COAP related INCS into feature flag
Currently implemented change for COAP causes to append
header files to INCS even if CONFIG_WLAN_FEATURE_COAP
is disabled. This leads to compilation hard stop due to
overflow of argumnets to shell.

ie, by moving COAP related code under feature flag can
help to reduce shell arguments when COAP is disabled.

Change-Id: If1f8334229a601f7415cbad876a7c9e0fcfb1370
CRs-Fixed: 3299853
2022-10-03 06:44:59 -07:00
Sheenam Monga
dca999a564 qcacld-3.0: Add feature flag to support SR
Add WLAN_FEATURE_SR to enable/disable
Spatial Reuse support which is futher
dependent on 11AX support.

Change-Id: Iaa6f2a50c073eb279f967b6820bf5551bf100e3f
CRs-Fixed: 3301884
2022-10-01 11:35:06 -07:00
Pragaspathi Thilagaraj
34600ce17a qcacld-3.0: Update wifi_pos_vdev_delete_all_ranging_peers_cb call
Update wifi_pos_vdev_delete_all_ranging_peers_cb call to call from
rx_ops instead of wifi pos tx ops.

Change-Id: Ic62d4a733ad3ea2e0064215e94e52b1444fcc4ec
CRs-Fixed: 3298483
2022-09-30 07:48:56 -07:00
Azmath Mohammed
aacfd1d3d0 qcacld-3.0: Implement DP component for FISA feature
Add FISA feature support for DP componentization.

Change-Id: I748a20ec44d1c299aab8d31facd059eb2e35e680
CRs-Fixed: 3243693
2022-09-28 22:31:29 -07:00
Yu Ouyang
85f34a3bb9 qcacld-3.0: Shutdown WLAN in system suspend prepare
This re-introduces the orignal patch which shutdowns WLAN in system
suspend prepare.

Orignal patch Id1f5172a7fc1792c83c8c1c20127de815f7e4980 is reverted by
Ic82db9dc0ca9d6686df99926335af27abc61cdb5 for deadlock issue.

However, deadlock between cnss_pm_notify and unregister_pm_notifier is
not caused by Id1f5172a7fc1792c83c8c1c20127de815f7e4980. So restore it
and add flag to enable/disable feature shutdown wlan in system suspend.

Deadlock issue is caused by "up_write(&cnss_pm_sem) is invoked before
down_write(&cnss_pm_sem) in function cnss_pm_notify". The issue can be
fixed by changes I533c373b85f554fbcceb562d9f56c6b88e5155bb and
I7768fdbeb1fa8cd6ef3b260eb0aafb231aeed324.

Change-Id: I25e4398a8d3b1a52cf7bc554af74d123ec797c6e
CRs-Fixed: 3287742
2022-09-27 11:57:08 -07:00
Amit Mehta
ce75c0c4f0 qcacld-3.0: Enable QCA_GET_TSF_VIA_REG for kiwi_v2
Enable feature to get TSF timestamp by reading scratch registers instead
of getting it via WMI.

Change-Id: If910b54b3c56499af0967312cbcc4654e09b43fe
CRs-Fixed: 3287540
2022-09-26 16:16:54 -07:00
Aditya Kodukula
1472d9ad6d qcacld-3.0: Disable 11be when not supported by target
Disable 11be when not supported by target

Change-Id: Iecf9ab3eab5a9e69b01fb03b30b028b57019b10d
CRs-Fixed: 3291961
2022-09-22 06:09:24 -07:00
Mohammed Ahmed
d0751ac42f qcacld-3.0: Reduce time between Ref Leak prints
Currently the Vdev Ref Leak functionality prints holders of references
every 10 seconds, resulting in only two prints before a device crash.
Fix this by reducing the timeout macro from 10 seconds to 4 seconds.

Change-Id: Icc1046a5678d4b224c2bc715d27fed092836e269
CRs-Fixed: 3292752
2022-09-16 23:36:17 -07:00
Roopavathi Lingampalli
6d4df6c2da qcacld-3.0: Modify Pre_alloc memory support for Dp component
Modify Pre_alloc memory support for DP componentization.

Change-Id: I274e3163bc6623a7a4e08f8ce30d3bc17a0b444b
CRs-Fixed: 3285947
2022-09-16 11:52:08 -07:00
Ananya Gupta
32625de061 qcacld-3.0: Enable HAL_RECORD_SUSPEND_WRITE in debug mode
Enable FEATURE_HAL_RECORD_SUSPEND_WRITE when SLUB_DEBUG
mode is enabled.

Change-Id: I10b2ba6cf3d8c736926f1bc1a1eb281d9277b5c1
CRs-Fixed: 3284508
2022-09-12 10:15:11 -07:00
Surabhi Vishnoi
603ebd0743 qcacld-3.0: Enable SAP ACS optimization feature config
Enable SAP ACS optimization config in default_defconfig and
add corresponding kbuild flag.

Change-Id: I9f741cf5e17c8258136c2ebbd6a975888989fa66
CRs-Fixed: 3280853
2022-09-06 04:23:24 -07:00
Amit Mehta
be7a5a4e10 qcacld-3.0: Add feature flag to skip msi int mask set
Add feature flag to skip MSI interrupt mask set of
mon rx ring if device mode is not monitor mode to
fix double free issue resulting from call
to api from two different contexts.

Change-Id: Ie065c1034ef8b9f2cf4eb762c4a9be23d9799efd
CRs-Fixed: 3277477
2022-08-27 22:57:27 -07:00
Yu Wang
0f0d2fc927 qcacld-3.0: add build support for CoAP
Add build support for CoAP(Constrained Application Protocol)
component.

Change-Id: I1578091ddc6348398d3a0dbc1c7378deddf10712
CRs-Fixed: 3257891
2022-08-21 22:18:29 -07:00
Arun Kumar Khandavalli
6c9cb8b5b4 qcacld-3.0: Add a new flag to enable the mlo key operation support
Add a new flag to enable the Mlo key operation support.

Change-Id: I528526dd3787ae9ff50d00be0d8e36e33443557c
CRs-Fixed: 3267043
2022-08-19 05:05:31 -07:00
nakul kachhwaha
55b4c8f1b5 qcacld-3.0: Add sysfs support for traffic end indication
Add sysfs entry to configure status and dscp values
used by application for regular traffic and last packet
to mark traffic end.

Change-Id: Ib0e0aaf64e24da3b402b695840850b01c19a4991
CRs-Fixed: 3207451
2022-08-16 09:14:22 -07:00
Jinwei Chen
823f94a3e3 qcacld-3.0: enable NO_RX_PKT_HDR_TLV feature for KIWI
enable NO_RX_PKT_HDR_TLV feature for KIWI

Change-Id: I7be006efc02ee23c770330b8f446dd1c30c97486
CRs-Fixed: 3262878
2022-08-16 06:00:41 -07:00
Ashish Kumar Dhanotiya
d9dd8cc039 qcacld-3.0: Create wifi features sysfs file
Based on new requirement, create wifi features sysfs file.

Change-Id: I4ff20e515f87ffc43f9f315582340922106e990f
CRs-Fixed: 3262797
2022-08-12 13:48:27 -07:00
Ashish
04f31c81d4 qcacld-3.0: Enable FEATURE_SET feature
Enable feature set feature flag to report required feature
set information.

Change-Id: Ib0a83f9ef9fadea5fd1188464b6b9ad44cb3dfc6
CRs-Fixed: 3262636
2022-08-12 00:39:37 -07:00