Commit Graph

28787 Commits

Author SHA1 Message Date
Madan Koyyalamudi
24c520f2ef Release 5.2.1.64V
Release 5.2.1.64V

Change-Id: I1a0ab61d30bdbedd67ffd5ab2d6df0edca72cfec
CRs-Fixed: 774533
2023-04-29 09:11:27 -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
Jeff Johnson
463ddf6870 qcacld-3.0: Remove use of WLAN_OPEN_SOURCE
The WLAN_OPEN_SOURCE flag is a legacy flag which had a specific use
that is no longer applicable. So remove all usage of that flag.

Change-Id: If51b9421717bc82b3c200c6412a87b0e46a77476
CRs-Fixed: 3464926
2023-04-29 09:11:22 -07:00
Madan Koyyalamudi
a3909c0f4d Release 5.2.1.64U
Release 5.2.1.64U

Change-Id: I1f040b1cbd1cf2f4c4c009f0dd978f333e30575b
CRs-Fixed: 774533
2023-04-29 07:18:11 -07:00
Amruta Kulkarni
adef8d5e58 qcacld-3.0: Stop t2lm timer during disconnection
Add support to stop t2lm timer during sta disconnection
and clear t2lm mapping.

Change-Id: I59e724331eda8b67fd1405031bdb00d12805ad09
CRs-Fixed: 3479496
2023-04-29 07:18:10 -07:00
Arun Kumar Khandavalli
0d75e27c4e qcacld-3.0: Add the HE support for bitrate mask
Add HE support for bitrate mask standard interface in the driver.

Change-Id: Iad4dbec329beab5a922e8502f3b72ead27e5b467
CRs-Fixed: 3477589
2023-04-29 07:18:05 -07:00
Madan Koyyalamudi
799be3ae95 Release 5.2.1.64T
Release 5.2.1.64T

Change-Id: I08dcc9dab5a4109215e5bfff49aef290a8cee611
CRs-Fixed: 774533
2023-04-28 19:03:25 -07:00
Yu Wang
2f754dba7c qcacld-3.0: skip debug domain transition if system is rebooting
Considering the case as below:
System shutdown comes when ndo_open is waiting for cnss power
up complete.
cnss shutdown handler completes all of the completions, and so
ndo_open continues.
while at the same time, cnss driver is processing firmware ready
event and trying to start cld modules, which will change debug
domain from INIT to ACTIVE, then it may hit debug domain mismatch
assertion:
It allocates some memory in ndo_open context when debug domain is
INIT, but when trying to free the memory, the debug domain is ACTIVE.

To fix this issue, when system reboot is in progress, skip debug
domain transition, and also skip modules start to avoid state mismatch
between cnss driver and CLD driver.

Change-Id: Ibc411e13e48269c66ec71aba6304578c9049f798
CRs-Fixed: 3470170
2023-04-28 19:03:25 -07:00
Madan Koyyalamudi
496e5681ab Release 5.2.1.64S
Release 5.2.1.64S

Change-Id: Ie18584cdefcea8be5493d31e6ba27d008c1a8441
CRs-Fixed: 774533
2023-04-28 17:39:21 -07:00
Jianmin Zhu
eb33a28d70 qcacld-3.0: Check vdev up instead of connected when chang RSO
When roaming happens, vdev CM changes from CONNECTED to ROAMING first,
vdev still keeps up, then RSO becomes ROAMING_IN_PROG later,
so need permit RSO cmd during CM ROAMING state.

Change-Id: If4902dcff6b8b4f169fb43da4a889b09e1c2875d
CRs-Fixed: 3482158
2023-04-28 17:39:21 -07:00
Madan Koyyalamudi
0487b4bd3e Release 5.2.1.64R
Release 5.2.1.64R

Change-Id: I578ad7abb00160b24e681487e0917cdb74028292
CRs-Fixed: 774533
2023-04-27 19:54:15 -07:00
Jingxiang Ge
5cfbcd0347 qcacld-3.0: block all wmi cmds if wow enable ack failed
If wow enable failed, block all the wmi cmds until
sub system recovery.

Change-Id: I0920b0ef304719f40f5ca7e61a2beb3687e16707
CRs-Fixed: 3471908
2023-04-27 19:54:14 -07:00
Madan Koyyalamudi
30c7d9714e Release 5.2.1.64Q
Release 5.2.1.64Q

Change-Id: I0ea9c98f41acf5c5bba97c94aac54a84f5635eaa
CRs-Fixed: 774533
2023-04-27 17:13:44 -07:00
Jianmin Zhu
d3bd22dfe0 qcacld-3.0: Abort RSO enable for not all mlo links up
While mlo wlan0 sta connecting with vdev0 up and vdev1 not up yet, wlan1
vdev2 disconnected, enabled roaming on other connected sta, then vdev0 RSO
enabled before vdev1 up, mlme session for vdev1 wasn't created in F/W. When
roaming happened, vdev1 peer wasn't deleted, F/W asserted.

