Commit Graph

1243 Commits

Author SHA1 Message Date
Venkateswara Naralasetty
d70118f951 qcacld-3.0: Kbuild changes for hif delayed reg write
Kbuild changes for hif delayed reg write support for wcn6450.

Change-Id: I8e028acc50ac4c4d33203b91b24607e7ea2b79d1
CRs-Fixed: 3519709
2023-07-10 12:13:11 -07:00
Deeksha Gupta
e6770d16fb qcacld-3.0: Add new field for N-link MLO connection in wmi_service
Extends the wmi_service_ready_ext2_event_fixed_param
structure with a new field to support N-link MLO
connections.

The host will now calculate the maximum number of
links per MLD value by intersecting the firmware
capability and the ini value present in MLME component.
And this calculated value will be stored in the MLME
component.

Change-Id: I89bf3553781cd809cdb5496fbf0f68e59569033a
CRs-Fixed: 3512343
2023-07-10 12:12:41 -07:00
Jia Ding
6d5db78bf8 qcacld-3.0: Cleanup multiple include compiler options
Multiple include directories only contains .c source files
without any .h header files. Hence remove those include
compiler options.

Add monitor include path under feature flag
CONFIG_WIFI_MONITOR_SUPPORT.

Change-Id: Iec59a592c60b27cb22bf712e883dd5895044874a
CRs-Fixed: 3543857
2023-06-30 23:48:28 -07:00
Karthik Kantamneni
0b79b57c13 qcacld-3.0: Enable DP profile support for QCA6750 target
Enable DP profile support for QCA6750 target

Change-Id: Id2cd8dc6c1a7b31f811a025c37e227d0165615d0
CRs-Fixed: 3542111
2023-06-29 04:59:57 -07:00
Jia Ding
3ff2407562 qcacld-3.0: Properly define ENABLE_HAL_REG_WR_HISTORY
With CONFIG_ENABLE_HAL_REG_WR_HISTORY=y, feature flag
ENABLE_HAL_REG_WR_HISTORY should be defined instead of
CONFIG_ENABLE_HAL_REG_WR_HISTORY.

Change-Id: Iad04b2036ae4fd47b05ee2d87ab3c8b0697f7a5a
CRs-Fixed: 3536167
2023-06-28 15:24:30 -07:00
Liangwei Dong
2958ab1b39 qcacld-3.0: Handle link id bitmap from set link state response
Convert link id bitmap to vdev bitmap and update policy mgr
connection table.
Record the current force link command state to mlo context.

Change-Id: I0b28222de10a9493a153ee00189b87e4275a4231
CRs-Fixed: 3515467
2023-06-28 05:04:46 -07:00
Amit Mehta
9eb4baa9eb qcacld-3.0: Enable per link stats for kiwi v2
Enable per link stats support for kiwi v2 target

Change-Id: Ic97c562154e812d939394e3fe5173a63beecc191
CRs-Fixed: 3446807
2023-06-22 22:01:42 -07:00
Alan Chen
baf6433a8f qcacld-3.0: Add additional bazel-related changes
Add additional bazel-related changes to resolve build errors.

Change-Id: I891556a81d217fded38915293aeea83a389d6782
CRs-Fixed: 3517415
2023-06-21 16:53:13 -07:00
Will Huang
2150c9edd1 qcacld-3.0: Add AFC osif vendor command support
Add HDD osif AFC vendor command support and PLD send AFC response
data to target support. Call AFC common API to init/deinit AFC
component.

CRs-Fixed: 3375786
Change-Id: I84342b6ea3b2f14c75eba8745cb17070f404b8d1
2023-06-12 23:35:47 -07:00
Rakesh Pillai
c8540b10f6 qcacld-3.0: Enable feature to disable vdev self peer creation
Kbuild change to disable vdev self peer creation.

Change-Id: Id436cc9ca96aa22ff21d810c078bc16572cc98de
CRs-Fixed: 3517849
2023-06-08 05:08:46 -07:00
Paul Zhang
2d474a4947 qcacld-3.0: Add code to process EPCS logic
Add code logic to process EPCS (Emergency Preparedness
Communications Service).

CRs-Fixed: 3511102
Change-Id: I8ed0b98beede5d06b2a118bf8d26af41d9207c64
2023-06-07 04:31:01 -07:00
Jianmin Zhu
fade300d71 qcacld-3.0: Set puncture cap
Set new puncture cap, clear old puncture cap.

