Commit gráf

31038 Commit-ok

Szerző SHA1 Üzenet Dátum
Manoj Shanmugam
3798d44679 qcacld-3.0: Add null check for mac
Pointer mac is returned from function cds_get_context which might return
NULL. So NULL check for mac pointer is added before dereferencing it.

Change-Id: I9258dc625144650c077fd457827fc24610732b77
CRs-Fixed: 3746451
2024-05-02 06:45:02 -07:00
Ravindra Konda
1da365efd5 Release 5.2.1.89U
Release 5.2.1.89U

Change-Id: I91acdd3b605f1569baeccf7bd37bfbb4f4be66d4
CRs-Fixed: 774533
2024-05-02 01:10:00 -07:00
Vijay Raj
ebd1aaceda qcacld-3.0: Override NSS with the HW NSS capability during TDLS setup
Add support override the NSS capability with HW NSS capability
during TDLS setup.

Change-Id: I916193969d5aafe042ee1bea2adc29668c9109ee
CRs-Fixed: 3792456
2024-05-02 01:09:59 -07:00
Ravindra Konda
fa303d4954 Release 5.2.1.89T
Release 5.2.1.89T

Change-Id: I2dea159ff4ae1dc9238fd12239bbeb2ac71ecb4f
CRs-Fixed: 774533
2024-05-01 12:19:59 -07:00
Srinivas Dasari
d054e0b3e2 qcacld-3.0: Send ROAM_SYNC abort status to caller
Currently, ROAM_SYNC is aborted on the corresponding vdev when
the vdev is not in CONNECTED state. This abort operation sends
an RSO_STOP to fw but the status is not notified to the caller.
This results in a race condition in the below scenario,

1. Firmware roamed to a 2-link ML AP and sent Roam sync ind
   to host
2. Host posted ROAM_SYNC on vdev-0 in scheduler thread context
   as the vdev-0 state is CONNECTED
3. Got a DISCONNECT request from userspace in user thread and
   the states moved to DISCONNECTING.
4. Host tried to post ROAM_SYNC to vdev-1 but aborted as the
   state is not CONNECTED and tries to send RSO_STOP to fw.
   This RSO_STOP won’t be sent as it’s a link vdev and the
   RSO_STOP should go from assoc vdev later.
   But this status is not indicated to the caller which
   proceeds with vdev-0 ROAM_SYNC.
5. As vdev-0 ROAM_SYNC doesn't check for the connection state
   once processing is started, ROAM_SYNC would be completed
   on vdev-0.
6. This causes out of sync and vdev-1 doesn't get cleaned-up.
7. As part of the disconnect, host tries to cleanup the old
   peer on vdev-1. But firmware ignores this as that peer is
   already cleaned up in fw.

This results in peer map-unmap issue later as the new Roamed
peer on vdev-1 will never get cleaned-up in host but the same
got cleaned up in fw. FW is free to use that peer_id to
another peer mac later and when it does, host DP complains.

So, indicate ROAM_SYNC abort status to the caller to abort
the complete Roaming.

Change-Id: Ic65149ddf28f01ca5d7a0f6d3137a38e64e6c6ae
CRs-Fixed: 3786671
2024-05-01 12:19:58 -07:00
Ravindra Konda
d9b0f13b14 Release 5.2.1.89S
Release 5.2.1.89S

Change-Id: I6a4121c281c776f0a20d85dddfea214dff6fdf8d
CRs-Fixed: 774533
2024-05-01 10:40:31 -07:00
Srinivas Dasari
6ac4a7f8cb qcacld-3.0: Don't abort SAP CSA if it's already started
When SAP CSA is started, host driver starts sending CSA IE
with beacon count. Host driver sends VDEV_RESTART to firmware
only when the beacon count reaches to 0(e.g. from 10 to 0).
But if CSA has to be aborted due to some reason(e.g. concurrent
SAP got disconnected), host driver stops the CSA by posting
EV_CHAN_SWITCH_DISABLED where it stops sending the CSA IE and
restores the VDEV state to UP-UP-ACTIVE. It updates the
templates and doesn't send VDEV_RESTART to firmware.

