Commit Graph

72395 Commits

Author SHA1 Message Date
Ananya Gupta
b74a18ea3f qcacld-3.0: Do not take wakelock if ip multicast packet
Currently, wakelock is taken for all unicast packets.
Do not take wakelock if packet is IP multicast packet.

Change-Id: If197cbb58d1414adedb1d29f9c2bd67be83e95b4
CRs-Fixed: 3807621
2024-08-20 05:32:45 -07:00
Ananya Gupta
50422eee58 qcacld-3.0: Do not take wakelock for non-local ARP request
Currently, wakelock is being taken for all unicast packets.
Do not take wake lock if it is a ARP packet but not local to
host.

Change-Id: Iff5de2b83a4b12692b2f3b82d58e0fc400326529
CRs-Fixed: 3838502
2024-08-20 05:32:40 -07:00
Ananya Gupta
ecbe06079f qcacmn: Fix multicast checks
IP multicast check for IPv4 was failing as the big endian
conversion was not being done and wrong values were being checked.
Do ntohs conversion on macros to check if packet is mcast packet.
In IPv6 check, the word is being checked instead of first byte.
Check only first byte when checking for ipv6 multicast address.

Change-Id: I686cdef7957778f9c60f2dc919421d39c4b8b71c
CRs-Fixed: 3824229
2024-08-20 03:32:16 -07:00
Ravindra Konda
d5a360d359 Release 5.2.1.92Z
Release 5.2.1.92Z

Change-Id: I438828138c396c705d77271503edd56d664391e8
CRs-Fixed: 774533
2024-08-20 03:30:58 -07:00
Ananya Gupta
6b022c4d0e qcacld-3.0: Do not take wake lock for non local ARP packet
Do not take wake lock if the packet is unicast and a non local
ARP packet.

Change-Id: I7e76f5ddde41c026355c4f7fe938f20ea819c0f6
CRs-Fixed: 3831823
2024-08-20 03:30:57 -07:00
Anand Tarakh
55ec06a914 Revert "disp: msm: dsi: wait for mdp idle before roi update"
This reverts commit 9184f0dbd383af314112f1f6038a4143c44a5837.

Reason for revert: Janks are observed with bouncing ball test.

Change-Id: I5fd3dd5c7abf83cdaa141ccc42271e3ff899cfce
Signed-off-by: Anand Tarakh <quic_atarakh@quicinc.com>
2024-08-20 02:50:02 -07:00
Ravindra Konda
c592ec0eb7 Release 5.2.1.92Y
Release 5.2.1.92Y

Change-Id: Icdfefab124bcb4320ff2dc029f9479950ae60adb
CRs-Fixed: 774533
2024-08-19 21:06:39 -07:00
Jianmin Zhu
119765c7b9 qcacld-3.0: Use full SAE auth when connect specified AP
When MLO STA connects to a specified buggy MLO AP with PMKID in assoc
req, it consistently fails and then retries with a downgraded SLO
candidate, which eventually succeeds. However, the customer expects MLMR
connection.

To address this, when select this buggy AP, we avoid generating
downgraded SLO/11AX candidates, use full SAE auth instead of existed
PMKSA, and don't add PMKID in RSNIE of assoc req when connect.

If the MLMR assoc fails, assoc rejection is sent to upper layer,
not retry with SLO/11AX candidates. Instead, wpa_supplicant/aosp will
clear the PMKSA upon receiving an association rejection, and subsequent
retries will use full SAE authentication, resulting in a successful MLMR
connection.

Change-Id: I85f39f52e4dae8393bbf559969710f35447b8c0c
CRs-Fixed: 3888073
2024-08-19 21:06:38 -07:00
Jianmin Zhu
256544b37b qcacmn: Don't allow SLO candidate for specified AP
When MLO STA connects to a specified buggy MLO AP with PMKID in assoc
req, it consistently fails and then retries with a downgraded SLO
candidate, which eventually succeeds. However, the customer expects MLMR
connection.

To address this, when select this buggy AP, we avoid generating
downgraded SLO/11AX candidates, use full SAE auth instead of existed PMKSA,
and don't add PMKID in RSNIEof assoc req when connect.