To fix it, for mlo sta, follow legacy sta,  if not all of requested links
are up, abort RSO operation except deinit on it.

Change-Id: I7026614ab91cf0a603c97e962433dc5139b210dd
CRs-Fixed: 3471655
2023-04-27 17:13:43 -07:00
Asutosh Mohapatra
4a32419413 qcacld-3.0: Don't start vdev trans if vdev ops is pending
Currently for REASSOC command host starts vdev ops
and tries to use vdev. In parallel if host receives
interface down and starts vdev trans then proceeds
to stop adapter and destroys the vdev, this leads
to null pointer dereference if vdev is destroyed
first.

This happens because driver doesn't wait for vdev ops
to complete after starting vdev trans.

To address this issue, start vdev trans and wait for
vdev ops to complete before proceeding to execute
further.

Change-Id: I363d05f742f7569dffed70cfa9b6bb9a0a766d9e
CRs-Fixed: 3445858
2023-04-27 17:13:38 -07:00
Madan Koyyalamudi
d1a1127754 Release 5.2.1.64P
Release 5.2.1.64P

Change-Id: I4b19207eb0caf5387417af4cb844bd34c25beccc
CRs-Fixed: 774533
2023-04-27 07:28:57 -07:00
Gururaj Pandurangi
1ba00ba5d6 qcacld-3.0: Fix incorrect center frequency seg1 value
Fix incorrect center frequency seg1 value in ch params
structure by initializing it. This value is later used as
320 MHz band center frequency and results in all 6 GHz
channels to be devoid of 320 MHz bonded pairs and thus
reducing maximum supported BW to less than 320 MHz.

Change-Id: Icc996393654e3571b6969a40784ca622130959cb
CRs-Fixed: 3457159
2023-04-27 07:28:57 -07:00
Madan Koyyalamudi
f6f321763e Release 5.2.1.64O
Release 5.2.1.64O

Change-Id: Ifffd028cf709e84561ff238bf10cd8bd0ad5eb82
CRs-Fixed: 774533
2023-04-26 21:49:50 -07:00
Jianmin Zhu
4fd188762e qcacld-3.0: Avoid sta channel switch when not connected
While STA handle csa event from F/W and switch channel, disconnect
happened and bss peer was removed from vdev, assert happened in
cfg80211_ch_switch_notify.

To fix it, if found sta isn’t connected, don’t call
cfg80211_ch_switch_notify.

Change-Id: I016749ac4ac87563cc3de2aa930e7caeac858378
CRs-Fixed: 3478814
2023-04-26 21:49:49 -07:00
Madan Koyyalamudi
2c9e6b2794 Release 5.2.1.64N
Release 5.2.1.64N

Change-Id: I5439a3c35cac820186177a9f0cfb3ef411f4b29d
CRs-Fixed: 774533
2023-04-26 18:24:44 -07:00
Jianmin Zhu
a761584aa7 qcacld-3.0: Enable STA CSA for bandwidth indication ie
Channel switch wrapper IE V2 includes bandwidth indication sub IE from
IEEE802.11be draft 3.0 optionally.
When receive CSA event, Eht STA parse bandwidth indication IE of connected
Eht AP for channel switch or puncture update.

Change-Id: Id5740a1394766b02b65c5d6791ce98780bbacbd4
CRs-Fixed: 3458348
2023-04-26 18:24:43 -07:00
Vinod Kumar Pirla
c72b4146c6 qcacld-3.0: Use ML BSS peer MLD address for PMKSA operation
If PMKID present in AP expires, AP rejects the PMKID based association.
Current design is to clear the cache using BSSID/MAC address of link
in such cases to let a fresh SAE authentication to happen.
But host driver stores PMKSA with MLD address for ML BSS.
Adapt to the same and update PMKSA cache clear APIs to use
MLD address instead of link address.

Use the API which gives ML BSS peer's MLD address for
MLO VDEV or else legacy address for non MLO VDEV to remove
the correct entry in PMKSA cache based on association.

Change-Id: I4af9814e377737eef4a54fdf15db9f6bac38d954
CRs-Fixed: 3433723
2023-04-26 18:24:38 -07:00
Aditya Kodukula
29d20cf6b4 qcacld-3.0: Update MCS map for HE in wiphy
Currently driver doesn't update mcs info while updating
he capabilities in wiphy. This leads to kernel rejecting
higher mcs when NL80211_CMD_SET_TX_BITRATE_MASK function
is invoked from userspace.

