Commit-Graf

19327 Incheckningar

Upphovsman SHA1 Meddelande Datum
Krishna Rao
aebcc2ee76 qcacmn: Update Reconfig ML IE definitions as per 11be D3.0
Update Reconfiguration Multi-Link element definitions as per
IEEE802.11be D3.0. The main changes are:
- Add definition for max value of Common Info Length subfield of
Common Info field
- Definition of max value of STA Info Length in STA Info field of
Per-STA Profile subelement was already present (but unused) - update
this definition.
- Rename some of the subfields in STA Control field of Per-STA Profile
subelement
- Add encoding for the Operation Update Type subfield in STA Control
field of Per-STA Profile subelement
- Add definitions for Operation Parameters in STA info in Per-STA
Profile subelement

CRs-Fixed: 3471701
Change-Id: Ifbabc88722aa3a0a32d7580a6b54acf0feff6061
2023-05-22 09:09:05 -07:00
Surya Prakash Raajen
6438a661f5 qcacmn: Export wlan_mlo_peer_deauth_init as symbol
Add support to export wlan_mlo_peer_deauth_init as
symbol.

Change-Id: I384f47cf72ae30c7cddc9b1c52c1745c2f8e447c
CRs-Fixed: 3498865
2023-05-22 07:06:34 -07:00
Shashikala Prabhu
a4a05a97f8 qcacmn: Avoid crash when wmi max pending commands are reached
If WMI max pending commands are reached and UMAC reset is in progress then
add the WMI pending command to host SW queue instead of crashing. The
reason is FW will not reap the WMI commands from the CE ring when umac
reset is in progress. Hence, add the pending WMI command to host SW ring.

Change-Id: I871147a80669a88875b3f6891bd0b0a56b92733b
CRs-Fixed: 3502217
2023-05-22 07:06:23 -07:00
Kenvish Butani
c7c2642eef qcacmn: Add Stats support for MLD Interface in STA mode
For both Unified Bonding and Non bonding mld mode,
add Support to get VDEV Stats for MLD Interface on
STA mode for ifconfig and wifitelemetry tool.

Change-Id: Icb528d8738fd932d3f2c057af49fc7af141299e9
CRs-Fixed: 3502731
2023-05-22 07:06:12 -07:00
Sushant Butta
c21470ebff qcacmn: Use monitor pkt tlvs and buffer size for monitor
Use monitor pkt tlvs size and monitor buffer size
instead of data pkt tlv size and data pkt buffer size
for York.

Change-Id: Ifc0d07ed96100ae79e81ac91bccd637e08d71e28
CRs-Fixed: 3494826
2023-05-22 00:10:31 -07:00
Santosh Anbu
4514cc3d43 qcacmn: Avoid resetting monitor buf ring size
Increasing the buf ring size for York is leading to memory corruption
issues.

Adding change to partially revert commit, specific for York alone.
I3099f6526aa11b353c8a5178de450d48f141a461

Change-Id: Ia9836bc982590fbeb14021dcc3b7bc7014d2fa36
CRs-Fixed: 3490257
2023-05-22 00:10:19 -07:00
Edayilliam Jayadev
d8b480fa26 qcacmn: Add upper bound check for scan count
Add upper bound check for Spectral scan count parameter.

CRs-Fixed: 3495755
Change-Id: I31cb9313bc1abcc8323a00242a6f34b25af9ed9d
2023-05-21 22:13:50 -07:00
Arun Kumar Khandavalli
6380e02cbb qcacmn: Add support for nlink mlo support capability
Add support for nlink mlo support capability.

Change-Id: I7b033ce36f35aeb57147f4e7c69328f98e2a9cf7
CRs-Fixed: 3500525
2023-05-21 11:39:07 -07:00
Bing Sun
2d2f50fbf0 qcacmn: Consider vdev_id also along with link id for connected bitmap
When STA roams from SLO to SLO, only vdev 0 should be set as connected
link, while vdev 1 should not be set as connected link.

Currently vdev 1 is set as connected link incorrectly because its link
id is 0 which is the same with the link id from roam sync event.

link id is not a unique parameter. All are 0 by default.
vdev id should be used because it is a unique parameter.

