Commit Graph

26958 Commits

Author SHA1 Message Date
Ravindra Konda
1ba2470d35 Release 5.2.1.91J
Release 5.2.1.91J

Change-Id: Ib5edac32ff01eea8e8170853db41c0107fb2b9ec
CRs-Fixed: 774533
2024-06-12 15:30:43 -07:00
Jianmin Zhu
2b69562ed6 qcacld-3.0: Address race between ap stop and system suspend
A race between cfg80211 ap stop and wiphy system suspend can lead
to either DPM WD or serialization VDEV disconnect active command
timeout since scheduler thread gets suspended as part of wiphy
suspend and both cfg80211_disconnect and wiphy suspend/resume acquire
RTNL lock.
To address this race condition avoid ap stop when wiphy
suspend is already completed since scheduler thread gets suspended
as part of wiphy suspend and it can't process ap stop.

Change-Id: I5792b524a27326ca9e020600db2b82e16cc7ea96
CRs-Fixed: 3834305
2024-06-12 15:30:42 -07:00
Krupali Dhanvijay
727a1ebf9a qcacld-3.0: Pack TPE IE manually to avoid beacon malform
As part of 802.11be_D4.1 new param Ext Max Tx power is added
in TPE for 320 MHz and while packing the TPE IE in beacon frame
max tx power will be calculated based on max_tx_pwr_interpret.
And max_tx_pwr_interpret is filled irrespective of channel bandwidth
which leads to TPE IE length more than 9 for legacy case also.

Pack tpe ie manually to consider max_tx_pwr_interpret to calculate
tx power only for 320 MHz and legacy method for less than 320 MHz.

CRs-Fixed: 3750566
Change-Id: Ibacb634c24d08886ccf2848a8dc8e2ecdf6b247a
2024-06-12 15:30:38 -07:00
Ravindra Konda
32db3c49f4 Release 5.2.1.91I
Release 5.2.1.91I

Change-Id: Id47ed14d946b37672cfb458208306d018afb20ba
CRs-Fixed: 774533
2024-06-10 02:10:06 -07:00
Jianmin Zhu
9a5f598d02 qcacld-3.0: Fix SAP start delay issue
When driver mode is changed from other mode to mission mode, regulatory
update will happen, flag is_regulatory_update_in_progress is set.
country_change_work thread is used to clear the flag, if other threads
holding OP lock, the work thread exits without clearing flag
is_regulatory_update_in_progress. SAP start is
blocked until timeout later.

To fix it, if failed to update regulatory, country_change_work thread
clears flag is_regulatory_update_in_progress too.

Change-Id: I97440ec14e5153f44a6a1b6028eb8dd9e75ccb5d
CRs-Fixed: 3831855
2024-06-10 02:10:05 -07:00
Ravindra Konda
9114d54947 Release 5.2.1.91H
Release 5.2.1.91H

Change-Id: I8c0049c4b07bd072bb16c08cacefc6b78f443689
CRs-Fixed: 774533
2024-06-07 00:40:35 -07:00
Ravindra Konda
200d4d359b Release 5.2.1.91G
Release 5.2.1.91G

Change-Id: I4bd4cf0453a76271b98066f27bee67d0fdefc90d
CRs-Fixed: 774533
2024-06-05 03:26:42 -07:00
Liangwei Dong
953d21b3e1 qcacld-3.0: Fix peer mac address invalid when delete peer
wma_self_peer_remove call wma_remove_peer with
del_vdev_req->self_mac_addr as peer mac address.
But wma_remove_peer still uses the pointer of self_mac_addr
to reference it after call wmi_unified_peer_delete_send.
Potentially the peer deleate event wma_peer_delete_handler
may come first and free the del_vdev_req memory.
In that case wma_remove_peer may access invalid memory,
wma_remove_objmgr_peer may fail to release the ref count on peer.

Fix by save del_vdev_req->self_mac_addr to local stack to
use it after send wmi_unified_peer_delete_send.

Change-Id: Idd9d765a13287144917d4774287da8b7ec4ea7ed
CRs-Fixed: 3815077
2024-06-05 03:26:32 -07:00
Ravindra Konda
48a53af6e6 Release 5.2.1.91F
Release 5.2.1.91F

