Commit Graph

24093 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
Madan Koyyalamudi
27ed3f6ec5 Release 5.2.1.45M
Release 5.2.1.45M

Change-Id: I7941c3948f6779213b4c154e7ad1fdfd7efb82d1
CRs-Fixed: 774533
2022-11-17 02:28:35 -08:00
Vinod Kumar Pirla
10ddbd5a8c qcacld-3.0: Send peer ML info on BSS join/leave to cfg80211
On client connection, send the client's MLD address, assoc response IEs
and the link_id of SAP on which the new client is added.
For non-MLO capable clients the MLD is sent as NULL address

On ML client disconnection, use MLD address of the client as argument
to cfg80211_del_sta().
For non-MLO client disconnection, use the legacy address of the client
as argument to cfg80211_del_sta().

Change-Id: I43cb8e688251b6118932e1ae88f7abdf53dd54a0
CRs-Fixed: 3324216
2022-11-17 02:28:35 -08:00
Madan Koyyalamudi
188e55a759 Release 5.2.1.45L
Release 5.2.1.45L

Change-Id: Ib1dd332daf34a4a1ce29c0e403054250c8ff38c1
CRs-Fixed: 774533
2022-11-17 00:33:11 -08:00
Amit Mehta
b687959634 qcacld-3.0: Make changes to update tsf_id and mac_id
Currently host Sents WMI command to Fw to read tsf_id and mac_id
but in cases where there is change in mac_id after vdev start,
new tsf_id and mac_id is not updated in host to read from correct
scratch register. Which results in reading tsf value from wrong
scratch registers.

To fix the issue Fw will sent the WMI_VDEV_TSF_REPORT_EVENT directly
to host with updated mac_id and tsf_id. Make changes to update
tsf_id and mac_id from the direct event received.

Change-Id: I0b98022d1e91e1c7bcf85853c3f14a36ef0f2f7b
CRs-Fixed: 3334879
2022-11-17 00:33:11 -08:00
Madan Koyyalamudi
03393223b3 Release 5.2.1.45K
Release 5.2.1.45K

Change-Id: I05037aa3b45e2bf4fe6594613659e1dc0dff9fac
CRs-Fixed: 774533
2022-11-16 15:36:39 -08:00
Asutosh Mohapatra
7b4c3a6fb3 qcacld-3.0: Set PM delay to 1200 ms for WOW_REASON_LOCAL_DATA_UC_DROP
Currently general PM delay is 500 ms. If fw sends wow wakeup with reason
code WOW_REASON_LOCAL_DATA_UC_DROP host wakes up, 500 ms after the
transactions again runtime suspend takes effect. Every time FW sends wow
wake there will be a small delay induced. It is noticed that large
frames are getting dropped for continuous wow wakeup events.

To address this issue increase PM delay to 1200 ms if fw sends
wow wake for reason WOW_REASON_LOCAL_DATA_UC_DROP and again
revert it back to 500 ms on next WoW enter.

Change-Id: I57bafc5ae8a633f1f685201ceb5936b59c985148
CRs-Fixed: 3330844
2022-11-16 15:36:38 -08:00
Madan Koyyalamudi
0301202d47 Release 5.2.1.45J
Release 5.2.1.45J

Change-Id: Ib72f62e3ec6215e7a3caec8d9a8379c50de580a6
CRs-Fixed: 774533
2022-11-16 13:38:44 -08:00
Vinod Kumar Pirla
0164efffad qcacld-3.0: Send peer ML info on OWE connection event
For ML SAP configured in OWE, on ML client connection
send the MLD address and SAP's link id on which connection
is made.

For legacy clients or non-ML SAP don't need to send this info.

Change-Id: I04de6d172f7b5ddff22fc49123626510f23b21fd
CRs-Fixed: 3323808
2022-11-16 13:38:44 -08:00
Madan Koyyalamudi
18e872f463 Release 5.2.1.45I
Release 5.2.1.45I

Change-Id: I7c4f4fbacb877625bb043739f1ba807f60bf6586
CRs-Fixed: 774533
2022-11-15 21:38:42 -08:00
Jyoti Kumari
93ae42666a qcacld-3.0: Handle LL SAP + SAP/GO scenario during acs
Filter pcl channel list for SAP/GO if LL SAP is present
and SAP/GO comes up.

Change-Id: I7527131ba8b465f5be9bafec3d0c8b527a70b3dd
CRs-Fixed: 3331013
2022-11-15 21:38:42 -08:00