Change-Id: I8e446544b2fdbae089840713bc8bc93c601f1863
CRs-Fixed: 3888074
2024-08-19 14:57:46 -07:00
Jianmin Zhu
ee88dcad93 qcacmn: Fix NULL pointer dereference when out of buffers
When util_scan_copy_cache_entry return NULL for out of buffers,
NULL pointer dereference happens.

To fix it, check return pointer of util_scan_copy_cache_entry
before use it.

Change-Id: Iec5e6f10c8e0bbe6b88d844cc00320f3f23191a4
CRs-Fixed: 3885075
2024-08-19 14:57:39 -07:00
Sheenam Monga
9e1ef54291 qcacmn: Update Candidate list with 11AX scan entry
Currently, When connection failure happens with MLO
AP then all combinations of that MLO AP are tried until
the partner links become 0/SLO.If AP configured links are
more than supported links and AP doesn't support EHT then
AP disconnects with reason EHT not supported and STA will not
be able to connect to that AP as STA tries combination till SLO
but all combinations are 11BE only.

To Fix above scenario add a 11AX entry in candidate table, so that
connection can be tried with 11AX if all combination fails or failure
reason clears that 11BE association is not possible.

Change-Id: Ibde68f44a1367c9af160201bc677dd97b1897c06
CRs-Fixed: 3779644
2024-08-19 14:57:32 -07:00
Sheenam Monga
718001ff6a qcacmn: Consider MLO AP first in list if NON-ML and ML score same
There could be a case when SLO and 11AX entry has same score. In
that case consider MLO candidate first and then move to 11AX in case
of failure.

Change-Id: I4e24ff45a23e9f620b7c2894f26223c55828c8bd
CRs-Fixed: 3779623
2024-08-19 14:57:25 -07:00
Jianmin Zhu
33997eac03 qcacmn: Fix single link score is higher than MLO link issue
As current MLO RSSI algorithm, MLO RSSI score is quite worse
than that of better link if worse link RSSI is poor, which may
make MLO candidate score worse than link candidate score, SLO
candidate is selected to connect instead of MLO candidate.

To fix it, for DBS/HBS MLO candidate, boost total score 10%.

Optimize MLO rssi score algorithm as following:
MLO-RSSI = [BW1/(BW1+BW2) ]* RSSI1 +  [BW2/(BW1+BW2) ]* RSSI2.

CRs-Fixed: 3776301
Change-Id: I16d65b2a70cd0ca0daba47b116c8627f995d5157
2024-08-19 14:57:18 -07:00
Ravindra Konda
13d3a2057a Release 5.2.1.92X
Release 5.2.1.92X

Change-Id: I0e2dc8107fa0fbc10b56134035c90d88df214c83
CRs-Fixed: 774533
2024-08-19 14:56:04 -07:00
Asutosh Mohapatra
3eeeb7714c qcacld-3.0: Enable relevant ICNSS configs for parrot66 Adrastea
Currently CONFIG_PLD_SNOC_ICNSS_FLAG and CONFIG_ICNSS2_HELIUM
configs are not enabled in Bazel GKI config file of Adrastea for
parrot66 target. As a result host is not calling relevant PLD
API for driver registration during load. As a result seeing
Adrastea driver loaded for Moselle device.

To address this issue, enable CONFIG_PLD_SNOC_ICNSS_FLAG and
CONFIG_ICNSS2_HELIUM configs.

Change-Id: I7419eb1f6339e134a85729f25301913adf02e484
CRs-Fixed: 3898745
2024-08-19 14:56:03 -07:00
QCTECMDR Service
c18749919b Merge "kgsl: Enable AHB timeout detection for gen_8_3_0" 2024-08-19 00:54:12 -07:00
QCTECMDR Service
3f61ac09bc Merge "kgsl: Add ACD feature for Gen8_3_0 GPU" 2024-08-19 00:24:58 -07:00
Yu Tian
98e66d3da1 qcacmn: Fix use after free reported by KASAN
Vdev id is freed after wmi send, it can't be referenced anymore.