For SAP with fixed freq instead of ACS mode, need support puncture too,
need use API sap_phymode_is_eht(sap_ctx->phyMode).

Change-Id: I4bbbd742c3c49111d1725137739557bce18588f9
CRs-Fixed: 3518498
2023-06-06 09:52:14 -07:00
Rakesh Pillai
6b0be7af79 qcacld-3.0: Enable Datapath support for Multipass feature
Kbuild changes to enable datapath support for multipass
feature on QCA6490 and kiwi targets.

Change-Id: Ia4d33557fec6dd1b5681e20d19590604cc2affe1
CRs-Fixed: 3513719
2023-06-05 13:52:49 -07:00
Zhiwei Yang
b5cb91eed4 qcacld-3.0: Add Kbuild configuration
Add QCA_PADDR_CHECK_ON_3RD_PARTY_PLATFORM configuration
in Kbuild.

Change-Id: I1a0c2e5666ba1d608f56767c15591e8f4a367363
CRs-Fixed: 3459203
2023-06-01 09:38:54 -07:00
Jianmin Zhu
de01e2b171 qcacld-3.0: Set feature flag for puncture
Set feature flag for puncture.

Change-Id: I9f2c3ed6f027299c831dc23f7205c5d23f4451a1
CRs-Fixed: 3511145
2023-05-31 19:08:08 -07:00
Ashish Kumar Dhanotiya
b1fac44abe qcacld-3.0: Create new component for low latency sap
This change creates a new component for low latency SAP
and also does the init and de-init of this new component.

Change-Id: I4a8192feb6edb30b1898ef30675cbc01235a8e42
CRs-Fixed: 3482510
2023-05-30 10:21:33 -07:00
Arun Kumar Khandavalli
8abc6e1ae3 qcacld-3.0: update the ml client parameters as per cfg80211_new_sta
In case of SAP, update the cfg80211_new_sta with the support for the
ML STA client with below info:

1) MLO link ID of the AP
2) Station's MLD address
3) (Re)Association Response IEs sent to the station

Change-Id: I5647d5bcfac43255bc0ae1d9f3b7a1b563ef5250
CRs-Fixed: 3485476
2023-05-29 22:39:06 -07:00
Amit Mehta
bf563718bf qcacld-3.0: Enable changes to affine away taken CPUs
Enable changes to affine away CPUs taken during pro
audio use case for kiwi_v2.

Change-Id: Ie27009ae0c89b5a08887863658ccc8cfae47c324
CRs-Fixed: 3490850
2023-05-25 17:57:23 -07:00
Jeff Johnson
52dcf788de qcacld-3.0: Fix reg_db.h include path
Currently in cds_regdomain.h the following file is included:
"../../qca-wifi-host-cmn/umac/regulatory/core/src/reg_db.h"

While transitioning to the Bazel DDK build system this results in a
build error because the build is done in a sandbox with the root at
the qcacld-3.0 folder, and hence there is no way to access
"../qca-wifi-host-cmn."

To address this issue add the following -I path to the Kbuild:
qcacld-3.0/cmn/umac/regulatory/core/src

And then cds_regdomain.h can just include "reg_db.h".

Change-Id: Ib33300f3593e39caeace1238f2b40c819539ff10
CRs-Fixed: 3497251
2023-05-22 16:45:51 -07:00
Jeff Johnson
4013420fea qcacld-3.0: Remove CONFIG_CRYPTO_COMPONENT flag
The crypto component is always enabled. As a result, the feature flag
CONFIG_CRYPTO_COMPONENT is pointless, so remove it.

Change-Id: I97c22f3bf1224ecd967212d762545890f71764bc
CRs-Fixed: 3496915
2023-05-21 20:15:40 -07:00
Zhiwei Yang
09cb1c6ac2 qcacld-3.0: Avoid using small buffer address
On some third-party platforms, we observe the memory physical
address below 0x2000 is allocated will cause HW/FW NOC error,
so this region memory should not be used by host.

This change will hold the memory if the allocated memory physical
address below 0x2000 until driver unload.

Change-Id: I11fb698d32e69852f1cb5c8eb99ead121b8db2f4
CRs-Fixed: 3419652
2023-05-18 23:28:00 -07:00
Krupali Dhanvijay
d8a6ea4e49 qcacld-3.0: Add API to set/reset CPU frequency
Add API to set/reset CPU frequency, which is used to
enable the tx queues faster during roam.

