Commit Graph

27883 次程式碼提交

作者 SHA1 備註 提交日期
Jeff Johnson
7909bafb0f qcacld-3.0: Fix Pre-CAC Documentation
The kernel-doc script identified a few documentation issues in
components/pre_cac, so fix them.

Change-Id: Ie2a9be0c410e32c8e7ca5a86ed0dec7df5b62d25
CRs-Fixed: 3359794
2023-01-13 10:38:16 -08:00
Amit Mehta
3d43f1c6fe qcacld-3.0: Move TSF related variables to single structure
Move TSF related variables to single structure

Change-Id: Id358774d96c07162537407fbc04142b52b48e0e8
CRs-Fixed: 3366522
2023-01-13 10:38:11 -08:00
Jianmin Zhu
a8256d8add qcacld-3.0: Add check to avoid multiple disassoc on ML disconnect
When send disassoc, check if ML peer state is ML_PEER_DISCONN_INITIATED
that indicates the link vdev has sent disassoc frame to FW. If the
check is true, then do not send another disassoc for assoc vdev
to avoid FW assert.

Change-Id: I8ba98c98fa3af8f4a547f4b7e63c73a44e32df74
CRs-Fixed: 3379097
2023-01-13 10:38:06 -08:00
Madan Koyyalamudi
6e3a32df69 Release 5.2.1.51T
Release 5.2.1.51T

Change-Id: I424ca1b840978c79c7bc615ccef5daf8b82470dd
CRs-Fixed: 774533
2023-01-13 02:09:41 -08:00
Jeff Johnson
8da282a666 qcacld-3.0: Fix UMAC Documentation
The kernel-doc script identified a multitude of documentation issues
in components/umac, so fix them.

Change-Id: If30358cb83e90348e410cfea163353f2dd26b3fa
CRs-Fixed: 3360814
2023-01-13 02:09:41 -08:00
Madan Koyyalamudi
8a6e8cdf69 Release 5.2.1.51S
Release 5.2.1.51S

Change-Id: Icc55f84a6417b40f030f76d23f0944d03d2a37ed
CRs-Fixed: 774533
2023-01-12 06:25:15 -08:00
Asutosh Mohapatra
511a53387d qcacld-3.0: Print delayed packet information
Currently there is no information of delayed
wakeup packets when APPS is resumed because
of delayed wakeup.

Add the support to print the number of delayed
packets buffered in FW when resume happens.

Change-Id: Id76347f87f3c440b793f5d3bcb11270db8bdf061
CRs-Fixed: 3307262
2023-01-12 06:25:15 -08:00
Madan Koyyalamudi
2ac1678243 Release 5.2.1.51R
Release 5.2.1.51R

Change-Id: I87a047434c4dda511978949c5aae0f06c2de1495
CRs-Fixed: 774533
2023-01-11 17:23:43 -08:00
Bing Sun
5556d8cba7 qcacld-3.0: Get vdev phymode from vdev desired channel
sme_get_phy_mode does not return correct phymode for vdev.
For vdev, get phymode from vdev desired channel.

Change-Id: I316cd6cfb18427b25c10bbac68bda90857bf5922
CRs-Fixed: 3368679
2023-01-11 17:23:42 -08:00
Bingkui Liu
1b746c479c qcacld-3.0: Remove wowlAddPtrn input limit
wowl_add_ptrn sysfs interface can't accept the full length of
pattern command. This change fixes the problem through dynamic
memory allocation.

Change-Id: Iddeee56cf4ed675bc7578dd9ce976028fae77b3c
CRs-Fixed: 3358847
2023-01-11 17:23:37 -08:00
Madan Koyyalamudi
c5e1a62094 Release 5.2.1.51Q
Release 5.2.1.51Q

Change-Id: Iff9eb1cbc6f0fdb1b73a34f5d28f5d45d6a349b0
CRs-Fixed: 774533
2023-01-11 06:53:15 -08:00
Jeff Johnson
a38d67be64 qcacld-3.0: Fix Target Interface Documentation
The kernel-doc script identified some documentation issues in
components/target_if, so fix them.