Change-Id: I1ae62cfb6ebbf7552fa629ffa2c8ec026bbd34a4
CRs-Fixed: 774533
2024-06-03 10:20:26 -07:00
Asutosh Mohapatra
e31eec92a7 qcacld-3.0: Change max value for SET_KEEP_ALIVE_INTERVAL_LEGACY command
Change maximum value for SET_KEEP_ALIVE_INTERVAL_LEGACY command
to 255 as per new requirement.

Change-Id: Icfb7ec4700131685eb17feba4bf68e82bb2b6316
CRs-Fixed: 3830310
2024-06-03 10:20:26 -07:00
Ravindra Konda
c240ba5f6b Release 5.2.1.91E
Release 5.2.1.91E

Change-Id: I517987cc5d719bc19ba0549a6a6b54ff449f7fdc
CRs-Fixed: 774533
2024-06-03 02:20:49 -07:00
Krupali Dhanvijay
dd1a568e13 qcacld-3.0: Fix potential OOB read in lim_cu_info_from_rnr_per_link_id
Currently while fetching the cu info from rnr, data length is checked only
for max rnr element which leads to possible out-of-bound reads with
invalid information elements.

Add fix to update the data length checks in the while loop to ensure
sufficient bytes are there.

CRs-Fixed: 3754687
Change-Id: I93f2fbc21fc5adfd848ebb27264cc18f7f553438
2024-06-03 02:20:48 -07:00
Ravindra Konda
b10bc753f3 Release 5.2.1.91D
Release 5.2.1.91D

Change-Id: I1020ac67fabf51a63f2cb1d3af748821d7eac730
CRs-Fixed: 774533
2024-06-02 20:20:02 -07:00
Jianmin Zhu
dcb8aef352 qcacld-3.0: Add go_ignore_non_p2p_probe_req in probe rsp template
Add config to enable go ignore non-p2p probe req feature. If set,
don't need to send probe rsp to STA, hence save power.

Change-Id: I8b4776e4ffd1315bf30e210797b22a673cf2a6c2
CRs-Fixed: 3812361
2024-06-02 20:20:02 -07:00
Ravindra Konda
ab7e52fd17 Release 5.2.1.91C
Release 5.2.1.91C

Change-Id: Id6d20e3c1bd5ecf86a157c4cb2a5ea48f2677908
CRs-Fixed: 774533
2024-05-31 00:49:01 -07:00
Ravindra Konda
498498c0f6 Release 5.2.1.91B
Release 5.2.1.91B

Change-Id: I2ab9a3df216c2e0e430744374488317048d5037b
CRs-Fixed: 774533
2024-05-30 23:53:41 -07:00
Surya Prakash Sivaraj
8cf3cbfcd7 qcacld-3.0: Fix set_mac_address failure
Host driver opens adapter with ML-support having 2 vdevs and
1 MLD self peer. Now, during runtime, the country changes to
a non-11be supported region. This is followed by a set mac
address request from userspace, but since the EHT support
is disabled due to country change, the driver tries to
lookup the self peer using link mac address. But, since the
peer is created using MLD mac, the set mac address fails
leading to issues with DP-peer creation during connection.

To fix this, remove the EHT capability check from the adapter
routine and look up the peers and mac address only based on
the ML adapter configuration.

Change-Id: Iaabdf6c6b59d3b168c719b6dc0afd272a5725912
CRs-Fixed: 3800291
2024-05-30 23:53:40 -07:00
Surya Prakash Sivaraj
3b8ce6fa19 qcacld-3.0: Populate proper channel width for HT40 STA
Currently, get_channel call doesn't consider the secondary
channel to compute the ccfs1. Therefore, in 2.4 GHz
HT40+/HT40- cases, get_channel returns wrong ccfs1.

To fix this, if STA connection is in HE/HT/EHT40 in 2.4 GHz,
then use secondary channel frequency for channel parameter
computation.

Change-Id: I44310192f8dcb5e02003f60b22fdae95d76a1870
CRs-Fixed: 3815126
2024-05-30 23:53:35 -07:00
Ravindra Konda
f26faf733d Release 5.2.1.91A
Release 5.2.1.91A