Currently, host driver sends VDEV_UP to firmware as part of
SAP state machine restoration. But firmware might not expect
this VDEV_UP as vdev is in UP state. Host has to avoid
sending VDEV_UP to firmware when the VDEV state is UP-ACTIVE.
Also, SAP CSA abort might result in other race conditions.
So, let the CSA continue if it's already started and SAP channel
gets evaluated once SAP is UP anyway.

Change-Id: Ic8ff8b0c58dd656b4e7ae2a2f9c46c3584a33165
CRs-Fixed: 3734991
2024-05-01 10:40:30 -07:00
Ravindra Konda
ff5b1e229f Release 5.2.1.89R
Release 5.2.1.89R

Change-Id: Ia04ee006387f57bd4ef33801215dfcf986570457
CRs-Fixed: 774533
2024-04-29 06:47:02 -07:00
Asutosh Mohapatra
f1b4ea31ad qcacld-3.0: Add sta keep alive interval cmd support
Add support to dynamically set keep alive interval
for STA interfce.

Change-Id: I9aceaa03866f819e5ea169778a57feff053a39d6
CRs-Fixed: 3795405
2024-04-29 06:47:01 -07:00
Ravindra Konda
84557de6e4 Release 5.2.1.89Q
Release 5.2.1.89Q

Change-Id: Ia6fd4ca53775b3b80143810d08098503146828a2
CRs-Fixed: 774533
2024-04-26 09:45:33 -07:00
Surya Prakash Sivaraj
772f0d19e4 qcacld-3.0: Send RSO start/stop for CSA
Host driver doesn't disable RSO before restarting the vdev
for fw-initiated as well host-initiated CSA or BW change for
link vdev. Therefore, if the FW is in middle of roam(for host
initiated CSA) cases, this restart leads to race condition in FW.

Add a new reason code for VDEV restarts triggered due to CSA,
enable/disable the RSO SM based on this new reason code for
assoc as well as partner links.

Change-Id: I48925d76df62bb1c60f212048b95c434af18042f
CRs-Fixed: 3770973
2024-04-26 09:45:32 -07:00
Ravindra Konda
3ea4769e8d Release 5.2.1.89P
Release 5.2.1.89P

Change-Id: Ibb300a3bebfbdf5c6917a4002d2dd90291ed958c
CRs-Fixed: 774533
2024-04-25 10:10:57 -07:00
Vijay Raj
847c26d19d qcacld-3.0: Avoid NSS and Antenna mode change during TDLS connection
In the api hdd_set_nss_params() and hdd_set_antenna_mode()
change in nss parameter or antenna mode cause the TDLS
teardown.

Add a check in api hdd_set_nss_params() and
hdd_set_antenna_mode() to prevent change in parameter
if there is a existing TDLS connection.

Change-Id: I8a58b8b0a617a8de490907e4c3181b15d90e0dbb
CRs-Fixed: 3789892
2024-04-25 10:10:56 -07:00
Ravindra Konda
86a2632fa2 Release 5.2.1.89O
Release 5.2.1.89O

Change-Id: I50d55b2b8c093f0f34a9cf535e1ec37e197f2b63
CRs-Fixed: 774533
2024-04-23 07:47:46 -07:00
Prasanna JS
c366e42408 qcacld-3.0: Fix missing semicolon compilation error
Fix missing semicolon compilation error

Change-Id: I0b9092dbfbced656c518dcafb7394cb37f4cc6ef
CRs-Fixed: 3794351
2024-04-23 07:47:45 -07:00
Rachit Kankane
46a74af7d5 qcacld-3.0: Add PLD support for QMI Indication
Add PLD APIs to register callback for QMI Indication via CNSS2

Change-Id: I5a92250bf349b2b94e3ed74ed0b420f96c2c7461
CRs-Fixed: 3786384
2024-04-23 07:47:36 -07:00
Prasanna JS
f6f3162846 qcacld-3.0: Add compile time flag for Chipset logging
Add feature flag for chipset logging feature

Change-Id: I2622dfe60d7b45a468b304eeed420e828f36d902
CRs-Fixed: 3782380
2024-04-23 07:47:27 -07:00
Prasanna JS
019b2fff7f qcacld-3.0: Add chipset stats for NAN operations
Add chipset stats for NAN operations