Change-Id: Id925b899074b1e9491cc3b9a3066420512459770
CRs-Fixed: 3359868
2023-01-11 06:53:15 -08:00
Madan Koyyalamudi
884f011576 Release 5.2.1.51P
Release 5.2.1.51P

Change-Id: Ic8bf64ce93a97d26d35cf392ba2c7d4a782490fd
CRs-Fixed: 774533
2023-01-11 03:47:05 -08:00
Zhaoyang Liu
e658de3e5e qcacld-3.0: enable defer reo queue descriptor free config for qca6390
Enable defer reo queue descriptor free feature for QCA6390.

Change-Id: I54adea9f73b38507795687a7c1507d59a4132b7a
CRs-Fixed: 3375631
2023-01-11 03:47:04 -08:00
Jeff Johnson
d78ed5cc16 qcacld-3.0: Fix WMI Documentation
The kernel-doc script identified multiple documentation issues
in components/wmi, so fix them.

Change-Id: Ic5bc41350ef846de91a1001d6fe1d28016e0f982
CRs-Fixed: 3361701
2023-01-11 03:46:59 -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
Ananya Gupta
2da1a92077 qcacld-3.0: Create sysfs entry to generate direct link commands
Create sysfs entry to send unit test commands to generate direct
link traffic.

Change-Id: Ib07e3a9785e3abbdff0d7cee89d7e56824c47f78
CRs-Fixed: 3362761
2023-01-11 03:46:48 -08:00
Ananya Gupta
605019d3b1 qcacld-3.0: API to send UT commands to LPASS using QMI
Add API to send unit test commands using QMI messages
to generate direct link traffic from LPASS.

Change-Id: I68b69303ef715677f6056c1f6c4d336466720f45
CRs-Fixed: 3362513
2023-01-11 03:46:43 -08:00
Madan Koyyalamudi
44fa5da8e1 Release 5.2.1.51O
Release 5.2.1.51O

Change-Id: If76f088ddcec226804eca26447ffe4e8b7881d7b
CRs-Fixed: 774533
2023-01-10 23:06:25 -08:00
Jeff Johnson
e7886d39aa qcacld-3.0: Fix Wi-Fi Positioning Documentation
The kernel-doc script identified several documentation issues
in components/wifi_pos, so fix them.

Change-Id: If62f7c43983c1bb67ad0cb2764e8bbadff6e6cf7
CRs-Fixed: 3361660
2023-01-10 23:06:25 -08:00
Jeff Johnson
5e59e167e5 qcacld-3.0: Fix Spatial Reuse Documentation
The kernel-doc script identified a few documentation issues in
components/spatial_reuse, so fix them.

Change-Id: Ie4238aa43d8263151c2f9d05ebbe74ae8854f472
CRs-Fixed: 3361723
2023-01-10 23:06:20 -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
Jeff Johnson
779bce7bd9 qcacld-3.0: Fix Denylist Manager documentation
The kernel-doc script identified a few documentation issues in
components/denylist_mgr, so fix them.

Change-Id: I45fc8c6a637cebccf324dd44102b894fc84e7f2b
CRs-Fixed: 3361722
2023-01-10 23:06:08 -08:00
Madan Koyyalamudi
bfde4db3cb Release 5.2.1.51N
Release 5.2.1.51N

Change-Id: I74be4f2955d49c4ba134e12c90a96c82e3e857d0
CRs-Fixed: 774533
2023-01-10 11:30:51 -08:00
Jeff Johnson
a51ab110dd qcacld-3.0: Fix SON Documentation
The kernel-doc script identified a few documentation issues in
components/son, so fix them.

Change-Id: I2aaa6746b05a963113ea78111a4cc45f35c1f98c
CRs-Fixed: 3359822
2023-01-10 11:30:51 -08:00
Jeff Johnson
4086862b28 qcacld-3.0: Fix Common Services Documentation
The kernel-doc script identified multiple documentation issues in
components/cmn_services, so fix them.