Change-Id: I7370de077364fa4287171544ee3ca1f495f9e519
CRs-Fixed: 3477587
2023-04-26 18:24:33 -07:00
Madan Koyyalamudi
c26153a2ae Release 5.2.1.64M
Release 5.2.1.64M

Change-Id: I7e5fc955c08bd3cc4f59e1ef5c67300364180a7a
CRs-Fixed: 774533
2023-04-26 16:51:08 -07:00
Abhishek Singh
96442f45d0 qcacld-3.0: Cleanup the SIR definitions of action frame
Cleanup the SIR_* definitions of action frame and replace them
with common enums.

Change-Id: Ib72f9c452ca59e328d0f15a8643f6a803e517433
CRs-Fixed: 3479554
2023-04-26 16:51:07 -07:00
Paul Zhang
790a506ad9 qcacld-3.0: Resolve compile issue for Fillmore
Add macro check about CFG80211_LINK_STA_PARAMS_PRESENT for
function wlan_cfg80211_tdls_extract_eht_params.

Change-Id: I1982d97f06e333936ea45828f5082d322664a2c0
CRs-Fixed: 3479244
2023-04-26 16:51:02 -07:00
Sheenam Monga
e5c943d4b4 qcacld-3.0: Add support to get num_of_pwr level for 320 MHz chan width
Currently, support to get num_of_pwr level for 320 MHz chan width is
not present, so it is considered as Invalid channel width.

Add support to get num_of_pwr level for 320 MHz chan width

Change-Id: Iced6d58ac356bc85864ff4a240ca6f3ee35df94d
CRs-Fixed: 3478174
2023-04-26 16:50:45 -07:00
Madan Koyyalamudi
c5a40a94b6 Release 5.2.1.64L
Release 5.2.1.64L

Change-Id: Id1148d423c91df6d7eb73610d2381df57bc56268
CRs-Fixed: 774533
2023-04-26 08:23:54 -07:00
Deeksha Gupta
e3f3adbce6 qcacld-3.0: Add support to get Async tid to link response info
Add the following fixes to get Async TID to link map info:
1. Add APIs to register and unregister the T2LM callback.
2. Add HDD callbacks.
3. Send T2LM info, when receiving TID-to-link mapping response
   from the associated AP MLD.

Change-Id: Ia98605b3244b24cc3cac41d2decf22ff6aa82f88
CRs-Fixed: 3431518
2023-04-26 08:23:53 -07:00
Madan Koyyalamudi
02ee1e3f41 Release 5.2.1.64K
Release 5.2.1.64K

Change-Id: I2b941bc6b0499a055cc48268a4b081f6d13cc419
CRs-Fixed: 774533
2023-04-25 22:30:48 -07:00
Paul Zhang
41881c7d5d qcacld-3.0: Resolve compiler issue for Fillmore
There is implicit declaration of function wlan_mlo_get_tdls_link_vdev
issue when compiling Fillmore devSP. To resolve it, add the
corresponding header file.

Change-Id: I6bc4dc01b82f3a0805e79fb7e25c4c4c7642c4e6
CRs-Fixed: 3477725
2023-04-25 22:30:47 -07:00
Madan Koyyalamudi
4cbb309df0 Release 5.2.1.64J
Release 5.2.1.64J

Change-Id: Id144549ba28a6990106696d12ef9da365ab5a74b
CRs-Fixed: 774533
2023-04-25 21:12:20 -07:00
Meng Yuan
fe7e0a4d53 qcacld-3.0: fix the mismatch issue about the macro definition
The macro definition for struct mlo_adapter_info in wlan_hdd_main.h 
is #if (defined(WLAN_FEATURE_11BE_MLO) && defined(CFG80211_11BE_BASIC)),
but in wlan_hdd_main.c defined as #if (defined(WLAN_FEATURE_11BE_MLO). 
Actually, "defined(CFG80211_11BE_BASIC)" can't be satisfied here, so we 
change it in wlan_hdd_main.c to keep it consistent with the head file.

Change-Id: Ic8e49f541459c6712d15a1d55f361dd22042235a
CRs-Fixed: 3474597
2023-04-25 21:12:19 -07:00
Madan Koyyalamudi
c5a5c05de4 Release 5.2.1.64I
Release 5.2.1.64I

Change-Id: I0abbd04290ca547c5af63aaa7f53ca993c18c306
CRs-Fixed: 774533
2023-04-25 19:50:23 -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
Madan Koyyalamudi
375f9417ec Release 5.2.1.64H
Release 5.2.1.64H