Change-Id: I8594dacc9b3e8bc3fcdce575102cecef573cbf06
CRs-Fixed: 3487568
2023-05-18 09:36:37 -07:00
Alan Chen
47d7e7e3d4 qcacld-3.0: Fix typo for ENABLE_HAL_SOC_STATS
There is a typo for the feature flag ENABLE_HAL_SOC_STATS. Thus,
correct it to -DENABLE_HAL_SOC_STATS.

Change-Id: Idc7e478480e799659c971e42962e9d527960a9da
CRs-Fixed: 3492601
2023-05-17 16:11:10 -07:00
Rakesh Pillai
a265a33e91 qcacld-3.0: Add config for number of perf clusters in SoC
Kbuild changes to define the number of perf clusters
in an SoC.

Change-Id: Ibbc58dbe425ac560c86a56d63ed39e4ac80acfa4
CRs-Fixed: 3498169
2023-05-16 17:33:03 -07:00
Arun Kumar Khandavalli
49da2461fe qcacld-3.0: ENABLE 11BE draft-3.0 support
Enable the 11be draft-3.0 support through WLAN_SUPPORT_11BE_D3_0.

Change-Id: Ibcb27ecc392f0bfed1a249833b338188e53116f0
CRs-Fixed: 3496133
2023-05-16 17:32:58 -07:00
Jinwei Chen
485213758f qcacld-3.0: enable TX ILP for KIWI
Enable TX ILP for KIWI

Change-Id: I8bf44fdf5cb3917c699971c6856189ef1627e95e
CRs-Fixed: 3463701
2023-05-14 08:11:17 -07:00
Jeff Johnson
15428634f6 qcacld-3.0: Kbuild: Remove redundant WLAN_PRE_CAC_INC
In Kbuild the macro WLAN_PRE_CAC_INC is defined twice, with the second
definition overriding the first one. Since the second definition
incorporates the logic from the first definition, the first definition
is pointless, so remove it.

Change-Id: I7e679109b6c08d226236c42c20e18e50537036e9
CRs-Fixed: 3490072
2023-05-12 16:38:21 -07:00
Rahul Gusain
afe528f7c3 qcacld-3.0: Register auth random TA feature to kernel
Add support for random TA for auth and deauth frames by advertising
the feature flag "NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA" to
the kernel.

Change-Id: Id323b9bb1eacdd24fdb02790a7469ac140bb7d8b
CRs-Fixed: 3493510
2023-05-12 05:03:01 -07:00
Rahul Gusain
bba075a057 qcacld-3.0: Set secure NAN feature to kernel
Currently, there is no provision to identify that the driver supports
NAN pairing protocol. So, new kernel will start exchanging PASN frames
without realization that old driver is loaded and thus, frames will be
drops in driver.

So, to resolve the backward compatibility issue, kernel introduces new
feature flag "NL80211_EXT_FEATURE_SECURE_NAN".
Firmware send "max_pairing_session" parameter in NAN capabilities and
host driver extracts the parameter and set the feature flag to kernel
when max pairing session has non-zero value.

Change-Id: I3b83a771c99bf2e91a4ed1a14acafe584d6e17ec
CRs-Fixed: 3493345
2023-05-12 05:02:56 -07:00
Jeff Johnson
59d58b682e qcacld-3.0: Kbuild: Remove duplicate -I[...]/lmac_if/inc
Currently, in Kbuild, the following switch is duplicated in the
ccflags: -Icmn/umac/global_umac_dispatcher/lmac_if/inc

One instance is populated here:
UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
[...]
UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)

The other instance is populated here:
[...]
UMAC_OBJMGR_INC := [...]
		-I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc

Remove the duplicate switch.

Change-Id: I46333836b427d047d8b5471c67b65698ca0b5417
CRs-Fixed: 3490071
2023-05-10 17:08:39 -07:00
Srinivas Girigowda
72b8810c2c qcacld-3.0: Add support for start capture
Add support for start capture.

Change-Id: I93a15b0bf8b9c26bd53d33378a7daefece448d68
CRs-Fixed: 3415870
2023-05-10 11:46:58 -07:00
Srinivas Girigowda
9af1145749 qcacld-3.0: Add config CONFIG_WLAN_DP_LOCAL_PKT_CAPTURE
Add config CONFIG_WLAN_DP_LOCAL_PKT_CAPTURE.

