Commit Graph

27472 Commits

Author SHA1 Message Date
Yeshwanth Sriram Guntuka
c589e67a42 qcacld-3.0: Add QMI files for WFDS service
Add initial version of QMI files that are used for
communication between WLAN host driver on APSS and
WiFi driver on LPASS.

Change-Id: If7352490d73457479e85958b90066f9c397bb310
CRs-Fixed: 3328378
2022-11-23 00:30:07 -08:00
Yeshwanth Sriram Guntuka
d2cc52d5ae qcacld-3.0: Add support for QMI component
Add support for QMI component.

Change-Id: I63735800ea1166e875ff12bfd22df3c3d9c6312f
CRs-Fixed: 3337043
2022-11-23 00:30:01 -08:00
bings
ec079fcb49 qcacld-3.0: Fix dead loop when access per CPU TX/RX stats
NR_CPUS may be configured as 512 by CONFIG_NR_CPUS. Then uint8_t
is not a proper variable type to do for operation.

Change uint8_t to unsigned int to avoid dead loop.

Change-Id: Ie159bcf09e190c635c1105ccd551fb3c601cc5a2
CRs-Fixed: 3338268
2022-11-23 00:29:56 -08:00
Madan Koyyalamudi
30326ba6f2 Release 5.2.1.46D
Release 5.2.1.46D

Change-Id: Iea509697896f5d3ec0a12afb35e4ad4cbee74d5d
CRs-Fixed: 774533
2022-11-22 15:50:36 -08:00
Abhishek Singh
eee0c37e9d qcacld-3.0: Limit unicast probe req during join timeout in MCC
Currently probe request is sent every 200ms during join timeout
this can lead to 16+ probe req, send during join time.

Change logic to send max 5 probe req during join time,
if candidate freq can lead to MCC concurrency scenario.

Change-Id: I7956771e2cf6724754f59c6db5b07fb45426ae41
CRs-Fixed: 3338329
2022-11-22 15:50:35 -08:00
Madan Koyyalamudi
6b3dee0b65 Release 5.2.1.46C
Release 5.2.1.46C

Change-Id: Ib43f5d58a8954db24f8e3e370f7fbaf4fd75c699
CRs-Fixed: 774533
2022-11-22 07:49:27 -08:00
Chaoli Zhou
2c3110a123 qcacld-3.0: Fix no previous prototype for 'dp_set_rps'
Fix no prototype for 'dp_set_rps' if QCA_CONFIG_RPS
not defined.

Change-Id: I368ef21c29a2cd37073b193ba3102db466b45aff
CRs-Fixed: 3339014
2022-11-22 07:49:26 -08:00
Madan Koyyalamudi
860019e4a6 Release 5.2.1.46B
Release 5.2.1.46B

Change-Id: Ibbc9ab4fb4d8c9b31919b88a8753185797a3a101
CRs-Fixed: 774533
2022-11-22 04:12:44 -08:00
Vinod Kumar Myadam
dc14959195 qcacld-3.0: Fix NULL pointer dereference
In lim_process_pasn_delete_all_peers, wma handler and vdev pointer
are dereferencing without check, may be points to NULL.

Add check to avoid NULL dereferencing.

Change-Id: I9bd047051d05ccd9709e228c37003079ec7e2732
CRs-Fixed: 3327338
2022-11-22 04:12:43 -08:00
Madan Koyyalamudi
f67249019b Release 5.2.1.46A
Release 5.2.1.46A

Change-Id: I6f7aee5ae009f38e965624f8b9e183360c9bbb3c
CRs-Fixed: 774533
2022-11-22 00:40:49 -08:00
Rachit Kankane
f1b89355e0 qcacld-3.0: Add NULL pointer check
Check for NULL pointer when accessing STA node from Hash Table
struct sDphHashNode.

Change-Id: Icec382526f0397c3ccb048120967aee0a8285d7e
CRs-Fixed: 3337661
2022-11-22 00:40:49 -08:00
Madan Koyyalamudi
347d544035 Release 5.2.1.46
Release 5.2.1.46

Change-Id: Iceb6d46e707bfc5c0fb3d008fb9e1bc29234ee9e
CRs-Fixed: 774533
2022-11-20 22:03:02 -08:00
Karthik Kantamneni
f298317281 qcacld-3.0: Display Runtime PM stats periodically
Display Runtime PM last busy stats periodically, this helps
to debug runtimepm issues even without dump availability.

