Grafico dei commit

1224 Commit

Autore SHA1 Messaggio Data
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
Aasir Rasheed
c7f2940417 Revert "qcacld-3.0: Replace CONFIG_WLAN_TWT_CONVERGED"
This reverts commit I849387c751a6d5f1c6d338ac9c2dfdb72244c137

Change-Id: Ibadeb635d9ddc31dad6c189ca13bb124b55c1dc2
CRs-Fixed: 3450256
2023-03-30 05:26:29 -07:00
David Oladunjoye
d5f6682047 qcacld-3.0: Replace CONFIG_WLAN_TWT_CONVERGED
Componentization is complete, therefore, TWT component
should be used whenever TWT is enabled. Replace CONFIG_WLAN_TWT_CONVERGED
with CONFIG_WLAN_FEATURE_TWT to always enable component for TWT.

Change-Id: I849387c751a6d5f1c6d338ac9c2dfdb72244c137
CRs-Fixed: 3300364
2023-03-29 19:54:55 -07:00
Venkateswara Naralasetty
1d8033627a qcacld-3.0: Kbuild changes for dp_peer file split
Kbuild changes for dp peer file split.

Change-Id: I64eb8a8d5babe47a3b1b4a1a99eab31267349d77
CRs-Fixed: 3393711
2023-03-29 02:59:21 -07:00
Karthik Kantamneni
f84c7cc43c qcacld-3.0: Add defconfig and Kbuild changes for WCN6450
Add wcn6450_defconfig configuration file and corresponding
Kbuild changes for WCN6450 platform.

Change-Id: I7189e718aac427f76a251284799ec2169b2495a8
CRs-Fixed: 3382931
2023-03-28 01:26:50 -07:00
Deeksha Gupta
9864be8a5a qcacld-3.0: Create per link data structure in hdd_adapter
To support multiple links in single adapter, create a new
structure to hold per link info inside the hdd_adapter.
Create a new member in hdd_adapter to point to link zero
of this array of link info.

Move STA and AP context fields into per link info.

Change-Id: Ia1f01865277c3e08254f44a39ba6675a9fea6c65
CRs-Fixed: 3354572
2023-03-23 03:48:19 -07:00
Karthik Kantamneni
a506f01514 qcacld-3.0: Enable compilation for new dp_rings_main.c file
Add support to compile new dp_rings_main.c file.
This new file is having refactored code of all the DP rings.

Change-Id: I7cd467df8d3f7c4b60d448c88b5cedc76cd62b07
CRs-Fixed: 3423636
2023-03-21 10:13:37 -07:00
Jinwei Chen
9b10ef6737 qcacld-3.0: enable SRNG pointer register writing history
enable SRNG pointer register writing history for DEF build.

Change-Id: I8426eb7f81cb47633dbe3d1c9efea541f9781a04
CRs-Fixed: 3438306
2023-03-21 07:50:34 -07:00
Aditya Kodukula
b4d34e5284 qcacld-3.0: Add sysfs replacement for dfsnol command
WEXT ioctls are no longer supported by the wlan driver.
So, add a sysfs replacement to setdfsnol and getdfsnol commands.

file path: sys/class/net/wlanxx/dfsnol
	where wlanxx is the adapter interface

usage:	echo arg_0 > /sys/class/net/wlanxx/dfsnol
	cat /sys/class/net/wlanxx/dfsnol

Change-Id: Ia8475b5c6ef39142def38eab0e777840af885c33
CRs-Fixed: 3431517
2023-03-20 13:16:48 -07:00
Jianmin Zhu
d1dde88d53 qcacld-3.0: Update puncture bitmap to upper layer
Update puncture bitmap along with channel to upper layer when channel
or puncture bitmap changed.

Change-Id: Idc0ffbd4358c328ba22453c6b523843c8d4fc486
CRs-Fixed: 3436336
2023-03-20 09:57:51 -07:00
Mohammed Ahmed
5600f0123e qcacld-3.0: add hdd_dump_log_buffer output to sysfs
Current code doesn't allow output of hdd_dump_log_buffer to sysfs.
Fix this by adding sysfs output functionality.

Change-Id: I077c10e379e542ac99d8ebe01d68fe76a7470e39
CRs-Fixed: 3426193
2023-03-17 17:07:12 -07:00
Chaoli Zhou
2b9308c737 qcacld-3.0: Export CONFIG_ENABLE_VALLOC_REPLACE_MALLOC
Export CONFIG_ENABLE_VALLOC_REPLACE_MALLOC to
make it configurable while need to replace malloc
with valloc for some big size memory request case.