Change-Id: I258389da8e10cd3a71afed7350d15307de64ceeb
CRs-Fixed: 774533
2024-05-30 10:33:36 -07:00
Prasanna JS
ffdffc8735 qcacld-3.0: Add chipset stats for CSA event
Add chipset stats for CSA event

Change-Id: I933975c7cfe9cab8c75df77878f74ee47baeb75b
CRs-Fixed: 3804997
2024-05-30 10:33:35 -07:00
Ravindra Konda
60968cb9e2 Release 5.2.1.91
Release 5.2.1.91

Change-Id: I36f0fc12b5242080d4574784f868aa1eb9c38c5f
CRs-Fixed: 774533
2024-05-30 09:24:35 -07:00
Prasanna JS
59ec37bb05 qcacld-3.0: Fix missing time_tick val of TDLS chipset stats evt
Fix missing time_tick val of TDLS chipset stats events

Change-Id: Ie0050638979249936aade6d49aba86fd2c5efaf5
CRs-Fixed: 3804998
2024-05-30 09:24:29 -07:00
Prasanna JS
5e55c17777 qcacld-3.0: Add kernel ver check for pld_pcie_register_qmi_ind
Add kernel version check for pld_pcie_register_qmi_ind func

Change-Id: I2b12c2c614a16576578780a90aec244d4868f4ca
CRs-Fixed: 3804973
2024-05-30 09:24:18 -07:00
Ravindra Konda
e38aededab Release 5.2.1.90Z
Release 5.2.1.90Z

Change-Id: Id49627d9456665726de637dc60123b4e0182195c
CRs-Fixed: 774533
2024-05-29 10:29:43 -07:00
Ravindra Konda
ddd31e98e1 Release 5.2.1.90Y
Release 5.2.1.90Y

Change-Id: I3df06bfd654de71ca5a30194c3115fa11f15190a
CRs-Fixed: 774533
2024-05-29 04:22:41 -07:00
Abhinav Kumar
99708500c0 qcacld-3.0: Update correct chan info to kernel
Scenario here is:
1. AP configured in 320 MHz
2. Set country code = KR in DUT, It means DUT does not
   support connection in 320 MHz.
3. Trigger connection with AP, while processing driver
   founds, country code is KR, so downgraded connected
   channel with to next max supported channel width as
   per regulatory rule (which is 160 MHz here) and
   successfully associated with AP in 160 MHz.
4. After connection Host receives “get_channel” request
   from kernel.
5. Host gets currently connected BSSID and fetch
   corresponding channel information from scan cache.
6. As scan cache gets updated via beacon/probe response
   from AP and here advertise beacon/probe response in
   320 MHz. This results value of channel width for
   connected BSSID is 320 MHz and same host fill in
   get_channel response.
7. By this time driver connected in 160 MHz and
   connected channel width indicated to kernel is 320 MHz.
   Due to mismatch in channel width, kernel triggered
   disconnection.

Fix is to update connected channel width in response to
“get_channel” request.

Change-Id: I7c4a262d337f9deb8cb4436cae537d0069a98de1
CRs-Fixed: 3810073
2024-05-29 04:22:40 -07:00
Ravindra Konda
b6d1057c2a Release 5.2.1.90X
Release 5.2.1.90X

Change-Id: I268a2e711094d48a1be38dee39efed1b4c4039ba
CRs-Fixed: 774533
2024-05-28 01:23:01 -07:00
Ravindra Konda
1b9e39c748 Release 5.2.1.90W
Release 5.2.1.90W

Change-Id: I7479d850c5d33d52e6dd8e43fb2c6ebf741eabd6
CRs-Fixed: 774533
2024-05-28 00:20:26 -07:00
Rahul Gusain
bd3752ec96 qcacld-3.0: Add MLD addr check for SAP Deauth/Disassoc
Currently, driver check peer mac address to filter out duplicate
command in serialization queue. This peer mac address will be
peer MLD address from North bound and link address from the south
bound. For multi-link SAP, if disassociation or deauthentication
request received for two links of same STA (MLD address is same but
link address is different), then driver queue disassociation or
deauthentication command in the serialization for both links.
This will lead to duplicate disassociation or DE authentication commands
in the serialization for same STA.

