Commit Graph

31079 Commits

Author SHA1 Message Date
Vinod Kumar Pirla
b052d44d04 qcacld-3.0: Enable peer trasition history by default
Enable peer transition history by default and remove
the compile time flag.

Change-Id: Idcce6f5e418d4e4571caaadce07d787c0deaecd8
CRs-Fixed: 3774914
2024-05-20 00:13:22 -07:00
Linux Build Service Account
79c1de95c4 Merge 31038a49b0 on remote branch
Change-Id: Idc528ceed50f64ed54b7c5d54ca6de0f4070df17
2024-04-30 07:08:11 -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
Linux Build Service Account
3253a4bb94 Merge "qcacld-3.0: Add API to save and retrieve num roamed links" into wlan-cld3.driver.lnx.2.0.r112-rel 2024-04-15 03:03:53 -07:00
Linux Build Service Account
f6e524681c Merge "qcacld-3.0: Add debug log to show vdev states" into wlan-cld3.driver.lnx.2.0.r112-rel 2024-04-15 03:03:50 -07:00
Linux Build Service Account
ba6f9a626c Merge "qcacld-3.0: Enable peer transition history" into wlan-cld3.driver.lnx.2.0.r112-rel 2024-04-15 03:03:46 -07:00
Vinod Kumar Pirla
31ca035f37 qcacld-3.0: Store cdp peer setup/delete history
Any MLD peer setup call to cdp shall happen only after
clearing the existing MLD peer otherwise the MLD peer's
VDEV reference is lost on recreation. This leads to
VDEV reference leak.

Add history to track the peer setup and destroy sequence,
to understand the CP peer create/destroy sequence when
any such leak happens.

Change-Id: If338bc26e086490a3cc2bb4de32efa6a762ee0e6
CRs-Fixed: 3736548
(cherry picked from commit 1f2aba85c0)
2024-04-15 02:37:38 -07:00
Vinod Kumar Pirla
03a8bed136 qcacld-3.0: Add API to save and retrieve num roamed links
Add new APIs to save number of links to which FW roamed
and add new API to retrieve this saved info.

Change-Id: Idfd8727855bd5da97a3808c78e89a505ef06c249
CRs-Fixed: 3755754
(cherry picked from commit 3348a67e47)
2024-04-15 02:32:51 -07:00
Yu Tian
787f396cbb qcacld-3.0: Add debug log to show vdev states
Add debug log to show vdev status during vdev deleting

Change-Id: I17ae2504e482177c30c4bee212048f97dd5bbaa5
CRs-Fixed: 3762585
(cherry picked from commit 4adcb971535001eca024c9557fe96d20d5c4a75b)
2024-04-15 02:23:19 -07:00
Vinod Kumar Pirla
a2406ed897 qcacld-3.0: Enable peer transition history
Enable flag to save peer transition history in host.

Change-Id: I28110748aa42dfee8f29b02764647367d3c0cd8d
CRs-Fixed: 3755803
(cherry picked from commit 8b22fbb1a3)
2024-04-15 02:20:55 -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
Linux Build Service Account
d9b066ad26 Merge 1889259fc4 on remote branch
Change-Id: I3159113e78e98b22b613b410d78b5cd7e3f039df
2024-04-11 09:18:18 -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
Asutosh Mohapatra
3d820ee297 qcacld-3.0: Fix NULL pointer dereference issue
In cm_is_peer_preset_on_other_sta, wma_context is
fetched from gp_cds_context and used without any
validation checks. This may lead in NULL pointer
dereference.

To address this issue add null check before
accessing.

Change-Id: I78656303855efb2369afcf47d1aabe3b916498c4
CRs-Fixed: 3712317
2024-04-11 03:11:49 -07:00
Ravindra Konda
0545a12a42 Release 5.2.1.89D
Release 5.2.1.89D

Change-Id: Ib30ed4e7a6bfb827afb8c16f3580ccc6fc69bbd9
CRs-Fixed: 774533
2024-04-11 01:19:22 -07:00
Yu Tian
8f7cd16ea9 qcacld-3.0: Add debug log to show vdev states
Add debug log to show vdev status during vdev deleting

Change-Id: I17ae2504e482177c30c4bee212048f97dd5bbaa5
CRs-Fixed: 3762585
2024-04-11 01:19:22 -07:00
Vinod Kumar Pirla
178527a019 qcacld-3.0: Disable 11be if downgraded via the vendor command
To configure vendor requested phy_mode on all interfaces,
iterate all STA adapters which are in disconnect state to
configure the new VDEV phy_mode.

Change-Id: Ibd9d8959609c1ab07caa26cb8c9227c56e8fd234
CRs-Fixed: 3671847
2024-04-11 01:19:14 -07:00
Surya Prakash Sivaraj
0530c3b2a3 qcacld-3.0: Update proper channel width during roam
Currently, the driver doesn't consider the force 20 MHz in
2.4 GHz configuration while calculating the channel width
for the session during roam. Therefore, fw and host will be
out-of-sync wrt the channel width of the connection.

Consider the force override 20 MHz in 2.4 GHz config which is
based on the ht40 cap of connect request for the channel width
computation.