Change-Id: I097b6f672c4656bfa2892f102e50998065463516
CRs-Fixed: 3497124
2023-05-21 11:38:57 -07:00
Arun Kumar Khandavalli
c8b6296d6b qcacmn: indicate Upstream Kernel supports ML connection on SAP
Define backport to indicate kernel support for ML connection on SAP

Change-Id: Id8e2f4942dd133c3c62d77b6775ffc6abae1a219
CRs-Fixed: 3497910
2023-05-21 04:05:06 -07:00
Venkateswara Naralasetty
09430f47e6 qcacmn: fix kernel null pointer dereference
Fix kernel null pointer dereference during dp_vdev_set_monitor_mode.

Change-Id: Ia17ebef71f4d7f8b038f52adcde17cc89aa14545
CRs-Fixed: 3501896
2023-05-21 04:04:55 -07:00
Srinivas Girigowda
3c62dfa3ea qcacmn: Enable Local packet capture ini
Enable Local packet capture ini.

Change-Id: I1f0647e8c97baa8345cecf6da79348867dccd827
CRs-Fixed: 3500137
2023-05-20 15:05:08 -07:00
Priyadarshnee Srinivasan
cfc9355364 qcacmn: Do not cancel hrtimer without initializing the timer
When the dfs_puncture feature is enabled and if the punctured subchannels
are not part of the current channel, dfs_punc_sm_stop() is invoked
from dfs_handle_dfs_puncture_unpuncture() API.
dfs_punc_sm_stop() does a hrtimer_cancel of dfs_punc_cac_timer though
hrtimer_init of dfs_punc_cac_timer is not done.
This causes kernel panic.
hrtimer_init() is done only when punctured channels are a subset of the
current channel.

Do a hrtimer_init() during dfs_attach to avoid the crash.

Change-Id: Ib9214ffe0b9605850885ca09c8d638dccecc7f00
CRs-Fixed: 3491078
2023-05-20 12:55:10 -07:00
Subrat Mishra
2214e091a8 qcacmn: Change ATF north bound function pointer name
Change ATF north bound function pointer name from atf_set to more
appropriate atf_send_peer_list.