Change-Id: Ifdc8cefcbf7b31dc3e91cc3c5dab7cccd331e473
CRs-Fixed: 3363114
2023-01-10 11:30:44 -08:00
Jeff Johnson
bf0930cb1a qcacld-3.0: Fix PMO Documentation
The kernel-doc script identified a multitude of documentation issues
in components/pmo, so fix them.

Note that there is currently one false positive error being flagged in
the documentation for typedef pmo_get_vdev_dp_handle.

Change-Id: Iddaccbf1b55557a82af34d2b6b4913d37c71123a
CRs-Fixed: 3359766
2023-01-10 11:30:38 -08:00
Madan Koyyalamudi
4d133e23ab Release 5.2.1.51M
Release 5.2.1.51M

Change-Id: If8bd895bb7d2f7ce574b9065f012e3a7018286ac
CRs-Fixed: 774533
2023-01-09 23:35:03 -08:00
Asutosh Mohapatra
ff0430caee qcacld-3.0: Update few INI values
Update RoamIdle_MinRSSI, RoamIdle_RSSIVariation,
RoamIdle_InactiveTime ini default values.

Change-Id: I0c70d4ca3eaf299492d4715485e6a55982399426
CRs-Fixed: 3375824
2023-01-09 23:35:03 -08:00
Ananya Gupta
9ef4a35d86 qcacld-3.0: Vote link based on config change
Currently, based on config_direct_link variable, link is voted
up or down which can result in same multiple votes.
To fix this, vote link up or down if there is a change in
previous config and incoming config_direct_link argument.
Also, return status success when direct link is not enabled
but dp_config_direct_link is called.

Change-Id: I4f54d74a9d4921f27f247450f89a03d6dabc838e
CRs-Fixed: 3375395
2023-01-09 23:34:57 -08:00
Vinod Kumar Pirla
1d2d3223c6 qcacld-3.0: Enhance hdd_get_sta_info_by_mac() API for MLO
The sta_info_list of SAP adapter has two entries for a single
ML STA client, one with link address and other with MLD address.

Hostapd will request peer stats with MLD address for ML client,
and driver will lookup in sta_info_list with MLD address and
finds one, but that entry will not have link address and sends
MLD address to FW to get peer stats which results in timeout
as FW doesn't respond to peer stats request with MLD address.

Remove the second entry in sta_info_list for ML client and
enhance hdd_get_sta_info_by_mac() API to also lookup mld_addr
of each single sta_info in the list.

Change-Id: I8a0f38cec0290e5f82a71380585ebac78812bb53
CRs-Fixed: 3363384
2023-01-09 23:34:52 -08:00
Madan Koyyalamudi
f3ae33bbe6 Release 5.2.1.51L
Release 5.2.1.51L

Change-Id: I531513ce812eec9240a465efe3a37e966639df45
CRs-Fixed: 774533
2023-01-08 03:51:34 -08:00
Pragaspathi Thilagaraj
d987cd9e12 qcacld-3.0: Send PMKID in PMKSA delete command
When delete pmksa is received, firmware looks up the entries
against the vdev mac address and the AP bssid. But during
disconnect, when update mac address happens, the pmksa entry in
firmware is not deleted since the self mac address lookup fails.
This causes roaming failures after next connection.

Send PMKID in the PMKSA delete command to delete the individual
pmksa entries based on PMKID alone.

Change-Id: Icf9ff2dc8aa85ffa212167ce1691fe18fe3a23c5
CRs-Fixed: 3363253
2023-01-08 03:51:33 -08:00
Madan Koyyalamudi
31a3d173f9 Release 5.2.1.51K
Release 5.2.1.51K

Change-Id: I623578d718fb4ef0d83af75f578aa01f33bbd645
CRs-Fixed: 774533
2023-01-07 17:58:59 -08:00
Yeshwanth Sriram Guntuka
9972a80234 qcacld-3.0: Set to_fw bit in DP vdev for Direct link use case
Set to_fw bit in DP vdev for direct link use case
and also set it when the use case is unspecified as
well.