Change-Id: Iae9b70ed49b94a4e098d87a0a00e539178f3c35d
CRs-Fixed: 3337901
2022-11-20 22:03:01 -08:00
Ashish Kumar Dhanotiya
c169934c65 qcacld-3.0: Update feature set version
With the recent change in feature set information related
to 11kv version info, host driver needs to update the
feature set version info as well.
With this change, update the feature set version info.

Change-Id: I50a4df5769cd702eda5d1bc69ac9aad07d87269a
CRs-Fixed: 3334882
2022-11-20 22:02:56 -08:00
Chaoli Zhou
58343df0e4 qcacld-3.0: Fix compile error for CFR
Fix two compile issues:
1. wlan_hdd_transport_mode_cfg defined not used if
enhance CFR not enabled.
2. incompatible types for hdd_objmgr_get_vdev_by_user
function.

Change-Id: If52fe33f9181f6e66d0c1af3c02a71a9df175281
CRs-Fixed: 3338995
2022-11-20 22:02:51 -08:00
Madan Koyyalamudi
8d9d872f28 Release 5.2.1.45Z
Release 5.2.1.45Z

Change-Id: Ia8414598ed875e50078d6121388a7ea6d3be732b
CRs-Fixed: 774533
2022-11-19 07:43:53 -08:00
Vinod Kumar Pirla
4f491c277c qcacld-3.0: Increase the max MLD dev context for kiwi_v2
For kiwi_v2 target increase the value of max MLD dev contexts
to three. Define WLAN_UMAC_MLO_MAX_DEV with the new value in
kiwi_v2 defconfig file.

Change-Id: If9f86cbf5c98f69b9f56b0e4226fcf26f2b663c3
CRs-Fixed: 3337651
2022-11-19 07:43:53 -08:00
Will Huang
58ce19c7e0 qcacld-3.0: Add static cfg items and APIs for AFC feature
Add 4 static cfg items for AFC feature:
CFG_AFC_REG_NO_ACTION, CFG_6GHZ_SP_POWER_MODE_SUPP,
CFG_AFC_TIMER_CHECK_DIS, CFG_AFC_REQ_ID_CHECK_DIS.

Add APIs to pass these settings to psoc private of regulatory
component.

Change-Id: I61114fb7bf7d84f939265629bde78813b6295e39
CRs-Fixed: 3153987
2022-11-19 07:43:48 -08:00
Madan Koyyalamudi
c648b4bd1d Release 5.2.1.45Y
Release 5.2.1.45Y

Change-Id: I3e39432d7403ae5eda07b173a40dbaabfa03abee
CRs-Fixed: 774533
2022-11-19 05:47:45 -08:00
Amruta Kulkarni
ad7dfc2ab6 qcacld-3.0: Add cfg for t2lm negotiation supported
Changes to add cfg item for t2lm negotiation support

Change-Id: I94992f5bc8142325434223c59ebbcedd86aa0ff9
CRs-Fixed: 3236628
2022-11-19 05:47:45 -08:00
Madan Koyyalamudi
1ef96b5fb6 Release 5.2.1.45X
Release 5.2.1.45X

Change-Id: Id3fa5ae1cce2f6806958c651ffd184f08fb17cdf
CRs-Fixed: 774533
2022-11-19 01:03:11 -08:00
Jeff Johnson
744f70e8db qcacld-3.0: Fix action_oui documentation
The kernel-doc script identified several documentation issues in
the action_oui component, so fix them.

Change-Id: I7fb63da7fbd7911b11e954bca824c2648e138679
CRs-Fixed: 3340062
2022-11-19 01:03:10 -08:00
Jeff Johnson
08bc9bb30a qcacld-3.0: Fix cp_stats documentation
The kernel-doc script identified several documentation issues in
the cp_stats component, so fix them.

Change-Id: I33e42894365048b75a23f1a2070de72a975d456f
CRs-Fixed: 3340094
2022-11-19 01:03:05 -08:00
Madan Koyyalamudi
1e3af6df38 Release 5.2.1.45W
Release 5.2.1.45W

Change-Id: I790fad908bf2aff30005f7b310fc36d7968047a8
CRs-Fixed: 774533
2022-11-18 21:10:27 -08:00
Jeff Johnson
83c05cd81c qcacld-3.0: Fix wlan_hdd_driver_ops.c documentation
The kernel-doc script identified multiple documentation issues in
wlan_hdd_driver_ops.c, so fix them.