Change-Id: I8d138f3b4565aa2d6d5efde531560dafeb906106
CRs-Fixed: 3429232
2023-03-15 01:25:24 -07:00
Mohammed Ahmed
69e6d64b64 qcacld-3.0: add rtpm stats sysfs functionality
Current code allows for viewing Runtime PM stats via debugfs only.
Fix this by adding sysfs viewing functionality.

Change-Id: I2b439f0bb608292dc1390a5529f9dc287b7262bc
CRs-Fixed: 3414306
2023-02-25 01:29:13 -08:00
Jianmin Zhu
748f7555ed qcacld-3.0: Get roam stats by vendor cmd
Cache roam information in wlan driver, when qca vendor
cmd of QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS get roam
information, driver send all the cached information to
user space.
Extend WMI_ROAM_STATS_EVENTID event information for
requirement of:
1.Roam trigger related information, include timestamp,
  trigger reason, trigger condition, abort reason,
  scan type, roam status and fail reason.
2.Roam scan related information, include scan channel
  number, dwell type, max dwell time of each channel
  and total scan time.
3.all types of roam related frame information, include
  timestamp and successful or failed status for Preauth,
  Reassoc, EAPOL-M1/M2/M3/M4.

Change-Id: I2a694b7c1df8f5da09505f65c9c797be2177b398
CRs-Fixed: 3391601
2023-02-23 22:06:34 -08:00
Namita Nair
5e819e461c qcacld-3.0: Disable Optional wifi datapath feature
This change disables IPA offload and optional
wifi datapath feature. This change will be used
until kernel changes are merged.

Change-Id: Ib47d69ba8da2e1fa3f0a1bd05926bbf3d74f51e4
CRs-Fixed: 3401190
2023-02-23 05:37:24 -08:00
Chaoli Zhou
d00ac1644e qcacld-3.0: Fix Argument list too long compile issue
Change absolute path to relative to fix below compile
issue for yocto system:
make[4]: /bin/sh: Argument list too long

And just need to do like this in the bb recipes files:
1. set LINUX_BUILD_TOP="${WORKDIR}/WLANSRC"
2. keep WLAN_ROOT=""

Change-Id: I2f03eb9aa5501eae887b41b4e6a134b55da16462
CRs-Fixed: 3408645
2023-02-17 11:00:09 -08:00
Jianmin Zhu
589a32f847 qcacld-3.0: Enable dynamic puncture for DFS radar
Once the radar is found, identify the affected sub 20 MHz channels in the
current channel. From the  position(s) of the sub 20 MHz subchannels, find
the nearest valid puncturing pattern.
If a valid puncturing pattern is found, find the corresponding reduced
bandwidth new channel for the legacy ( <= 11AX) devices and send CSA. At
the end of CSA, do a vdev restart so that the 11BE devices see a new
puncturing pattern.
And If not found, then fallback to the default behavior of changing channel
using Random channel selection.

Change-Id: I41e6206f310722bc3dacc9ce8d024f679ff1af3e
CRs-Fixed: 3386022
2023-02-07 11:32:10 -08:00
Prakash Manjunathappa
bfc3d11564 qcacld-3.0: Add support for peach device
Add support for peach device. Enable HIF and HW header corresponding
to PEACH

Change-Id: I3c6690fbe8e3e6398ad6ba25fba0b7bb0856cc2b
CRs-Fixed: 3394196
2023-02-07 00:53:28 -08:00
Abhishek Singh
18aafbb0a6 qcacld-3.0: Increase the scan database size to 500 from 300
In very noisy environment and with 6 GHz co-located AP, scan
database size of 300 might not be enough.

So increase the size to 500.

Change-Id: I26077b2ab0d24f73a7c8e29990504d5b284eccf4
CRs-Fixed: 3395834
2023-02-05 04:32:38 -08:00
Vijay Raj
2d5ac65bf2 qcacld-3.0: remove WLAN_ENABLE_AGEIE_ON_SCAN_RESULTS macro
Remove WLAN_ENABLE_AGEIE_ON_SCAN_RESULTS macro as BSS age
is calculated using NL80211_BSS_SEEN_MS_AGO

Change-Id: I5473f9cea216df4968a43551875b0385605f616f
CRs-Fixed: 3391078
2023-01-31 02:35:08 -08:00