Change-Id: Iced9198240eed0bcddead32977b160cd8aeeedf8
CRs-Fixed: 3783059
2024-04-23 07:47:16 -07:00
Prasanna JS
7643b9b9f7 qcacld-3.0: Add chipset stats for SAP/P2P GO
Add chipset stats for SAP/P2P GO

Change-Id: Id90927de86fecc98b1cf53362b45245c02a23aa7
CRs-Fixed: 3783050
2024-04-23 07:47:07 -07:00
Prasanna JS
029b0cf777 qcacld-3.0: Add chipset stats for TDLS operations
Add chipset stats for TDLS operations

Change-Id: Ib55de392d14d8aace67b00005bff72c999515a45
CRs-Fixed: 3783041
2024-04-23 07:46:57 -07:00
Rachit Kankane
391e08c8fd qcacld-3.0: Add chipset stats for Roaming operations
Add chipset stats for Roaming operations

Change-Id: I0f9fbb362a3c4a8bcbbec991775272a127cdeae6
CRs-Fixed: 3783032
2024-04-23 07:46:46 -07:00
Prasanna JS
1118030920 qcacld-3.0: Add chipset stats for STA connect/disconnect
Add chipset stats for STA connect/disconnect

Change-Id: I6a96342493d1fbdf1c7484fa7f11056190b66bb1
CRs-Fixed: 3783024
2024-04-23 07:46:35 -07:00
Prasanna JS
57734374e9 qcacld-3.0: Add chipset stats for TX/RX mgmt frames
Add chipset stats for mgmt TX/RX frames

Change-Id: I14e487ef797fbacb7247bcf50b4ce9d77856376d
CRs-Fixed: 3783020
2024-04-23 07:46:24 -07:00
Prasanna JS
3f61d333b0 qcacld-3.0: Add chipset stats API to send data to middleware
Add chipset stats API to send data to middleware

Change-Id: I391f0a1ba72f4b00b0aadc0954abda728c843d1b
CRs-Fixed: 3784971
2024-04-23 07:46:15 -07:00
Prasanna JS
8a00cb7777 qcacld-3.0: Set chipset stats bits when user requests ring data
Set chipset stats bits i.e HOST_LOG_CHIPSET_STATS for
host chipset stats and FW_LOG_CHIPSET_STATS for firmware
chipset stats in gwlan_logging.eventFlag object whenever
user requests ring data inorder to flush both host and fw
chipset stats buffer.

Change-Id: I3701c65d2f3a94773e34f14c1a5742ec9b416347
CRs-Fixed: 3783014
2024-04-23 07:46:06 -07:00
Prasanna JS
499e272c51 qcacld-3.0: Add new file in bazal stats to compile
Update bazel script with wlan_cp_stats_chipset_stats.c src
file to include it in the compilation

Change-Id: I9f92db2856f14c146b2ea111be0e0f2f0ce8fc19
CRs-Fixed: 3783012
2024-04-23 07:45:57 -07:00
Ravindra Konda
31038a49b0 Release 5.2.1.89N
Release 5.2.1.89N

Change-Id: Iac9aaf6eb25eef637478ba84431116e1bd2eca06
CRs-Fixed: 774533
2024-04-19 07:37:45 -07:00
Abhinav Kumar
404d297834 qcacld-3.0: Fix timestamp values for BTM connectivity logs
Firmware timestamp values are not printed for BTM_QUERY &
BTM_REQ events and wrong value for BTM_RSP. This is because
the timestamp values is read from wrong structures.

Read the firmware timestamp values from correct wmi structure
to fill the connectivity diag event