Change-Id: Iaa36ae33240ffcd105eba2acef3282bc357348cd
CRs-Fixed: 774533
2023-04-25 16:05:41 -07:00
Aditya Kodukula
273e40a49f qcacld-3.0: Enable PRE_CAC feature flag by default
In peach defconfig file, the CONFIG_FEATURE_WLAN_PRE_CAC
feature flag is not enabled for mobile router profile.
But it is need by all profiles. So, enable the flag by default.

Change-Id: I0281481d0ad227a716000b52447e77c6db5eb168
CRs-Fixed: 3472782
2023-04-25 16:05:41 -07:00
Madan Koyyalamudi
186e2c5a3e Release 5.2.1.64G
Release 5.2.1.64G

Change-Id: Ie315f7b67d534e5f9c2c9c11ee288d56a8af30f9
CRs-Fixed: 774533
2023-04-24 23:36:16 -07:00
Prakash Manjunathappa
a2e7dfd21b qcacld-3.0: Disable HAL_SRNG_REG_HIS_DEBUG enable it only for debug
Order 7 allocation is coming from hal_soc allocation.
This is caused by debug change.
Regression cause is:: Ib98e48e1d32defb0d8b30b854b5b0c23691cca59
With above change struct hal_srng size increased from 320B to 1376B
In turn this increased the struct hal_soc size from 71648B to 310232B
Disable the debug feature from enabling it by default

Change-Id: I3e2fde17defc677401343c158ec40698b1dcb603
CRs-Fixed: 3469599
2023-04-24 23:36:16 -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
Madan Koyyalamudi
4af4d95928 Release 5.2.1.64F
Release 5.2.1.64F

Change-Id: I7f9a7e37c043a31ea74c8ae717d826efbce02244
CRs-Fixed: 774533
2023-04-21 06:51:09 -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
Vinod Kumar Pirla
ed66985f0d qcacld-3.0: Check NULL value of hdd_adapter_get_mac_handle()
The return of hdd_adapter_get_mac_handle() API can be NULL.
Check the NULL pointer before accessing.

Change-Id: Iad0c6be8932323442bc0080ea311092207bf32e6
CRs-Fixed: 3463354
2023-04-21 06:51:03 -07:00
Aditya Kodukula
f40f4779ff qcacld-3.0: Refactor wlan_hdd_get_sta_stats function
Breakdown wlan_hdd_get_sta_stats function into individual
functions to improve code readability.

Change-Id: I4b2745d3b65e4a779ca22445650add0504d68acc
CRs-Fixed: 3468138
2023-04-21 06:50:57 -07:00
Madan Koyyalamudi
c48d15712a Release 5.2.1.64E
Release 5.2.1.64E

Change-Id: I8bde87da9419ae19a77c9ae46caea16376fdaf49
CRs-Fixed: 774533
2023-04-20 23:38:53 -07:00
Gururaj Pandurangi
daa45ef22b qcacld-3.0: Configure the default values for MSD subfields
An AP MLD advertises Medium Synchronization Delay support
and parameters to ML STA in assoc response frame. Host
extracts these values and sends it to FW via peer assoc
command. If the MSD support is absent in assoc response,
Host sends zeroes for MSD subfields. Change this to
configure specific default values as defined in 802.11BE
draft 3.0.

Change-Id: Idd044b23d350634d96b010176b0d8922e793290a
CRs-Fixed: 3416241
2023-04-20 23:38:52 -07:00
Madan Koyyalamudi
5fb79b8754 Release 5.2.1.64D
Release 5.2.1.64D

Change-Id: I4507fd826e7925c22fbb7a376eb5061fb3bee0af
CRs-Fixed: 774533
2023-04-20 19:39:22 -07:00
Deeksha Gupta
1c117ec2b2 qcacld-3.0: Add new cfg80211 command to get T2LM info
Add new cfg80211 command to get TID to link map info.
Below command can be used to get the T2LM info:
"DRIVER GET_ML_TID_MAPPING_STATUS"

Change-Id: I2a06cd615f89dec240a48a25d820c28f9dfdd7d1
CRs-Fixed: 3431486
2023-04-20 19:39:22 -07:00
Madan Koyyalamudi
0fb27e2a87 Release 5.2.1.64C
Release 5.2.1.64C

Change-Id: I700c4fb1b5cae49f8be6a31f340cb49dc0701323
CRs-Fixed: 774533
2023-04-20 00:15:09 -07:00
Surya Prakash Sivaraj
0c49f87280 qcacld-3.0: Pack Supported channel IE based on range
In current design, each supported channel is packed
individually with range count as 1. This bloats the
size of the supported channel IE.

Instead as an optimization, break the supported channel
list into contiguous range of channels and encode only
the start frequency of the range and count of channels
in that range.

Change-Id: Ic5ba530ee6a8422ffc0c67acb621e76826775fa7
CRs-Fixed: 3467712
2023-04-20 00:15:08 -07:00