Change-Id: I2cb63a28daa36f292903261df1c23c717ec63a9f
CRs-Fixed: 3834424
2024-08-18 11:33:31 -07:00
Faiz Kuchay
c5fccc6420 asoc: update init func for rxtx-rx1 virt dailink
The init func of rxtx-rx1 virt dailink should
be same with rxtx-rx1 dailink.

Change-Id: I62008bfb742d6c6b818b1b4dbce6d521229d0369
Signed-off-by: Faiz Kuchay <quic_fkuchay@quicinc.com>
(cherry picked from commit a1e8d2ab44)
2024-08-17 08:15:48 -07:00
Rahul Gusain
ba1983d2a1 qcacmn: OOB while parsing ML per STA profile
Currently, while parsing the per STA profile IE, driver tries to
access the EXTN element ID without checking IE len. When IE len
is zero, if driver tries to access the IE after IE header then it
will leads to out of bound error.

So, to fix this, add check for IE len before accessing it.

Change-Id: I30d3fae9aaedc0011a2d3415e273d5e32db2d56e
CRs-Fixed: 3852338
(cherry picked from commit 608d3ddcb6)
2024-08-17 06:51:31 -07:00
Ravindra Konda
873cc94397 Release 5.2.1.92W
Release 5.2.1.92W

Change-Id: If137695954351074bec3d3244a032c4296871057
CRs-Fixed: 774533
2024-08-16 01:17:29 -07:00
Jyoti Kumari
f2c1ae4f5f qcacld-3.0: Handle defect code
In __hdd_set_multicast_list(), mc_list_request->count is of
uint8_t type but the value is getting assigned from to
int type which may lead to overflow.
Fix is to change mc_list_request->count to int type

In check_disable_channels(), driver is not taking lock before
using hdd_ctx->original_channels. There could be possibility that
other api may change the value at the same time.
As part of fix take lock before using hdd_ctx->original_channels in
check_disable_channels()

Change-Id: I2ed53ca136f48034489a6fc3210ff3dfb77b4632
CRs-Fixed: 3882266
2024-08-16 01:17:28 -07:00
Linux Build Service Account
3c7891e07a Merge cfd8b01ad3 on remote branch
Change-Id: I9528b6ae8030cc4d97315c53db8212084d0d5960
2024-08-14 07:18:23 -07:00
Linux Build Service Account
9f2d7b163c Merge 19a817e565 on remote branch
Change-Id: I407047a2729a2065c6992106ebd23c10c7e9580a
2024-08-14 07:17:56 -07:00
Linux Build Service Account
c08ad74311 Merge 74fb08d85c on remote branch
Change-Id: I718dfd552603fc863d45745c7d80cfde7c1a535a
2024-08-14 07:17:24 -07:00
Linux Build Service Account
76a793b28f Merge f32ad32109 on remote branch
Change-Id: If8f82976f9ac0ed6b4c818f2b111fc578bc67973
2024-08-14 07:09:10 -07:00
Linux Build Service Account
6e55ae3ea9 Merge d74498c278 on remote branch
Change-Id: Ie8f687dd0f33277f0ae717558ac42485f0bc8ca2
2024-08-14 07:01:46 -07:00
Linux Build Service Account
2915eb8817 Merge 04d57479ae on remote branch
Change-Id: Iaed0a08c1ecdcaf8133c59a3d53643ad5598666d
2024-08-14 07:01:27 -07:00
Linux Build Service Account
2e95c836fb Merge f60913a38d on remote branch
Change-Id: Ib69ac8da64b77be3ea11ca3c17e0cb11553efeec
2024-08-14 07:00:24 -07:00
Linux Build Service Account
50bc1b3fa8 Merge 00b0ead282 on remote branch
Change-Id: Ib2ce68a6d526893488096a1f51937a324a93c230
2024-08-14 04:05:40 -07:00
Linux Build Service Account
6791773c64 Merge 2abf17e048 on remote branch
Change-Id: I588096a7b865d8be1f850f80d4141fef877df8cc
2024-08-14 02:35:32 -07:00
Linux Build Service Account
d80aa7123d Merge beff0c7ec3 on remote branch
Change-Id: Ia7bcd52c6c1bdf7e803aa7f0a3504dbb43c5db76
2024-08-14 02:31:42 -07:00
Kaushal Sanadhya
9ffcd2645b kgsl: Add ACD feature for Gen8_3_0 GPU
Add ACD feature support for Gen8_3_0 GPU.