Change-Id: I568e87ee3e4bb66d3f73d353df794ced92b418c1
CRs-Fixed: 3788350
2024-04-19 07:37:44 -07:00
CNSS_WLAN Service
5d70722fa2 Merge "Release 5.2.1.89M" into wlan-cld3.driver.lnx.2.0.14 2024-04-19 04:19:15 -07:00
CNSS_WLAN Service
3cf538a14f Merge "qcacld-3.0: Fix sap_dfs_wakelock not released when SAP stop" into wlan-cld3.driver.lnx.2.0.14 2024-04-19 04:18:48 -07:00
CNSS_WLAN Service
9571c5520b Merge "qcacld-3.0: Remove dependency of gEnable2x2 with HtSMPS" into wlan-cld3.driver.lnx.2.0.14 2024-04-19 04:18:12 -07:00
CNSS_WLAN Service
93d965aa54 Merge "qcacld-3.0: Use only partner links with valid scan entry" into wlan-cld3.driver.lnx.2.0.14 2024-04-19 04:18:02 -07:00
Ravindra Konda
ac65ad768d Release 5.2.1.89M
Release 5.2.1.89M

Change-Id: I6f43100079f07e536574aac5d7e34a65feb30e2e
CRs-Fixed: 774533
2024-04-19 01:40:04 -07:00
Jianmin Zhu
4f3d9a269a qcacld-3.0: Fix sap_dfs_wakelock not released when SAP stop
When SAP start as pri freq: 5180, 160M,  pri freq isn’t DFS freq, but
bonded freqs are DFS freq, so sap_dfs_wakelock is held.
After SAP restart as pri freq: 5180, 80M, pri freq and bonded freqs are
not DFS freq, so sap_dfs_wakelock isn’t released.

To fix it, add ch_params_before_ch_switch in sap_context, which includes
ch_width/ccfs0/ccfs1, can get all bonded sub channel info.
Add ch_params parameter in API hdd_hostapd_channel_allow_suspend and
hdd_hostapd_channel_prevent_suspend.

Call wlan_mlme_check_chan_param_has_dfs in them instead of
sap_chan_bond_dfs_sub_chan with

CRs-Fixed: 3777779
Change-Id: I7e32317b2ffab6f8de5990aeed68e7bd02527d6f
2024-04-19 01:40:03 -07:00
Ravindra Konda
a1fa06e4d6 Release 5.2.1.89L
Release 5.2.1.89L

Change-Id: Ie07685172c833db43408a940ffddc2fff0ea3314
CRs-Fixed: 774533
2024-04-17 10:24:12 -07:00
Srinivas Dasari
f007fe1814 qcacld-3.0: Check for sap_ctx->vdev existence before accessing
Currently, opmode is extracted from sap_ctx->vdev without
checking if it's NULL. Add a preventive NULL check
on sap_ctx->vdev.

Change-Id: I084d7ad441f84426d316d729136286a24fbeed26
CRs-Fixed: 3786993
2024-04-17 10:24:11 -07:00
Ravindra Konda
316b026772 Release 5.2.1.89K
Release 5.2.1.89K

Change-Id: I8fc22600396c4e9741346b53eab70486edf7d3d9
CRs-Fixed: 774533
2024-04-16 05:52:10 -07:00
Vinod Kumar Myadam
aa3ef98410 qcacld-3.0: Fix NULL pointer dereference in HDD stats path
Fix NULL pointer dereference issue in below API:
- hdd_get_connected_station_info
- hdd_get_connected_station_info_ex
- hdd_llstats_post_radio_stats

Change-Id: I0192c25939707e06679dc266b68915a123a19901
CRs-Fixed: 3773628
2024-04-16 05:52:09 -07:00
Ravindra Konda
269061c1bc Release 5.2.1.89J
Release 5.2.1.89J

Change-Id: I74243959a4afe25d5d2c3140ff5674f814191177
CRs-Fixed: 774533
2024-04-16 01:51:59 -07:00
Chaoli Zhou
971ca5ca55 qcacld-3.0: Fix compile error if TDLS disable
Move definition STA_ENTRY_TDLS_PEER out
of the TDLS feature macro, which will be used
in the common code lim_process_addba_req().
Otherwise it will happen compile error if
FEATURE_WLAN_TDLS disabled.