Change-Id: I221af4dda5e752c9e0775131b3d693aa8e9afdd1
CRs-Fixed: 3415866
2023-05-10 11:46:52 -07:00
Srinivas Girigowda
16c70081b9 qcacld-3.0: Add build flag for WLAN_PKT_CAPTURE_TX_2_0
Add build flag for WLAN_PKT_CAPTURE_TX_2_0.

Change-Id: Ia0a6f0161a029f71f976c76b67c7c2648ac41952
CRs-Fixed: 3415863
2023-05-10 11:46:47 -07:00
Jeff Johnson
36f597d310 qcacld-3.0: Remove duplicate DFS_INC inclusion
The compiler switches defined by DFS_INC are being included in the
composite INCS twice. This results in the switches being unnecessarily
duplicated in the compiler command line. While this normally doesn't
affect compilation, it can result in a "command too long" error that
has been observed in some build environments, so remove the
duplication.

Change-Id: Ibe09e7c3d4ba1a9b5b50305c73b79ce1c9a7d57a
CRs-Fixed: 3487038
2023-05-07 20:44:48 -07:00
Jeff Johnson
be670fc549 qcacld-3.0: Remove badly formed GPIO -I switch
While reviewing build artifacts it was observed that the compiler
command line has a badly formed -I switch:
-I[path]/qcacld-3.0/cmn/-I[path]/cmn/target_if/gpio

Analysis of Kbuild shows that an already formed -I switch is being
incorrectly used as a directory, so remove that specific entry.

Change-Id: If59e8ee1d0f817bc8c56e74bc8e2fa9ef94a7eb3
CRs-Fixed: 3486972
2023-05-07 13:24:54 -07:00
Namita Nair
9422426d09 qcacld-3.0: Support build for OUT-OF-TREE IPA
As the IPA component has moved out of kernel,
WLAN currently does not have access to the IPA
header files that was previously part of kernel.
To resolve this, WLAN needs to include the path
to IPA header files, for successful compilation when
IPA_OFFLOAD is enabled. With this Kbuild change
now WLAN can support OUT-OF-TREE IPA module.

Change-Id: I56f66d3e7d7648ece5aeb68de1af7c0c5f59f84d
CRs-Fixed: 3482432
2023-04-29 09:11:27 -07:00
Venkateswara Naralasetty
3259b29030 qcacld-3.0: compile ol rx thread code only for legacy targets
Currently ol rx thread code is under QCA_CONFIG_SMP macro, which is
enabled for all the targets. But LI, BE and RH family targets don't
use this ol rx thread implementation. Hence, compile out ol rx thread
code for LI, BE and RH targets.

Change-Id: I1a1dfd09f5364ddb519c846e6c456d10f81e369c
CRs-Fixed: 3468499
2023-04-25 19:50:23 -07:00
Aditya Kodukula
5ffe7de03c qcacld-3.0: Enable DWARFv4 to unblock compilation issues
Currently when DWARFv5 is enabled, wlan driver compilation fails
with error, INT DW_ATE_unsigned_1024 Error emitting BTF type.

To unblock this compilation issue, temporarily switch
back to DWARFv4.

Change-Id: I2e37aff054e8a6161a80e97a227153eb2df68a74
CRs-Fixed: 3475979
2023-04-23 20:53:51 -07:00
Aditya Kodukula
1a076aab29 qcacld-3.0: Rename BUILD_DIAG and BUILD_DEBUG flags
Currently in defconfig files, the naming convention of
config flags BUILD_DIAG_VERSION and BUILD_DEBUG_VERSION
is not aligning   with rest of them. So, rename the flags
to CONFIG_WLAN_DIAG_VERSION and CONFIG_WLAN_DEBUG_VERSION

Change-Id: Ia9357588cdbfc09199d7d44bd024beb0f92b9755
CRs-Fixed: 3472570
2023-04-21 06:51:08 -07:00
Pragaspathi Thilagaraj
023913d070 qcacld-3.0: Cleanup TDLS feature flag
Cleanup TDLS concurrencies feature flag and move it to
end of Kbuild file where cc_flags are defined.

Change-Id: I26ffe1f339fc286be5d2f235c7b9fe7efa530e42
CRs-Fixed: 3468341
2023-04-16 23:02:03 +05:30
Jeff Johnson
a54eacbdb6 qcacld-3.0: Introduce WLAN_DBGLOG_DEBUGFS feature flag
Currently the Debug Log DebugFS functionality in the qca-wifi-host-cmn
project is protected with #ifdef WLAN_OPEN_SOURCE.