Change-Id: Icd62a39548c58b47aa3f1de9db92dee100be3416
CRs-Fixed: 3490457
2023-05-20 08:37:57 -07:00
Jithender Miryala
7e413c719e qcacmn: Update or Correct the Reg database
Add/Correct the following Reg Database [ The following are correct values
as per Regupdate version #42 ]
1. Change superdomain 'APL5_6G_13' to 'APL7_6G_13'.
2. Add 5 GHz Regdomain FCC17 (Hex 0x0B73).
3. Add 5 GHz Regdomain FCC18 (Hex 0x0B74).
4. Add 5 GHz Regdomain APL19 (Hex 0x1240).

Change-Id: If96c38e735f3fc52c3f97571e254f352afd60569
CRs-Fixed: 3499634
2023-05-20 06:21:03 -07:00
Srinivas Girigowda
11edfc7c6d qcacmn: Do not apply lpc filter settings to HTT_RXDMA_HOST_BUF_RING
Local packet capture filter settings needs be to applied only to
HTT_RXDMA_MONITOR_STATUS_RING and not HTT_RXDMA_HOST_BUF_RING.

Change-Id: I2a2d2810407941310c88db551894806d0884d157
CRs-Fixed: 3501638
2023-05-20 04:03:47 -07:00
Srinivas Girigowda
c953dbb12d qcacmn: Avoid array out of bound access
Avoid array out of bound access by validating monitor channel band value.

Change-Id: I3b9c272e1fcf0d83a8d08884037af1eeed0a87ce
CRs-Fixed: 3501636
2023-05-20 04:03:37 -07:00
Aravind Kishore Sukla
0229ffd422 qcacmn: Add pdev param map for WMI_PDEV_PARAM_PCIE_CONFIG
Add pdev param id for WMI_PDEV_PARAM_PCIE_CONFIG

Change-Id: I8aab9fcad23d63a9dead92498733637a7e183338
CRs-Fixed: 3488026
2023-05-20 01:46:16 -07:00
Parikshit Gune
b46533745e qcacmn: Support FSE flow rule push from ECM
1. Adding cmn dev APIs to support FSE block rule add from
ECM for SFE UL flows
2. Send SFE flows to stack post FSE match

Change-Id: I37563592a03e28373ef3e2520a771082c629ccf5
CRs-Fixed: 3499382
2023-05-19 23:26:02 -07:00
Hariharan Basuthkar
6075201673 qcacmn: Add REG_AFC_CMD_CLEAR_AFC_PAYLOAD to reg_afc_cmd_type
Add a new member REG_AFC_CMD_CLEAR_AFC_PAYLOAD to reg_afc_cmd_type

Change-Id: I5cd27c50731b28a08978af1b437d811f97def503
CRs-Fixed: 3499029
2023-05-19 23:25:52 -07:00
Amrit Sahai
249985d15c qcacmn: Add support for peer unmap handler
Call ol_peer_unmap handler when AST_OFFLOAD_SUPPORT
is enable, so that client_disconnect event can be
sent to IPA.

Change-Id: I85efb432f94310c847aeda22a99bd999957c32d7
CRs-Fixed: 3495890
2023-05-19 07:27:37 -07:00
Rakesh Pillai
80c9a09307 qcacmn: Add debug logs in multipass params setting
Add debug logs in the CDP settings for multipass

Change-Id: If5a06cf1caacc80972e71e5e1ff04d9716ac4d02
CRs-Fixed: 3499753
2023-05-18 21:20:29 -07:00
Rakesh Pillai
474298906b qcacmn: Fix perf cluster interrupt affinity
The number of perf CPU clusters can vary across
different targets. Currently only the second CPU
cluster is considered as the perf cluster, whereas
there can be more than 1 perf clusters.

Fix this perf cluster derivation for interrupt
affinity.

Change-Id: Ie4407064ac5124fc050715fd75400ca516c9c6b8
CRs-Fixed: 3498024
2023-05-18 21:20:19 -07:00
Srinivas Girigowda
30a6417487 qcacmn: Change logs to appropriate log levels
Change logs to appropriate log levels.

Change-Id: I5e0816105282fccad8d17440eee363803f31429e
CRs-Fixed: 3494141
2023-05-18 18:43:59 -07:00
Srinivas Girigowda
221a245242 qcacmn: Optimize Tx/Rx path stats logging
Optimize Tx/Rx path stats logging.

Change-Id: I3f05c4a49340400f3ba7edb74e744035f6a1641f
CRs-Fixed: 3492611
2023-05-18 18:43:36 -07:00
Namita Nair
22d4ab462c qcacmn: Fix Hardware Tx completion latency stats
Current Hw Tx latency stats logs over 50 lines. This
change will reduce the stats to a concise logging.

Change-Id: Ia449ca1d97eabac069a1e8b46c64a73c4ab912ed
CRs-Fixed: 3299078
2023-05-18 18:43:24 -07:00
Srinivas Girigowda
6eaf41462a qcacmn: Add context to the logs
Logs without meaningful message or values serves no purpose in debugging.
Hence, add more context to the logs.

Change-Id: Ia463d239a9bf26f292a11bcc71cb1379374c45e4
CRs-Fixed: 3492593
2023-05-18 18:43:13 -07:00
Srinivas Girigowda
4f720afb5e qcacmn: Log Tx/Rx MCS stats as part of Tx/Rx path stats
Log Tx/Rx MCS stats as part of Tx/Rx path stats.

Change-Id: Idd2caf5fe5343a56440e7b501f22fe10c16e8010
CRs-Fixed: 3492558
2023-05-18 18:43:01 -07:00
Srinivas Girigowda
7c8eccb50f qcacmn: Log tx drop counters in Tx/Rx path stats
Some of the Tx drop counters are missing in Tx/Rx path stats.
Hence add them.

Change-Id: I24f7aa946050944c6a434b5d14ce4e17d9330089
CRs-Fixed: 3492548
2023-05-18 18:42:50 -07:00
Srinivas Girigowda
91e11d5efa qcacmn: Increase DPTRACE data size to 66 bytes
2 bytes for meta data and 64 bytes of packet data

Change-Id: Iee6875fd44844382c2248175925271e98da091c7
CRs-Fixed: 3492510
2023-05-18 18:42:39 -07:00
Srinivas Girigowda
07bdb1114b qcacmn: Remove trailing comma/period from the DP logs
Remove trailing comma/period from the DP logs.

Change-Id: Ifdaf508157274c44f04e775c1883c4eaa2924c44
CRs-Fixed: 3492731
2023-05-18 18:42:28 -07:00
Srinivas Girigowda
363262cd30 qcacmn: Remove __func__ from the DP logs
Logging macros already takes care of adding function name.
Hence, delete the occurrence of __func__.

Change-Id: I44ef5d7f030eba16decb9611f16001c6e9d42b3b
CRs-Fixed: 3492505
2023-05-18 18:42:18 -07:00
Srinivas Girigowda
48cf24b446 qcacmn: Remove trailing newline from the DP Logs
Remove trailing newline from the DP Logs.

Change-Id: Iaf54e57fb44cf7c15d82bd5c0ffb3fc7c3d04a2b
CRs-Fixed: 3492501
2023-05-18 18:42:08 -07:00
Guru Pratap Sharma
998426711a qcacmn: Add qualifier flags in link preference structure
Add qualifier flags in link preference structure which represent
bit is set for TLT or preferred link

Change-Id: I85a5fee0a804f6803fa52b5052bbcf635a613025
CRs-Fixed: 3482281
2023-05-18 14:23:09 -07:00
Rakesh Boyina
f74c73af6c qcacmn: Add BW argument to frame_injector WMI
Support to pass bandwidth parameter to frame_injector WMI.

Change-Id: Id3836ae98c269659b6ec0f78f1e9c04bf549c64d
CRs-Fixed: 3477889
2023-05-18 12:15:15 -07:00
Krupali Dhanvijay
7a3946c538 qcacmn: Add support to boost CPU freq during roam
To enable the tx queues faster during roam, boost the
CPU min frequencies to maximum once roam start is received,
and reset them once queues roam sync is complete or
roaming is aborted.
This change enables such support for lithium and Clarence targets.

Change-Id: I49d2f50f1c0142e7db1c981276bd08b75159b6d3
CRs-Fixed: 3487573
2023-05-18 09:37:07 -07:00
Sai Rupesh Chevuru
66d580c799 qcacmn: cleanup the link peers before ml peer deletion
During the target recovery cleanup the link peers
before ml peer deletion.

Change-Id: I23200a448f7a6a38e4b0e94dc95ea33a0b77eb9d
CRs-Fixed: 3496518
2023-05-18 07:16:27 -07:00
Amit Mehta
dd5f5c1afa qcacmn: Get wow nack reason code
Currently, Fw did not set NACK reason code
to Host when Fw is not ready for WoW.

As part of the new change, Fw will send NACK
reason code along with WoW NACK to host.
Make changes in host to parse NACK reason
code from the received message.

Change-Id: I17ee99cb302ff546731a46d3ce03977c3c3d5a67
CRs-Fixed: 3481189
2023-05-18 04:35:41 -07:00
Namita Nair
401b28e1b8 qcacmn: Add null check on wmi_handle
This change adds a NULL check on wmi_hdl before
dereferencing.

Change-Id: If00db0c56f33a910f698588f38c4219a4cd5bbf8
CRs-Fixed: 3491231
2023-05-17 19:18:54 -07:00
Surya Prakash Raajen
488ebc9cd9 qcacmn: Fix subsequent wifi failuers after mode1 recovery
After mode1 recovery, because of short circuit operator "&&",
decrement of init count is not happening and causing failures
to read global shmem arena tlv, fix the issue by changing the order

Change-Id: Iae922f09c2a9c3690318e35657f92cc3bf1061e7
CRs-Fixed: 3497802
2023-05-17 16:11:41 -07:00
Shashikala Prabhu
528a63c3ce qcacmn: Decrement num vdevs in the MLD on vdev detach
Decrement number of vdevs in the MLD on vdev detach.

Change-Id: I9040ac46d60e2e8738f6b3eaf46db6b72bad729c
CRs-Fixed: 3483554
2023-05-17 08:35:07 -07:00
Shashikala Prabhu
65e8b2f3d8 qcacmn: Add CDP API to check if UMAC reset is in progress
Add CDP API to check if UMAC reset is in progress.

Change-Id: I9b5891f61278aa6be52ee2e8d5f9de3185d92eef
CRs-Fixed: 3475148
2023-05-17 08:34:56 -07:00
Shashikala Prabhu
8b6fd27e6e qcacmn: Restart vdev mgmt rsp timer if UMAC reset is in progress
It is possible that the host queued the peer delete command to FW
but no peer delete event was received within the peer delete
timeout as FW initiated a UMAC reset.

When the vdev mgmt response timer times out, check if umac reset is in
progress. If so, restart the vdev mgmt response timer.
The entire umac reset handshake completes within 200ms if not
FW asserts. Hence no need to add the count check before
restarting the vdev mgmt response timer.

Change-Id: Ief3351b940658a870e303d191a3873bd60499023
CRs-Fixed: 3475168
2023-05-17 08:34:46 -07:00
Yeshwanth Sriram Guntuka
45690711be qcacmn: Set to_fw to 1 in HW descriptor for scattered skb
The to_fw bit in HW descriptor is not set for exception
marked skb that is scattered across multiple pages. In the
case of direct link, this would result in crash as TQM
bypass mode is used for direct link vdev.

Fix is to set the to_fw bit to 1 in HW descriptor for
exception marked skb.

Change-Id: I060ad4ad59f85e09f39bd85080e0b3138a39402c
CRs-Fixed: 3490554
2023-05-17 06:24:01 -07:00
Vijay Raj
b4c77ab924 qcacmn: Add structure support for vlan peer config
Add structure peer_vlan_config_param for
WMI_PEER_CONFIG_VLAN_CMDID to support vlan peer config

Change-Id: I2f93ce2bd10d1920d33ee0e26d1b7d344813852b
CRs-Fixed: 3492156
2023-05-17 06:23:48 -07:00
Karthik Kantamneni
72b6f50792 qcacmn: Fix compilation errors for softumac target
Fix cfg and monitor APIs compilation error for
softumac based targets.

Change-Id: I6274353a5ebefb25959463c1f642462f8232736c
CRs-Fixed: 3498111
2023-05-16 17:33:49 -07:00
Yu Tian
fc12609405 qcacmn: Add bit mask control for special frame deliver
Add bit mask control for special frames deliver in error
path.

Change-Id: I9f30e53028bf75d02578e5132f62b15ea480d1bd
CRs-Fixed: 3457564
2023-05-16 17:33:38 -07:00
Jia Ding
296729e604 qcacmn: Properly set RPS for WLAN IPA
It is observed on sdxpinn target (first multi-core MDM platform)
that WLAN failed to enable IPA pipes with SAP-SAP mode when first
ref-client connects to the SAP. Indeed with QCA_CONFIG_RPS=y and
qdf_ipa_get_lan_rx_napi()=true, wlan_ipa_uc_handle_first_con()
directly returns false if more than 1 SAP is started.

This obviously breaks IPA data path for MDM platform, where even
4 SAP can be supported with IPA offload. And WLAN data path
forwarding replies fully on IPA hardware. This also means there's
no need to configure RPS for MDM, which is a host kernel networking
feature.

Change-Id: I4c17f61b1b242cdbaed7177201b330d10ec7e61b
CRs-Fixed: 3490817
2023-05-16 14:34:09 -07:00
Jhalak Naik
d563641c08 qcacmn: Add support for handling MLO TSF sync capability
Add APIs to init the TSF sync capability based on
WMI_SERVICE_MLO_TSF_SYNC service bit sent from FW,
per ML group.

Change-Id: I5dad3fef7ebfa2af330b95d45cac3bef862f46f0
CRs-Fixed: 3491364
2023-05-16 11:43:24 -07:00
Aniruddha Mishra
ba55e0f2a8 qcacmn: Add Tx TLV Recording support
Add Tx TLV recording support for monitor 2.0
Also add support to control Rx and Tx TLV
recording

Change-Id: I27a0d2c9ea8bdfacd46e6b7188b45b08ed47bbcd
CRs-Fixed: 3422787
2023-05-16 11:43:14 -07:00