Change-Id: Iaf6dc1463cc5d0be37fc4464db5b1ceade9e8f35
Signed-off-by: Kaushal Sanadhya <quic_ksanadhy@quicinc.com>
2024-08-14 02:20:59 -07:00
Carter Cooper
08742a4c65 kgsl: gen8: Move from mailbox to qmp_aoss domain for ACD
Mailbox support is being dropped by AOSS starting with gen8 targets.
Remove mailbox support and replace with qmp.

Change-Id: I13b0e03853ab412c801c4141075333d1661c8d43
Signed-off-by: Carter Cooper <quic_ccooper@quicinc.com>
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <quic_mmandaya@quicinc.com>
2024-08-14 02:19:42 -07:00
Srinivas Dasari
3aaddb2c45 qcacmn: Use atomic APIs to check the event_flag in logger thread
Currently, qdf_set_bit()/qdf_clear_bit()/qdf_test_bit() APIs are
used to operate on the event_flag in logger_thread. These APIs
use non-atomic kernel APIs __set_bit()/__clear_bit()/__test_bit()
and the operation is indeterministic when system syspend/resume
happens.
Use atomic APIs(qdf_atomic_*) to avoid this.

Change-Id: I52d1c608f9845ed6c98975f2455035c8587bfd72
CRs-Fixed: 3890216
2024-08-14 01:55:16 -07:00
Ravindra Konda
65f6a181b9 Release 5.2.1.92V
Release 5.2.1.92V

Change-Id: Ib8fe2f9e232c45c7bd8055bb1f63376ace9562d8
CRs-Fixed: 774533
2024-08-14 01:54:11 -07:00
Pragaspathi Thilagaraj
5b7fda60f0 qcacld-3.0: Add duplicate peer detection logic before TDLS setup
Issue #1:
When Legacy sta does TDLS with one link of ML Sta and then
moves to the other link AP due to roaming or other reason, then
the same STA can try TDLS on the other link.
While processing TDLS add sta, peer create is done. If duplicate
peer exists, then WMA returns error and add sta failure status
is given to userspace. But the allocated peer idx and sta_ds
are not cleaned up resulting in TDLS peer delete sent on
wrong vdev during disconnect because the peer delete is done
for the pe_session for all the AID present in the aid bitmap
that is stored in the PE session.
In this failure scenario peer object already exists but sta_ds
is not present.

Add duplicate peer detection in lim while checking for sta_ds
also to avoid cleanup failure & add proper error handling
in lim_process_tdls_add_sta_rsp() for failure case.

Issue #2:
When Link Switch happens, as part of the disconnect sequence
the TDLS peers are not deleted sometimes. This is because, TDLS
module posts delete all peers msg to lim, but the disconnect
defers other msgs and pe_session is deleted. When TDLS msg gets
processed, it checks for pe_session to delete all the peers
based on the peer AID bitmap stored in pe_session.
Since PE session was deleted, the peers are not deleted and AID
was also cleared. So the TDLS peers where not deleted during
subsequent disconnections also.

Delete all TDLS peers directly when disconnect start indication
is received in IF MGR without posting msg, similar to south
bound disconnect & roaming cases.

Change-Id: I403fe0022289d4a5d5b45fdd37477b89ce50ec1e
CRs-Fixed: 3823658
2024-08-14 01:54:10 -07:00
Pragaspathi Thilagaraj
f942adf914 qcacld-3.0: Drop TDLS peer ADDBA request when not in connected state
When the DUT sends TDLS setup response directly to peer without
sending TDLS discovery, the peer can send the addba request
frame and it can be received before TDLS_CHANGE_STA,
TDLS_ENABLE_LINK is done from userspace. So all the capabilities
of the TDLS peer are not available till then. This causes the
addba buffer size to be lower and ultimately lower throughput is
observed on the TDLS link.

Drop the ADDBA request from TDLS peer if ENABLE_LINK is not done,
so that the peer will retry the addba frame later.