Change-Id: I7306e22e81303720830cfce4ce19b15d2080d93c
CRs-Fixed: 3369891
2023-01-07 17:58:59 -08:00
Madan Koyyalamudi
150cbe51be Release 5.2.1.51J
Release 5.2.1.51J

Change-Id: I822f662873c95dfa0236c07522b9797e58da0aac
CRs-Fixed: 774533
2023-01-07 04:55:32 -08:00
Kai Liu
6d6aaec9b7 qcacld-3.0: clear DEVICE_IFACE_OPENED before starting idle timer
Idle shutdown timer will be triggered once all interfaces are closed.
Clear interface open flag before idle timer triggered.

Change-Id: Ib4a238ccb11ca6d418788d62df44ba800928fdf1
CRs-Fixed: 3374187
2023-01-07 04:55:31 -08:00
Madan Koyyalamudi
c1a5eaa249 Release 5.2.1.51I
Release 5.2.1.51I

Change-Id: I40e9e5d9010586cb0208fae8ea863575815ba748
CRs-Fixed: 774533
2023-01-06 09:56:31 -08:00
Aditya Kodukula
1f276e0631 qcacld-3.0: Fix set_ratemask policy to avoid stack overflow
Currently in the function hdd_set_ratemask_params, which handles
requests for the vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG,
parses the attributes according to the wlan_hdd_set_ratemask_param_policy,
and copies them into the struct config_ratemask_params.

But in the nla_policy, the length of the parameter
QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP is set to 128 bytes instead
of 128 bits (16 bytes), causing stack buffer overflow when copied onto
16 bytes stack buffer. To avoid this issue change the parameter length
from 128 bytes to 16 bytes.

Change-Id: I053d3810e3b4942344d7f1a12e365e9cfc71a492
CRs-Fixed: 3342629
2023-01-06 09:56:31 -08:00
Paul Zhang
0a8f4239ab qcacld-3.0: Add check about num radio
When process hdd_process_ll_stats, the results->num_radio
may be 0 and it causes issue like
"Cannot malloc 0 bytes @ hdd_process_ll_stats:1475"

To resolve this issue, add checking before malloc memory.

Change-Id: I48d4a4045ebdad7465a97417e6514849cf12ef15
CRs-Fixed: 3374212
2023-01-06 09:56:26 -08:00
Vinod Kumar Pirla
d3ede92170 qcacld-3.0: Remove link DP intf on mode change to ML SAP
If ML SAP interface is created on ML STA interface, the MAC
address of the link adapter is changed to MLD address as SL SAP
uses same address for MLD and link. This leaves the DP interface
created with link address during open adapter is not cleared
and also leading to two adapter having same link address which
results in calling DP interface delete with same MAC address twice
and eventually leading to device crash.

Release the DP interface on mode change to ML SAP and create new
DP interface on mode change from SAP to STA. If close adapter is
called while in SAP mode then don't delete DP interface for link
adapter.

Change-Id: I001d4733ba208ccbbd2d65b53497d5120f27a179
CRs-Fixed: 3351414
2023-01-06 09:56:20 -08:00
Madan Koyyalamudi
de197e91f8 Release 5.2.1.51H
Release 5.2.1.51H

Change-Id: I95791f764cd65b2fe25c6bdf241f1d6e7d06874b
CRs-Fixed: 774533
2023-01-06 07:44:51 -08:00
Jianmin Zhu
f9d4ce74c0 qcacld-3.0: Fix race issue of disconnect and roaming
Reproduce steps:
1. Driver received roam start from F/W, enqueue roam cmd in active queue.
2. Driver received disconnect cmd from wpa supplicant,  set link vdev
   vdev1 as disconnecting, enqueue disconnect cmd in pending queue.
3. Driver received MLO roam sync event from F/W, need handle link vdev
   first, assoc vdev later.