Change-Id: I5e83398af5a8f86d676bab8b6ba67f9af52e9c7d
CRs-Fixed: 3340040
2022-11-18 21:10:26 -08:00
Sheenam Monga
528c16e5fa qcacld-3.0: Don't allow SR command for NON-SR AP
Don't allow SR (Spatial Reuse) command for NON-SR AP
i.e if NON-SRG disallowed and SRG info is not advertised
by connected AP.

Change-Id: Ida0ff3945adf1256f45f72af97a724bd0b91a96a
CRs-Fixed: 3336945
2022-11-18 21:10:22 -08:00
Madan Koyyalamudi
a07f6ca2d1 Release 5.2.1.45V
Release 5.2.1.45V

Change-Id: I29b2cf463b4319c61d17ad483994c3c50ce240a7
CRs-Fixed: 774533
2022-11-18 17:25:23 -08:00
Rahul Gusain
d940f57f3e qcacld-3.0: Avoid sending RSNXE to legacy APs for WPA mode also
Userspace may send RSNXE also in connect request irrespective
of the connecting AP capabilities to allow the driver to chose
best candidate based on score. But the chosen candidate may not
support the RSNXE feature and may not advertise RSNXE in
beacon/probe response. Station is not supposed to include the
RSNX IE in assoc request in such cases as legacy APs may misbehave
due to the new IE. It's observed that few legacy APs which don't
support the RSNXE reject the connection at EAPOL stage.

AKM values are same for WPA and WPA2 mode, but WPA versions are
different. So, currently, host driver strips the RSNXE for WPA2
mode only as it checks for valid RSN profile before strip the RSN
which is valid for WPA2 and WAP3 only.

So, to strip the RSNXE for WPA mode also, avoid the RSN profile
check.

Change-Id: I5055ef4c03e390b9c453fe81a77365bb4ef34e9f
CRs-Fixed: 3336640
2022-11-18 17:25:23 -08:00
abhinav kumar
c8f63c006b qcacld-3.0: Dont issue disconnect on STA while start/stop SAP
Currently, our host logic is "If an STA connection is in
progress in another adapter, driver disconnects the STA and
completes the SAP operation (start BSS or stop BSS)". This
is due to below reasons:

In the old kernel version and for STA+SAP concurrency support
from GUI, the first STA connection gets triggered and while it
is in progress, SAP start/stop also comes up. Once STA association
is successful, the STA connect event is sent to the kernel which
gets queued in the kernel workqueue and the supplicant won't
process M1 received from AP and send M2 until this NL80211_CONNECT
event is received. Workqueue is not scheduled as RTNL lock is
already taken by hostapd thread which has issued start_bss/stop_bss
command to the driver. The driver cannot complete start_bss/stop_bss
as the pending command at the head of the SME command pending list
is hw_mode_update for STA session which cannot be processed as SME
is in WAITforKey state for STA interface. The start_bss/stop_bss
command for SAP interface is queued behind the hw_mode_update
command and so it cannot be processed until hw_mode_update command
is processed. This is causing a deadlock so disconnect the STA
interface first if a connection or key exchange is in progress and
then start or stop the SAP interface.

As part of connection mgr changes, removed dependency on WAITforKey
state in serialization, and h/w mode also is not sent immediately
after the STA connection, So no possibility of the above deadlock
scenario.

The fix is to avoid disconnection on the STA interface during the
start or stop of the SAP interface.

Change-Id: Iad3ada091e505007cc6901a461be3b88fc051f4e
CRs-Fixed: 3339784
2022-11-18 17:25:17 -08:00
Madan Koyyalamudi
809d07cc17 Release 5.2.1.45U
Release 5.2.1.45U