So, to fix this, add check for MLD address and link address in the
serialization filter.

Change-Id: I2619e3009b28ceba6af4383e36ae40af82020b5f
CRs-Fixed: 3790148
2024-05-28 00:20:26 -07:00
Ravindra Konda
dffce2a619 Release 5.2.1.90V
Release 5.2.1.90V

Change-Id: Ief119f6e69c7233f07a60b0c0bc32f64b42246ce
CRs-Fixed: 774533
2024-05-26 10:19:27 -07:00
Jianmin Zhu
318a43a7b3 qcacld-3.0: Fix 11ax SAP stop issue after radar received
For 11ax SAP, when received radar, sap_is_chan_change_needed for 11BE
return false sometimes, target freq and bw is same as current, after
CSA, vdev restart failed in lim_process_sme_channel_change_request,
vdev becomes hung in SUSPEND-SP-CSA_RESTART. After 1 min, Kernel trigger
disconnect.

To fix it, if SAP isn't 11BE mode, sap_is_chan_change_needed return
true directly as legacy code.

Change-Id: I6db94c3117890d0ee924975af8b3c9efd9fb08ba
CRs-Fixed: 3789066
2024-05-26 10:19:27 -07:00
Ravindra Konda
5bdbaca521 Release 5.2.1.90U
Release 5.2.1.90U

Change-Id: Ic80301b4fa0f9ee096b222961ca932ba28baad97
CRs-Fixed: 774533
2024-05-26 06:19:37 -07:00
Asutosh Mohapatra
b927e5af83 qcacld-3.0: Add GET_KEEP_ALIVE_INTERVAL command support
Add support to handle GET_KEEP_ALIVE_INETRVAL command.
If received command in connected state return keep alive
period configured to firmware but if command received in
disconnected state, if user space has set keep alive
period then return the user space configured value or
else return INI configured value.

Change-Id: I5d386ecd141531795b471198bd70afa20210bdc5
CRs-Fixed: 3818096
2024-05-26 06:19:36 -07:00
Ravindra Konda
a3def36f0b Release 5.2.1.90T
Release 5.2.1.90T

Change-Id: Ifc8c56b4103cda076c5dadcedcadc24f86b280b2
CRs-Fixed: 774533
2024-05-25 00:29:10 -07:00
Jianmin Zhu
aae35f82a8 qcacld-3.0: Fix no 320M when connect 2 + 6 MLO AP
When connect 2 + 6 GHz MLO AP, 2 GHz is assoc link, when populate per
sta profile of 6 GHz in assoc req, use BW of current 2 GHz session
wrongly, so 320M is disabled wrongly in EHT cap.

To fix it, when populate per sta profile for assoc req, pass
pe_session as NULL since partner link pe session isn't created at that
time, don't clear 320M cap for 6 GHz link.

When config EPCS, update eht cap at same time.

Change-Id: I7422f0353cc087a24575f9be1d5b30a032cc7b8e
CRs-Fixed: 3821390
2024-05-25 00:29:09 -07:00
Ravindra Konda
5f25ad55af Release 5.2.1.90S
Release 5.2.1.90S

Change-Id: I57e94cae3b39e195ca8540591319b847d2936e0c
CRs-Fixed: 774533
2024-05-24 06:21:01 -07:00
Ravindra Konda
1f9f716076 Release 5.2.1.90R
Release 5.2.1.90R

Change-Id: I4e75cb0fcdcaf89ac38d01364cad2f0437f875ce
CRs-Fixed: 774533
2024-05-22 23:21:04 -07:00
Ravindra Konda
e39d3920c1 Release 5.2.1.90Q
Release 5.2.1.90Q

Change-Id: I4f40a032121a221b3686e6f5e688858f7320fec0
CRs-Fixed: 774533
2024-05-22 22:19:45 -07:00
Ravindra Konda
3317823c27 Release 5.2.1.90P
Release 5.2.1.90P

