Commit Graph

976 Commits

Author SHA1 Message Date
Utkarsh Bhatnagar
7f9ad91112 qcacld-3.0: Move sme_ft_api to connection manager ucfg api
Move sme_ft_api to connection manager ucfg apis.

Change-Id: If710be0d8a4a9d45d37f588389e40f66c62c7487
CRs-Fixed: 2990112
2021-07-14 07:25:23 -07:00
Ashish Kumar Dhanotiya
55ab069325 qcacld-3.0: Move dump in progress feature to separate file
With this change introduce featurization for dump in progress
and move implementation related to this feature to new files.

Change-Id: I4614aecde57a9c5ffec765f3afaa943c58956132
CRs-Fixed: 2979226
2021-07-12 07:45:34 -07:00
Vevek Venkatesan
516ad4f689 Revert "qcacld-3.0: enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support"
This reverts the change to do the memset of SW2TCL desc consumed by
HW to zero.

Change-Id: Ie56207cf483643f6e294df23f5445ca853a75d51
CRs-Fixed: 2984818
2021-07-06 17:33:26 -07:00
Vevek Venkatesan
f2e5ea6182 qcacld-3.0: enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support
Enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support for moselle
targets.

Change-Id: I1ef8927c2af040cda67dab9347679f64a55493ac
CRs-Fixed: 2983561
2021-07-05 03:20:17 -07:00
Mohit Khanna
f06df4c16a qcacld-3.0: Cleanup HW-based feature flags from Kbuild
Currently we use hardware based feature flags in Kbuild file to
enable/disable certain feature flags. In case hardware changes, then we
would also need to edit Kbuild file to enable feature flags for the next
target. Instead, use CONFIG_<FEATURE_FLAG> from defconfig files to
enable DP feature flags. This will limit the changes for hardware update
to defconfig files only.

Change-Id: Icc8aa6ad51904946f9141a0f41728ed72b1f6d2f
CRs-Fixed: 2964342
2021-06-30 13:47:24 -07:00
Rakesh Pillai
5010352aea qcacld-3.0: Enable Near Full IRQ in Kbuild
Enable the Near Full IRQ feature flag in Kbuild
for WCN7850.

Change-Id: I3c3760133c3fb31233f8abf450dacbd9ba51f09c
CRs-Fixed: 2965085
2021-06-30 13:47:10 -07:00
Ashish Kumar Dhanotiya
89c41b9256 qcacld-3.0: Enable utf for connection manager
Add a logic to enable utf for connection manager.

Change-Id: Id8ac70c6437bb9d77cc374abbbeea17dab6f9e3a
CRs-Fixed: 2975701
2021-06-29 19:14:36 -07:00
Abhishek Singh
febb2d848f qcacld-3.0: Remove connection manager Macro from kbuild
Remove connection manager Macro from kbuild.

Change-Id: Ica3e5b36c7d8d885f02c906db3456227d25cdfc6
CRs-Fixed: 2979612
2021-06-29 15:04:57 -07:00
Wu Gao
9a64793130 qcacld-3.0: Enable wakelock for enhanced CFR capture
There is potential risk when starting CFR and resume happens at same
time. Wake lock is added to CFR component, and this change enables
wake lock for enhanced CFR.

Change-Id: I1ebe8c11fad66b66adcad0b551756abf2c010cde
CRs-Fixed: 2977699
2021-06-28 19:25:49 -07:00
Abhishek Singh
e9531a9d24 qcacld-3.0: Code cleanup for connection manager CSR
Remove unused code related to ndef FEATURE_CM_ENABLE in CSR.

Change-Id: I156b7ee286f666ee5d660312bf5ba2fe364165c4
CRs-Fixed: 2977584
2021-06-27 23:35:22 -07:00
Balaji Pothunoori
3dfe4180a2 Revert "qcacld-3.0: Enable TX_AGGREGATION_SIZE_ENABLE for HST"
This reverts commit Ieca8464991a6a194d6f02b70fe4972aca288b541.