Change-Id: Id616dd1ceefd5b2c2130be1b88067a92121e0fa1
CRs-Fixed: 3768406
2024-04-11 01:19:05 -07:00
Ravindra Konda
ac043815d9 Release 5.2.1.89C
Release 5.2.1.89C

Change-Id: I41614fccb7f9aa56e88f58ee0eba7d865ced9271
CRs-Fixed: 774533
2024-04-08 09:11:07 -07:00
Rakesh Pillai
7ae89179e1 qcacld-3.0: Replace is_dp_link_valid with dp_link null check
As a part of vdev destroy is_dp_link_valid can return failure,
since the interface maybe down. This will lead to memory leak
since the dp_link memory won't be freed.

Fix this by replacing is_dp_link_valid with dp_link null check.

Change-Id: Ief03c1e42d62b4b89f1414f0c5642e592ee39fa2
CRs-Fixed: 3750214
2024-04-08 09:11:06 -07:00
Rakesh Pillai
52cc76d329 qcacld-3.0: Add magic number in wlan_dp_link
Add magic number field in wlan_dp_link which is to
be used to identify the validity of dp_link.

Add logs in the dp_link free handler/callback.

Change-Id: I76e3149e1d72a9f5e69478734b6dbab5b4d8d922
CRs-Fixed: 3744331
2024-04-08 09:10:55 -07:00
Ravindra Konda
ba56b46e65 Release 5.2.1.89B
Release 5.2.1.89B

Change-Id: I784b143b56e64b3b8fda5ed1096861868d94bd21
CRs-Fixed: 774533
2024-04-08 05:16:16 -07:00
Srinivas Dasari
6aa9cdf391 qcacld-3.0: Don't check for association status to flush mc list
Kernel configures mc address list once association/NDP connection
happens. Host driver flushes the existing list whenever a new list
is received from kernel. Also, it's expected to cleanup the final
list as part of disconnection/NDI cleanup.
Currently, host expects the vdev/NDI state to be ASSOCIATED
in-order to flush the final configured list. But the STA vdev/NDI
state is already moved to DISCONNECTED by the time host tries to
flush the list from firmware. So, host doesn't send flush command
to firmware and it just flushes internal list from driver adapter.

This results in leaving the final configured entries uncleaned
in firmware and the mc list exhausts in few such iterations as the
firmware supports limited size(32).

Don't check for vdev/NDI state and always issue flush command to
firmware as part of disconnect to avoid this.

Change-Id: I8e070f40976a147959783b3c44f1e9aa24563d4b
CRs-Fixed: 3776542
2024-04-08 05:16:15 -07:00
Ravindra Konda
181522c877 Release 5.2.1.89A
Release 5.2.1.89A

Change-Id: Ic3a0b3efe1b080749a03eefb8f4f1f10504b3375
CRs-Fixed: 774533
2024-04-07 06:51:29 -07:00
Pragaspathi Thilagaraj
fbda9a4e96 qcacld-3.0: Reject TDLS when ML STA links are on MCC
When ML STA links are on MCC, TDLS action frames try to
set the link mode to force active. To avoid this
reject the TDLS mgmt request when ML STA links are on MCC.

Also enhance few debug prints for TDLS.

CRs-Fixed: 3717831
Change-Id: I69a942d80f5fac0ff25cfb47229e5dde6a693f97
2024-04-07 06:51:28 -07:00
Pragaspathi Thilagaraj
6da9ecbb19 qcacld-3.0: Update data path default link after roaming
When roaming happens from 3 Link AP to Legacy or 1 link AP after
a link switch, and the assoc vdev when connected to 3 Link AP is
disconnected during roaming, it causes the DP default link mapping
not to be updated. This resutls in data stall and ultimately
NUD failure is triggered resulting in disconnection.

After roaming to Multilink AP, then update the DP with
the new deflink as the assoc vdev.

CRs-Fixed: 3681911
Change-Id: I114a9858c3cbe58ef59743ad251a2b3af2543d3d
2024-04-07 06:51:19 -07:00
Ravindra Konda
5f2b5beef9 Release 5.2.1.89
Release 5.2.1.89

Change-Id: I9a9c61c8436d6b3c875fb916d992b6490350acc4
CRs-Fixed: 774533
2024-04-05 08:08:45 -07:00
Vijay Raj
0ebb4a5afa qcacld-3.0: Extract VSIE before logging MGMT frames
In the api wlan_connectivity_mgmt_event(), the VSIE is
extracted after logging the Deauth/Disassoc frames
due to which VSIE is not logged as part of
Deauth/Disassoc frame logging.

Modify the api wlan_connectivity_mgmt_event() to extract
VSIE before logging the Deauth/Disassoc frames

Change-Id: Ia5ac504f6e17d0464a6ce0d442ae7eec658b2445
CRs-Fixed: 3761695
2024-04-05 08:08:44 -07:00
Surya Prakash Sivaraj
b28724a744 qcacld-3.0: Add bound check for vdev id in bs req
The vdev id in bs_req cannot exceed the WLAN_UMAC_PSOC_MAX_VDEVS
count.

Add the sanity check before accessing the ref_count array.

Change-Id: I31743b4be75944bb8947eac7537172d56614637d
CRs-Fixed: 3759720
2024-04-05 08:08:38 -07:00