Change-Id: Idff66bc61b60147bfb9f5c627d2e5a29a28bd268
CRs-Fixed: 3784440
2024-04-16 01:51:58 -07:00
Sheenam Monga
c3cb939a52 qcacld-3.0: Add a limit check for total num powers
Currently there is no validaton for total num powers
which is calculated by adding powers sent by AP till
160 MHz and powers sent in ext element of the TPE IE.
total powers will increase more than allowed Tx powers
if AP sends some invalid value in ext count but array
limit is 15 only. which may become cause of out of
bound if AP sends some invalid value in ext count.

Fix is to add a validation check for total num powers.
If total num powers becaomes greater than allowed powers,
don't parse the ext element.

Change-Id: I1478b8d1dfa3c491a471790a12d0c3b0f62352f7
CRs-Fixed: 3695072
2024-04-16 01:51:51 -07:00
Ravindra Konda
cb7f75266c Release 5.2.1.89I
Release 5.2.1.89I

Change-Id: I678e809855b5909813771d9c3a7142b3a2335a90
CRs-Fixed: 774533
2024-04-15 13:14:25 -07:00
Aasir Rasheed
3a6d1ba2ea qcacld-3.0: Enable mlo_5gl_5gh_mlsr ini
Default config
mlo_5gl_5gh_mlsr=1

Disable 5GL+5GH MLS
mlo_5gl_5gh_mlsr=0

Enable 5GL+5GH MLS
mlo_5gl_5gh_mlsr=1

Change-Id: If8ca98cc78b4b52358565e6a9e1c57d1d42f67b5
CRs-Fixed: 3779614
2024-04-15 13:14:25 -07:00
Ravindra Konda
35f157978d Release 5.2.1.89H
Release 5.2.1.89H

Change-Id: Ic1629dd23ed4b2ba2aa75b91857514d176b11ada
CRs-Fixed: 774533
2024-04-12 12:10:08 -07:00
Rahul Gusain
bd81ab26f1 qcacld-3.0: Use of uninitialized variable
Driver use uninitialized unsafe channel array in the function
"wlansap_select_chan_with_best_bandwidth"

So, to fix this, initialize the unsafe channel array with zero
value.

Change-Id: If63226da00187086f27e716424b29e30137a46b1
CRs-Fixed: 3772902
2024-04-12 12:10:08 -07:00
Ravindra Konda
0691e75be1 Release 5.2.1.89G
Release 5.2.1.89G

Change-Id: I711cf1abce098ad8376bb51adc9d0e70d64f7140
CRs-Fixed: 774533
2024-04-12 06:39:25 -07:00
Rahul Gusain
20f383d502 qcacld-3.0: Fix NULL pointer dereference issue in DP
Pointer 'dp_ctx' returned from call to function 'dp_psoc_get_priv'
may be NULL in below APIs:
1. dp_reset_tcp_delack
2. dp_bus_bandwidth_init
3. dp_bus_bandwidth_deinit
4. dp_bus_bw_compute_timer_try_start
5. dp_bus_bw_compute_timer_try_stop
6. ucfg_dp_set_cmn_dp_handle
7. __dp_bus_bw_compute_timer_start

Fix is to add NULL check for dp_ctx before use.

Change-Id: I5f9ea6ae8ce3bb13631ad9a2dfe25d9c3686a33b
CRs-Fixed: 3767091
2024-04-12 06:39:24 -07:00
Ravindra Konda
8cd50652aa Release 5.2.1.89F
Release 5.2.1.89F

Change-Id: Ia960866ba0682f65e3e2eaa21806e860e0143f83
CRs-Fixed: 774533
2024-04-11 22:21:34 -07:00
Gururaj Pandurangi
ec54ce1398 qcacld-3.0: Add support to update dot11mode based on regdb
Certain countries have dot11mode restrictions such as no
11be mode support, in which case the regdb updates the
phymode and sends to Host.
Add support to use this value to limit and update the
internal dot11mode to allow connection in corresponding
phymode.

Change-Id: If7dd8c261fbe61e96c7749dd1457713502409fa6
CRs-Fixed: 3747811
2024-04-11 22:21:33 -07:00
Ravindra Konda
06f51122cd Release 5.2.1.89E
Release 5.2.1.89E

Change-Id: I852e09c66d8d1d31f475f16797edea913b0e6ed7
CRs-Fixed: 774533
2024-04-11 03:11:49 -07:00