Change-Id: Ibc3e4a2321c0453a8309be551be53ed4d5f34099
CRs-Fixed: 774533
2022-11-18 11:52:08 -08:00
Rahul Gusain
5c9d7e5c13 qcacld-3.0: Reconfig OBSS periodicity upon NDP create/delete
When STA is connected to an 11ax AP, driver issues a scan request(OBSS)
to firmware with certain periodicity(it's 120 seconds currently).
Firmware shall do a scan for every 120 seconds irrespective of the
device activity. This causes data glitches throughout the scan duration
when data is going on a concurrent interface.
It's observed that the OBSS scan interrupts NDP data traffic from NDP
applications and causes glitches in file sharing/music sharing use cases.

Configure the OBSS scan periodicity with a larger value(1200 seconds) to
mitigate the glitches when first NDP forms. Reconfigure the original
scan duration(120 seconds) once all NDPs tear down.

Change-Id: Ie0c8228ff3b26f8d9a091909c710928e7ae2a787
CRs-Fixed: 3323193
2022-11-18 11:52:08 -08:00
Vijay Patil
6ba5b28b6c qcacld-3.0: Possible memleak at csr_roam_info->ft_pending_assoc_ind
Memory is allocated for ft_pending_assoc_ind in
csr_roam_chk_lnk_assoc_ind() for SAP/GO mode when AKM is
FT_RSN_PSK. This gets saved in ft_pending_assoc_ind_list
when ASSOC_IND is sent to HDD and the same would be used
later by ft_update/ft_cleanup APIs in success scenarios.

But if it fails to add the node for ft_pending_assoc_ind
in the list due to some reason (e.g. csr_roam_call_callback()
returns a failure), the buffer is not freed at all and results
in a memleak.

Free the buffer if csr_roam_call_callback() returns a failure.

Change-Id: Id8998f4905ac58fdc2ab101c9b1ea0870c31f44c
CRs-Fixed: 3339084
2022-11-18 11:52:03 -08:00
Madan Koyyalamudi
0b7f3908c8 Release 5.2.1.45T
Release 5.2.1.45T

Change-Id: I4f7879c37d81e033953f9b9ecd06fd28890a97e7
CRs-Fixed: 774533
2022-11-18 00:31:20 -08:00
Arun Kumar Khandavalli
df883e7c9f qcacld-3.0: reset the iface_device_opened flag post vdev destroy
Currently before sending a scan done completion is sent to the kernel
the driver checks its internal iface_device_opened flag to make sure
only during the iff_up the driver sends the scan done to userspace.

Whenever a scan is ongoing & interface down is received in the other
context driver aborts the current scan and sends the scan done to
the userspace, This scan is not sent to the userspace because
driver internal flag iface_device_opened is reset 1st resulting in
dropping of the scan request which subsequently fails all the following
scan requests.

Hence reset the driver internal flag once all scan done is notified
and vdev is destroyed.

Change-Id: I764dd0521a25cc8b25c4b38b50ae2ed75b3b1860
CRs-Fixed: 3338151
2022-11-18 00:31:20 -08:00
chunquan
dcbebde9e4 qcacld-3.0: Optimize wlan memory for kuno
Disable CFR/EPPING/NAN/more_tx_desc/OEM DATA and
RSSI_MONITOR/APF/P2P_DEBUG/P2P_LISTEN/SPECTAL_SCAN

Update wlan_hdd_debugfs_offload.c for APF compile error.

Change-Id: I8ede890b0b821cec5f03f2ede535f34d8883638d
CRs-Fixed: 3332742
2022-11-18 00:31:15 -08:00
Vinod Kumar Pirla
c682062e13 qcacld-3.0: Associate in 11ax mode on non MLO vdev
In 11be capable configuration, for connection attempt
to MLO AP from non-MLO type vdev, downgrade to 11ax
mode association for that vdev.

User can still connect in ML mode from MLO type vdev.

Change-Id: I1e7cf940a778a20f2f4d5d24283ffb6aae52781b
CRs-Fixed: 3312163
2022-11-18 00:31:10 -08:00
Madan Koyyalamudi
14e95a4c57 Release 5.2.1.45S
Release 5.2.1.45S

Change-Id: I443c23c59cd798229bbcf337073b50c371468e69
CRs-Fixed: 774533
2022-11-17 22:25:56 -08:00
Ashish Kumar Dhanotiya
3297080714 qcacld-3.0: Update NSS for SAP dynamically
Currently host driver does not support dynamic NSS update for
SAP. Based on new requirement update NSS for SAP.
To achieve this requirement, add a logic to update the NSS and
restart the SAP with the updated NSS based on the ini.

Change-Id: Ie770b1103ba4050c48cd4ba3674a5e0d89c86fdf
CRs-Fixed: 3307308
2022-11-17 22:25:55 -08:00
Madan Koyyalamudi
cba34a2b34 Release 5.2.1.45R
Release 5.2.1.45R

Change-Id: I19f6cb7e8ad346a496266a5a2dbcab3d36e3646f
CRs-Fixed: 774533
2022-11-17 20:22:14 -08:00
Liangwei Dong
a594e9af75 qcacld-3.0: Fix check SBS low shared flag
In policy_mgr_get_index_for_ml_sta_sap_hwmode_sbs,
if SBS supported, at least one share type should be
supported.
Fix the missing check of Low share SBS.

Change-Id: I9ab848bab9ae8eb5c9d4bb85022b83be92e4c1e9
CRs-Fixed: 3338956
2022-11-17 20:22:13 -08:00
Madan Koyyalamudi
93cbaec1b9 Release 5.2.1.45Q
Release 5.2.1.45Q

Change-Id: Ib1c0f7c80e208f855f2a3990f99592d9367fc7d6
CRs-Fixed: 774533
2022-11-17 13:47:20 -08:00
Yu Wang
c52981a091 qcacld-3.0: fix vdev ops leak in mic error handler
There is a vdev ops leak when processing mic error, which
will block some other operations, such as idle shutdown,
recovery shutdown, and so on.
To fix it, add osif_vdev_sync_op_stop() in
osif_dp_process_mic_error().

Change-Id: Ida8d73a8e245834a282005501770bd893dad21c8
CRs-Fixed: 3336117
2022-11-17 13:47:20 -08:00
Madan Koyyalamudi
909984db4d Release 5.2.1.45P
Release 5.2.1.45P

Change-Id: I67488b1d41da30971fcc4ad92f0a3fbea869675b
CRs-Fixed: 774533
2022-11-17 11:44:49 -08:00
Liangwei Dong
220191a0f2 qcacld-3.0: Fix start GO failed on SBS config disabled
In SBS disabled, STA connects to MLO AP, then start P2P GO on 2.4 GHz.
The non SBS 3rd connection PCL table doesn't support such combination
and P2P GO start is failed.
Fix by add P2P GC/GO valid PCL type for PM_STA_STA_DBS_2x2

Change-Id: I8d36a11ca0005a25d17187100124e355fcb945ca
CRs-Fixed: 3334208
2022-11-17 11:44:49 -08:00
Madan Koyyalamudi
fd10bd72e6 Release 5.2.1.45O
Release 5.2.1.45O

Change-Id: If3205f8f35ced6c9fb0eaeb9b31e86b574a6aca3
CRs-Fixed: 774533
2022-11-17 08:09:01 -08:00
Jeff Johnson
ce3e5c15a9 qcacld-3.0: Fix wlan_ocb_main.[ch] documentation
The kernel-doc script identified several documentation issues in
wlan_ocb_main.c and wlan_ocb_main.h, so fix them.

Change-Id: Ic9916f335cc6ad68306664f726e18fd96a704225
CRs-Fixed: 3336710
2022-11-17 08:09:01 -08:00
Madan Koyyalamudi
97922efd9a Release 5.2.1.45N
Release 5.2.1.45N

Change-Id: Ia468c5a29939cd7e6c54c9e216a4897580c7bad9
CRs-Fixed: 774533
2022-11-17 04:21:32 -08:00
Jeff Johnson
7697f93852 qcacld-3.0: Rename band_5_ghz_chanenls_size
Rename band_5_ghz_chanenls_size to fix misspelling of "channels".

Change-Id: Ieaf7ca29331be6a0453029ef605f2a0df2c06d17
CRs-Fixed: 3335364
2022-11-17 04:21:32 -08:00
David Oladunjoye
c6e9232cd7 qcacld-3.0: Add support for QCA vendor attribute
Add support for new QCA vendor attribute to configure
the periodic sounding for Tx beamformer functionality.

Change-Id: Ibd83e33ceed589dff6efaeb1cb085b4a5424d0dc
CRs-Fixed: 3329239
2022-11-17 04:21:26 -08:00
Jeff Johnson
cd2be2c878 qcacld-3.0: Rename WIIF_TDLS_OFFCHANNEL_SUPPORT
Rename WIIF_TDLS_OFFCHANNEL_SUPPORT to fix misspelling of "WIFI".

Change-Id: I03be0889b464e0aa5ded982b335a3dbf9d744cb9
CRs-Fixed: 3335363
2022-11-17 04:21:21 -08:00