Change-Id: Iacdbafc5e7e07a3a3effc029edb4adf58a619ada
CRs-Fixed: 2963209
2021-06-25 11:56:09 -07:00
Huashan Qu
1d647269cd qcacld-3.0: Enable connection manager LFR2 code path
Enable connection manager LFR2 code path, then all targets which are
using LFR2 will switch to connection manager code path.

Change-Id: I37f831596699d39e635d88ee88faf841f3a36063
CRs-Fixed: 2968850
2021-06-25 09:40:08 -07:00
Rakesh Pillai
e8621c7db8 qcacld-3.0: Enable SHADOW_WRITE_DELAY
When FEATURE_HAL_DELAYED_REG_WRITE enabled, also enabled
SHADOW_WRITE_DELAY to avoid back to back shadow reg write.

Change-Id: I8d48496814e063ebd441db3520e3a5406c5db13e
CRs-Fixed: 2967202
2021-06-24 22:25:02 -07:00
Alan Chen
27aeb4863e qcacld-3.0: Add debug log to print link vote id
Add debug log to print more details about the link vote id when
PCIe link suspend is not allowed.

Change-Id: I5069202436e0da37b8ae22f84e28ac06d35002b5
CRs-Fixed: 2964957
2021-06-24 16:32:02 -07:00
Tiger Yu
33c1df645b qcacld-3.0: Enable the wlan IPA events for P2P GO/CLI mode for qca6390
Enable the wlan IPA events for P2P GO/CLI mode for qca6390 to avoid RX
packets get dropped due to IPA interface context is not created.

Change-Id: I1e2c5e4085874280779d8d8d07efdb1f33e6d90b
CRs-Fixed: 2853271
2021-06-22 13:14:06 -07:00
Yu Wang
6b08ef992a qcacld-3.0: wait till complete for north bound add key request
Set the newly added flag for wlan_cfg80211_crypto_add_key():
set to true if the request is from north bound, false otherwise.
Move processing of install key complete event into
crypto component.

Change-Id: I981e3722966c5b44255b3e29b7df3fbccfa087c8
CRs-Fixed: 2839454
2021-06-21 23:13:59 -07:00
Jinwei Chen
7fef8c3b3c qcacld-3.0: Add HW cookie conversion support
Add HW cookie conversion support for wcn7850 soc.

Change-Id: I2adedb13bcaeebb1715b391f790b639d422e08f6
CRs-Fixed: 2929512
2021-06-21 17:10:05 -07:00
Liangwei Dong
3ad4f9d78b qcacld-3.0: Handle DFS channel radar history get vendor command
Add support for QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY vendor
command. This command will return the current NOL list in driver
and the last Radar detection result in previous SAP active state
(includes CAC state).

Change-Id: I719630c39b89c1813ca05c4356dce627d72d82e2
CRs-Fixed: 2966501
2021-06-21 11:12:53 -07:00
Manjunathappa Prakash
3e93ea0127 qcacld-3.0: Enable handling of buf_addr_type desc in dp_rx_err
Enable compile macro to handle buf_type decriptor in dp_rx_err_process.

Change-Id: Ibdec18b9b749f18b1e9d704974f4cbaabbc4e6a7
CRs-Fixed: 2957094
2021-06-09 23:37:54 -07:00
Sandeep Puligilla
07cbc9627e qcacld-3.0: Fix typo to compile MLO manager files
Fix typo to compile MLO manager files

Change-Id: I56c7945617a89e83b181d881e369980084979ef0
CRs-Fixed: 2962992
2021-06-09 03:15:00 -07:00
Manjunathappa Prakash
5eaac03dc9 qcacld-3.0: Add Kbuild support for RX BE/Li files
Add support in Kbuild file to compile RX files for BE/Li targets.

CRs-Fixed: 2891099
Change-Id: I4cf3a2139a41d10f08f9839ce9156cb7484c62e9
2021-06-04 10:43:31 -07:00
Mohit Khanna
9398ceada7 qcacld-3.0: Kbuild changes for target specific DP TX files
Add Kbuild support to compile DP TX files in DP/li and DP/be
directories