4. Driver didn't handle link vdev1 roam sync for disconnecting state, DP
   MLD peer isn't created.
5. Driver handled vdev0 roam sync, dp_peer_setup failed for DP MLD
   peer not created, asserted.

To fix it, when handle vdev0 roam sync, check state of all mlo vdev,
if either disconnecting, abort roam sync, and delete roam req, let
disconnect from upper layer continue.

Change-Id: Ie03e0031908fef0f403d2cacf8ec976a147ef1ed
CRs-Fixed: 3371850
2023-01-06 07:44:51 -08:00
Will Huang
1556ac57f3 qcacld-3.0: Change center_freq_diff from int8 to int32 to avoid overflow
center_freq_diff may overflow int8 when channel width is 320 MHz.
Also clear acs_ch_params before pass it to regulatory API to avoid set
mhz_freq_seg1 which is uninitialized value.

Change-Id: I497ae02c7b53458537e706f2231c0ffef2439961
CRs-Fixed: 3371957
2023-01-06 07:44:41 -08:00
Madan Koyyalamudi
8b706e1b57 Release 5.2.1.51G
Release 5.2.1.51G

Change-Id: I415d1bd6512b222b009e3031dd81d81a2887fc24
CRs-Fixed: 774533
2023-01-06 00:27:44 -08:00
Vijay Raj
4470bb6708 qcacld-3.0: Add diag logging support for measurement report
Introduce diag logging support for Neighbor report and
beacon report via event id EVENT_WLAN_NBR_RPT and
EVENT_WLAN_BCN_RPT.

For Neighbor report token, ssid, report number, frequency
list and frequency is sent. For Beacon report token, mode,
operating class, channel, duration, request_mode and report
number is sent.

Change-Id: I7ef407fa729e608ad0a7036f024acbf8b5180181
CRs-Fixed: 3370758
2023-01-06 00:27:44 -08:00
Surya Prakash Sivaraj
1364e17d1a qcacld-3.0: Skip invalid peer deauth for valid STA
In current design, deauth will be sent for invalid rx
indication since it is expected only for unassociated
STA. However, if due to some rxdma errors, invalid rx
indication is received for an associated STA, then SM
cleanup for the associated STA would not happen after
the deauth. This stale SM entries causes association
failures during the next connection attempt from STA.

Fix this by preventing the deauth for the associated
STA on receiving a invalid peer indication.

Change-Id: I25cbc578ba76e74120e975f142334ff0fd931a6a
CRs-Fixed: 3359541
2023-01-06 00:27:38 -08:00
Madan Koyyalamudi
ba40f9efb6 Release 5.2.1.51F
Release 5.2.1.51F

Change-Id: Iba1c4a43c1747c54048c60da8585039ac2772c44
CRs-Fixed: 774533
2023-01-05 18:00:59 -08:00
Aravind Kishore Sukla
f043d68b35 qcacld-3.0: Update he mcs map for 160 MHz BW
When nss is set to 1 then nss value is updated only for 80 MHz.

Update the he mcs map value for 160 MHz BW, to reflect the
updated nss value for 160 MHz as well.

Change-Id: I8a6090e4c58881a1ff7612d0dbfe788f8d8a2bcc
CRs-Fixed: 3369843
2023-01-05 18:00:58 -08:00
Abhishek Singh
9a21b9ec40 qcacld-3.0: Avoid resetting the limMlmState after assoc confirm
As part of assoc confirm, limMlmState is set to
eLIM_MLM_WT_DEL_BSS_RSP_STATE but in
lim_process_switch_channel_join_mlo its sets to eLIM_MLM_IDLE_STATE
leading to connect completion not completed as it expect
state as eLIM_MLM_WT_DEL_BSS_RSP_STATE, resulting in connect
command timeout.

To fix remove the resetting of limMlmState to eLIM_MLM_IDLE_STATE

Change-Id: I543eb25002859894eddc883c27a124d9fe713be7
CRs-Fixed: 3372631
2023-01-05 18:00:53 -08:00