Change-Id: If9fba63585764c21eb0905b2f9aa2832f6589144
CRs-Fixed: 774533
2024-05-21 22:51:12 -07:00
Deeksha Gupta
70cb8d3540 qcacld-3.0: Drop P2P Negotiation req on non-Social 2.4 GHz channel
P2P GO negotiation request is supposed to come only on
DUT listen channel.
But there may be chance of leakage on 2.4 GHz because
the ADC sampling rate is 60 MHz, DUT would receive the
attenuated (Rx BBF filter) signal 60 MHz away. So, the
req may get received in non-social channel.

fix is, add new logic to drop the P2P Go Negotiation
request if it is received on non-social channel.

Change-Id: I12ddddd47cd9b494f618b1ba9b383118221ff9d2
CRs-Fixed: 3808813
2024-05-21 22:51:12 -07:00
Ravindra Konda
22b1413787 Release 5.2.1.90O
Release 5.2.1.90O

Change-Id: I903d0b3bbe0d92bd25abd46e66a3c761aaa11816
CRs-Fixed: 774533
2024-05-21 09:30:00 -07:00
Ananya Gupta
25b2dea7fd qcacld-3.0: Issue disconnect for STA if new interface is Mon intf
Currently, when Rx monitor mode interface is coming up, STA is
not disconnected causing RXDMA ring to be used as both error ring
and destination ring. This is causing backpressure in RXDMA ring.
To fix this, issue disconnect for STA when Rx monitor mode is
being added.

Change-Id: I95e73edd80472a8aae9092ebdbce5e514b1cd531
CRs-Fixed: 3799325
2024-05-21 09:29:59 -07:00
Ravindra Konda
d05999febd Release 5.2.1.90N
Release 5.2.1.90N

Change-Id: Ib3a28c6e43c72f5980dddd4496e2f727aecdddda
CRs-Fixed: 774533
2024-05-21 06:12:41 -07:00
Liangwei Dong
e0e1d4b396 qcacld-3.0: Allow pre-cac on 5 GHz with 160 MHz bandwidth
If pre-cac channel from userspace is Non DFS channel but
the pre-cac bandwidth is set to 160 MHz which cover DFS channel
range, we still allow the request instead of reject it.

Change-Id: I9a0778855bf6659fab20ae0cc82a17d652b0d282
CRs-Fixed: 3748905
2024-05-21 06:12:35 -07:00
Ravindra Konda
9497e2fec8 Release 5.2.1.90M
Release 5.2.1.90M

Change-Id: I1197b4306dde234975a46b88ca1e6b5812dde0ca
CRs-Fixed: 774533
2024-05-21 00:53:31 -07:00
Lin Bai
ec1ac7d8cf qcacld-3.0: Sanitize extn_eids before dereference
Sanitize extn_eids before de-reference.

Change-Id: I08a13fe785ebbf66f7ec3394d7aa72f685438619
CRs-Fixed: 3667854
2024-05-21 00:53:30 -07:00
Ravindra Konda
8c521e2828 Release 5.2.1.90L
Release 5.2.1.90L

Change-Id: I583f559407ddd25d0ca31b63b6597bf6d017ec2b
CRs-Fixed: 774533
2024-05-20 00:32:59 -07:00
Ravindra Konda
39c9744f9d Release 5.2.1.90K
Release 5.2.1.90K

Change-Id: I334ef84dc7b89b6911427b1dbe37d688c68795c5
CRs-Fixed: 774533
2024-05-19 22:59:42 -07:00
Jianmin Zhu
d8a41ba33c qcacld-3.0: Fix vdev WLAN_LEGACY_WMA_ID ref leak
If dyn_modulated_dtim enabled and activated, vdev WLAN_LEGACY_WMA_ID ref
leak may happen in wma_add_sta_req_sta_mode.

To fix it, release vdev ref in all cases in wma_add_sta_req_sta_mode.

Change-Id: Ib1d8262760fdc644a382c1405cdfda8498703440
CRs-Fixed: 3716752
2024-05-19 22:59:41 -07:00
Ravindra Konda
f61613e27f Release 5.2.1.90J
Release 5.2.1.90J

Change-Id: Ieb8b6c93074837d96f908c5641a14c63ff516633
CRs-Fixed: 774533
2024-05-19 08:26:13 -07:00