CRs-Fixed: 2891099
Change-Id: Ie97cad037b29069b2cdc25555d1c75817079bd93
2021-06-04 10:43:31 -07:00
Rakesh Pillai
e86da7276c qcacld-3.0: Changes to enable BE/WCN7850 flags
Changes to enable compilation for beryllium target(chip WCN7850).

CRs-Fixed: 2888534
Change-Id: I7b3d252fc8550883a2d24b6beb2b78f482f5004b
2021-06-04 10:43:23 -07:00
Sandeep Puligilla
0b5da86b67 qcacld-3.0: Add MLO manager to build system
Add MLO manager files to build system.

Change-Id: I911a4ddbd93e100cb95c71a3e8cd6a5609c97e0b
CRs-Fixed: 2958473
2021-06-03 03:44:16 -07:00
sheenam monga
c1e87af47a qcacld-3.0: Add fature flag to get usable channels
Add feature flag for the feature to get usable channels.

Change-Id: I6dd2360284c395747b55f806caab2a5a44089866
CRs-Fixed: 2947180
2021-05-31 05:35:49 -07:00
Huashan Qu
1557129851 qcacld-3.0: Add host roam preauth handling code for connection manager
Add host roam preauth handling code for connection manager.

Change-Id: Id97d716a6c47ba08b2e8ef5e3ed675c5dcf88ed8
CRs-Fixed: 2954515
2021-05-28 01:46:52 -07:00
sandhu
7ab9c3057e qcacld-3.0: Add flags for HTT HTC tx based completion on lithium
Added flag for HTT HTC tx based completion. currently
packet are freed using htt htc misc list.

Change-Id: I2e7e4d59cadf30f4bb14eaefc045240d1ebc1aaa
CRs-Fixed: 2922547
2021-05-17 18:55:54 -07:00
Manikanta Pubbisetty
5af2169e8f qcacld-3.0: config changes to enable deferred reo qdesc free
Config changes to enable deferred freeing of REO Queue
descriptors feature on WCN6750.

Change-Id: Id7524a8f7de8943b11530e70a842c138cc80bb71
CRs-Fixed: 2940347
2021-05-17 03:10:16 -07:00
Karthik Kantamneni
d16c504bf9 qcacld-3.0: Increase QDF nbuf history for Lithium targets
For some of the stability issues triggered by H.W,
by the time host detects it most of the QDF history
is getting overwritten to avoid this increasing QDF
nbuf history. So that there will be less chance of
events getting overwritten.

Change-Id: Ia4bad1a175976af2e56126b56ae8c92a988e4289
CRs-Fixed: 2942868
2021-05-12 20:57:44 -07:00
Yeshwanth Sriram Guntuka
2294dad9ba qcacld-3.0: Enable config flag to disable EAPOL intrabss fwd
Enable config flag to disable EAPOL intrabss fwd for Lithium

Change-Id: I23959e38b5cbd845d369bebd6913150eca4551bf
CRs-Fixed: 2876353
2021-05-12 18:42:14 -07:00
Karthik Kantamneni
5f7a749e92 qcacld-3.0: Enable TX HW descriptor history support
Enable TX HW descriptor history support for Lithium targets

Change-Id: I84c079cb28f0e320de5378291a21263b8417372f
CRs-Fixed: 2934910
2021-05-10 09:02:51 -07:00
Gururaj Pandurangi
8d62ca99ce qcacld-3.0: Avoid obj mgr logging on console for MCC
Avoid obj mgr logging of get ref API print on console
for MCC as it leads to excessive logging and assert.

Change-Id: I75fb9381a7c122f4d7701888da35c7e38836250e
CRs-Fixed: 2941196
2021-05-07 22:53:43 -07:00
Vevek Venkatesan
99c942c15d qcacld-3.0: enable Tx descriptor history in Tx and comp rings
Enable the history support to log Tx descriptors programmed
in Tx and completion HW rings.