The WLAN_OPEN_SOURCE macro was introduced for a legacy reason that is
no longer applicable. In order to remove the WLAN_OPEN_SOURCE macro,
introduce a new feature-specific WLAN_DBGLOG_DEBUGFS feature flag.
Once the Debug Log DebugFS functionality moves to the new flag, the
WLAN_OPEN_SOURCE macro can be removed.

Change-Id: I159af54ab91d009e5bf50d67492cbc62a05bad47
CRs-Fixed: 3463793
2023-04-15 02:57:23 -07:00
Jeff Johnson
f805d72764 qcacld-3.0: Kbuild: Consistently use ccflags-y
Currently Kbuild uses both cppflags-y and ccflags-y, The kernel Kbuild
documentation recommends using ccflags-y, so consistently use that
everywhere.

Change-Id: Ic5f86bad5d4260f39f98b5ce1b56ba6a69606aa9
CRs-Fixed: 3463792
2023-04-15 02:57:18 -07:00
Pragaspathi Thilagaraj
f8ac9322f3 qcacld-3.0: Add debugs for TDLS concurrencies
Add more debugs for TDLS concurrency scenarios.
Enable WLAN_FEATURE_TDLS_CONCURRENCIES.

Change-Id: Iad2d96d0bbf6a8f5e488ea5da2d666a55d9b5aba
CRs-Fixed: 3461776
2023-04-15 02:57:13 -07:00
Jeff Johnson
a4bdce02bc qcacld-3.0: Kbuild: Remove duplicate -W switches
Currently the Kbuild adds "-Wall -Werror" to the C command line.
However, the kernel already adds these by default, so stop adding the
duplicates.

Change-Id: I8d0b777feafd726ab29278739ac20bcaf0f7f000
CRs-Fixed: 3463791
2023-04-13 16:34:29 -07:00
Jeff Johnson
474edb63ae qcacld-3.0: Kbuild: Consolidate setting of feature flags
Currently in Kbuild most of the feature flags, but not all of them,
are set in one place. In order to make the Kbuild more maintainable,
and in preparation for future refactoring, consolidate all of the
feature flag setting in one place.

Change-Id: Ie7bcf67304990991f555b0bdd93f3ad38b52bddd
CRs-Fixed: 3463790
2023-04-13 16:34:23 -07:00
Jeff Johnson
9aa287b1e2 qcacld-3.0: Refactor fixed macros from Kbuild
In some build environments the length of the C compiler command line
exceeds the maximum length of the underlying shell, resulting in the
shell reporting: Argument list too long.

Kbuild has many definitions which add -D switches to the C compiler
command line to define macros to be used for conditional compilation.
Most of these are set conditionally, but there are some that are set
unconditionally.

As one step in the process of shortening the command line, refactor
the macros that are set unconditionally out of Kbuild, and put them in
a separate .h file which is then included in every build. As long as
the added -include switch takes up less room than the sum of the -D
switches, then this will result in a shorter command line.

Change-Id: I95e0e8237d15dee58e519ea526a74c52eeb7dbd2
CRs-Fixed: 3460064
2023-04-11 16:36:16 -07:00
Prakash Manjunathappa
df814d725b qcacld-3.0: Add config for peach 4 byte TLV tags
Add config support for 4 byte TLV tag in peach case.

Change-Id: I724624472c36f6c848c74f2a21f765a94d1c57e4
CRs-Fixed: 3460204
2023-04-10 13:19:28 -07:00
Namita Nair
2a0b6e9c0f qcacld-3.0: Enable Opt wifi dp feature flag
Enable IPA Offload add Optional wifi dp feature
flag.

Change-Id: I023a767141de1f4d47b80b784f6c119ae04533ba
CRs-Fixed: 3450899
2023-04-10 05:44:34 -07:00
Deeksha Gupta
c461b492c1 qcacld-3.0: Add a new flag to enable ML external auth support
Add a new flag to enable the ML external auth support.

Change-Id: Id424de25ac770e4ea47cb56b521142ddcc0b774e
CRs-Fixed: 3450137
2023-03-31 22:26:57 -07:00
Amit Mehta
881fb8bb91 qcacld-3.0: Add change to update peer map unmap version
Add change to update peer map unmap version.
Change to get peer map event v3 and peer unmap
event v2 for 11BE target.

Change-Id: I77fa354807ef66effaeb37a845ccebccd5f66ff4
CRs-Fixed: 3442448
2023-03-30 20:19:02 -07:00