CRs-Fixed: 3828017
Change-Id: I3617d42db0dca88e9244565ba00a9740dc7be18b
2024-08-14 01:54:05 -07:00
ANANDU KRISHNAN E
8168f4e0d5 msm: adsprpc: Avoid taking reference for group_info
Currently, the get_current_groups API accesses group info, which
increases the usage refcount. If the IOCTL using the
get_current_groups API is called many times, the usage counter
overflows. To avoid this, access group info without taking a
reference. A reference is not required as group info is not
released during the IOCTL call.

Change-Id: Iec31c90f9fd1a837fb697d5d7d1baba7d285374d
Signed-off-by: ANANDU KRISHNAN E <quic_anane@quicinc.com>
2024-08-14 10:41:11 +05:30
Prasad Arepalli
4aca461895 msm: ipa: Updating the con pipe TRE structure as per uc
Updating the consumer pipe TRE structure as per uc.

Also, saving the virtual addresses during  allocation of uc producer
transfer or event rings, and its consumer transfer rings separately
to free them in failure scenarios.

Change-Id: I928c97c8f65418628d1bc7c1662d9e6a03f9d610
Signed-off-by: Prasad Arepalli <quic_parepall@quicinc.com>
2024-08-13 16:50:28 +05:30
Ravindra Konda
72d3c5e3ab Release 5.2.1.92U
Release 5.2.1.92U

Change-Id: I59a6c21f32e929223628881d838ff6fbba34ab1e
CRs-Fixed: 774533
2024-08-13 01:02:06 -07:00
Abhinav Kumar
9ccb6d08a5 qcacld-3.0: Update next RSSI threshold in GETROAMTRIGGER cmd
If DUT enters good rssi region from bad rssi region,
FW sends good rssi value to host via roam_msg_info event
with message id WMI_ROAM_MSG_CONNECTED_IN_POOR_RSSI.

Fix is to store “next RSSI threshold” value in vdev mlme
and update same when GETROAMTRIGGER is queried.

Change-Id: Icbf6cf050faab7e6f5dd418c07f6e94462e5c50a
CRs-Fixed: 3876356
2024-08-13 01:02:05 -07:00
QCTECMDR Service
d2cc095456 Merge "asoc: lpass-cdc: disable clk when they are enabled" 2024-08-12 22:48:38 -07:00
Ravindra Konda
b29439c5f3 Release 5.2.1.92T
Release 5.2.1.92T

Change-Id: I6cbf483ab70b277206606057f7a24da7f05fe808
CRs-Fixed: 774533
2024-08-12 05:13:40 -07:00
Surabhi Vishnoi
a290016c0e qcacld-3.0: Enable peach v2 compilation in volcano
This change enables bazel compilation for peach v2
chipset on volcano target.

Change-Id: I1f9cddef836251ab8a5d7de28a560ef2de03ae0a
CRs-Fixed: 3856100
2024-08-12 05:13:39 -07:00
QCTECMDR Service
4e4eb52fb3 Merge "video: driver: Remove transcoding info in volcano" 2024-08-12 03:20:16 -07:00
Akash Gajjar
d43f054f84 disp: sde: override fal10 veto for milos target
This patch overrides the fal10 veto for the milos target.

Change-Id: I82310b63ff89aa44c03b97e4e7b6e87ac5c4569a
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
(cherry picked from commit 8ce353ea46)
2024-08-11 22:23:50 -07:00
Akash Gajjar
8ed94e797c disp: msm: sde: enable uidle support for milos target
This change enables the uidle feature support for milos target.

Change-Id: I3f8633b623d69467010639b48e47a2455f64c55b
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
(cherry picked from commit 841bca1984)
2024-08-11 22:04:30 -07:00
Chirag Rastogi
621ace510e msm: ipa: Remove warnings when rate limited
Removed WARN_ON from the IPA rate limit macro.

Change-Id: Ifceeb4360bfd0141c95fb1c41855f09a349153f0
Signed-off-by: Chirag Rastogi <quic_crastogi@quicinc.com>
2024-08-08 23:25:12 -07:00
QCTECMDR Service
b98837b278 Merge "disp: sde: override fal10 veto for milos target" 2024-08-08 05:36:13 -07:00