Change-Id: I5ce308354714da78baa05500bc73e1a9ec91b958
CRs-Fixed: 2935363
2021-05-06 13:49:36 -07:00
Alan Chen
cb5605b006 qcacld-3.0: Increase periodicity of LOG_DEL_OBJ_TIMEOUT_VALUE_MSEC
obj_mgr_alert() function is currently used in
wlan_objmgr_iterate_log_del_obj_handle() to print and is causing
spinlock to be held too long and timing out. Thus, increase the
periodicity of LOG_DEL_OBJ_TIMEOUT_VALUE_MSEC to 10 seconds.

Change-Id: I48a7b2ce031393493b9d19c9dd365a725c60284e
CRs-Fixed: 2930279
2021-04-24 11:38:17 -07:00
Amruta Kulkarni
fb99dd2375 qcacld-3.0: Remove target specific compilation
For api's in wlan_hdd_rx_monitor.h, replace target
specific conditional compilation with feature specific
conditional compilation.

CRs-Fixed: 2819131
Change-Id: I2678192ad5dbb1a4515bd04e67ca23f71f92a2d1
2021-04-23 12:54:32 -07:00
Karthik Kantamneni
78bc206db0 qcacld-3.0: Enable REO queue descriptor history
Enable REO queue descriptor history for Lithium based targets

Change-Id: I452726ceb056e880096f72572e562a2d4db7e3b3
CRs-Fixed: 2929956
2021-04-23 04:35:48 -07:00
Yeshwanth Sriram Guntuka
81d513134f qcacld-3.0: Enable TX_AGGREGATION_SIZE_ENABLE for HST
Tx MPDU aggregation is not happening in HE80 11ax connection
resulting in low throughput for HST.

Fix is to enable TX_AGGREGATION_SIZE_ENABLE for HST.

Change-Id: Ieca8464991a6a194d6f02b70fe4972aca288b541
CRs-Fixed: 2925514
2021-04-22 19:43:09 -07:00
Jia Ding
30a01d3b69 qcacld-3.0: Add IPA_WDI3_TX_TWO_PIPES macro
IPA_WDI3_TX_TWO_PIPES is added to enable two TX pipes
configuration for IPA WDI 3.0 interfaces.

Enable IPA_WDI3_TX_TWO_PIPES on sdxprairie platform.

Change-Id: I34fe0af56b169ebad9d7bb29b38838dd44503736
CRs-Fixed: 2750082
2021-04-22 15:25:17 -07:00
bings
b9aa44c349 qcacld-3.0: make CONFIG_CNSS_UTILS as wlan driver build option
CONFIG_CNSS_UTILS is controlled in the msm kernel config, while it is
not in the customer kernel.

Since it is a wlan feature, make CONFIG_CNSS_UTILS as wlan driver build
option, so that driver can enable this feature dynamically when building
wlan driver.

Change-Id: Ib8232a67da33e4613524c67cead5b90014fd371d
CRs-Fixed: 2922303
2021-04-19 13:32:12 -07:00
Bapiraju Alla
83da7ae1f1 qcacld-3.0: Increase latency detection timer timeout and threshold
Currently latency detection timer timeout and threshold values are
used as 2 and 1.9 seconds respectively. After going through few
issues, 2seconds found to be too aggressive and hence increasing
these values to 4 and 3.9 seconds respectively.

Change-Id: Ie9314b517a7a8e47460effc86e5b3fb939dcbb33
CRs-Fixed: 2921474
2021-04-19 09:35:57 -07:00
Arun Kumar Khandavalli
061fe45f3c qcacld-3.0: update the eht capabilities received from firmware
Update the wma structures with the eht capabilities received
from the firmware.

Change-Id: If571ab857e1f71b972655d9d48902b28e3974b1e
CRs-Fixed: 2911863
2021-04-19 00:52:34 -07:00
bings
9c55e8a7d9 qcacld-3.0: Add APIs to update 11be target capabilities
As part of 11be enhancements, firmware will send the 11be hardware
capabilities that are supported by the device. Add new HDD APIs to
store these 11be capabilities in the host driver.

Change-Id: Ib3baa41ea3d8ef2ce49b88e4b48d8bc29556cd66
CRs-Fixed: 2908045
2021-04-15 22:52:14 -07:00
Mohit Khanna
73a1e0a529 qcacld-3.0: Record pkt history in fisa path
Record per packet history in FISA aggregation path.

Change-Id: I737481343f6c8d19deb57d39adb64f3a10f7d6f7
CRs-Fixed: 2911868
2021-04-14 22:11:36 -07:00
Jeff Johnson
8ccb229505 qcacld-3.0: Kbuild: Update WLAN_CFG_OVERRIDE handling
Currently Kbuild handles WLAN_CONFIG_OVERRIDE directives by writing
the overrides into a file and then including the file. This violates
one of the requirements of the Hermetic Build feature which forbids
modifying the source directory. This is also subject to a race
condition where multiple concurrent builds attempt to write to the
file in parallel, and one of the builds ends up consuming the
overrides from both builds.

To avoid these issues update the WLAN_CFG_OVERRIDE handling to no
longer use a file, but to instead just $(eval) the overrides.

Change-Id: Iac159228a82b0a8134e272ce63ed568050e8e6ae
CRs-Fixed: 2917351
2021-04-13 14:50:40 -07:00
Jeff Johnson
1098e249a8 qcacld-3.0: Enabled nested composites on supported GKI kernels
KERNEL_SUPPORTS_NESTED_COMPOSITES := y is used to enable nested
composite support. The nested composite support is available in some
MSM kernels, and is available in all GKI kernels beginning with
5.10.20, but unfortunately is not available in any upstream kernel.

When the feature is present in an MSM kernel, the flag is explicitly
set in the kernel sources.  When a GKI kernel is used, there isn't a
flag set in the sources. Therefore add logic to set the flag if we are
building with GKI kernel 5.10.20 or greater.

Change-Id: I13cd1a07915e9d187da22259cc61d9481e908e79
CRs-Fixed: 2914541
2021-04-13 01:30:58 -07:00
Abhishek Singh
aad0c30f20 qcacld-3.0: Update comments for temp change to enable connection mgr
Update comments for temp change done to enable connection mgr, as
CONFIG_CM_ENABLE will be removed once Connection manager
LFR2 changes are done.

Change-Id: I22bc1f3f9fe5a69206ac496e99a60beb87dc1e36
CRs-Fixed: 2921657
2021-04-13 01:30:33 -07:00
Amruta Kulkarni
810927615f qcacld-3.0: Enable CM feature
Enable connection manager feature flag on mainline.

Change-Id: Ice2d0ac61c770066510e666c1791500f1ce8f8ba
CRs-Fixed: 2913164
2021-04-09 07:33:23 -07:00
sheenam monga
2deb2fb93e qcacld-3.0: Add feature flag to support IGMP offload
Add Feature flag WLAN_FEATURE_IGMP_OFFLOAD to support
IGMP offload feature.

Change-Id: I3a58e66a4e323e03c6d32c02ac1b401f23eb9d3c
CRs-Fixed: 2916022
2021-04-07 21:52:00 -07:00
Nisha Menon
4df6282e58 qcacld-3.0: Enable feature to dump reo queue info in DDR
Enable DUMP_REO_QUEUE_INFO_IN_DDR to send cache flush cmd
to REO using cmd: iwpriv wlan0 txrx_stats 34 0

Cache flush cmd will invalidate the h/w cache and ensure
that h/w writes to DDR.
In the cmd callback, the reo status tlvs are processed
and the vaddr of the reo queue desc is used to read the
queue information from DDR and dump it in the host driver logs.

Change-Id: I4521b777d13c490ac687f9ff673182262bc52f62
CRs-Fixed: 2899824
2021-04-07 01:21:48 -07:00
Paul Zhang
41ab8a6492 qcacld-3.0: Kbuild: Refine add-wlan-objs
The current implementation of add-wlan-objs does not work correctly
with GNU Make 3.81 which is widely in use. So refine the function in a
manner that works with 3.81 as well as newer versions of Make.

Change-Id: Ic689367cccc16cf6ab23eeeb58665d84c5db3a26
CRs-Fixed: 2903606
2021-04-05 06:53:30 -07:00