Commit Graph

19009 Commits

Author SHA1 Message Date
Jeff Johnson
5047c5345a qcacmn: Fix hal/wifi3.0/qca8074v1 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca8074v1 folder, so fix them.

Change-Id: I7d1b018a7ba9e8967ad8a9998a8a1757881b7ed1
CRs-Fixed: 3410790
2023-02-24 19:37:04 -08:00
Jeff Johnson
2cdca1a9c3 qcacmn: Fix hal/wifi3.0/qca8074v2 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca8074v2 folder, so fix them.

Change-Id: I03e263a2a8ae4cf256d143d772c3a32ed11dfe48
CRs-Fixed: 3411714
2023-02-24 19:36:54 -08:00
Jeff Johnson
9c8278f7b9 qcacmn: Fix hal/wifi3.0/qca6490 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca6490 folder, so fix them.

Change-Id: If86930db21f7961acc067da4751641c749cadc48
CRs-Fixed: 3410723
2023-02-24 19:36:44 -08:00
Amrit Sahai
4a0b5ba5e4 qcacmn: Fix the wireless multimedia stats
Fix the wireless multimedia stats count

Change-Id: Ic6ae03564197beaef6fcec87278c24f63f1b342b
CRs-Fixed: 3403026
2023-02-24 17:52:30 -08:00
Uraj Sasan
25ad461a3c qcacmn: Increase the macros for 4 LINK MLO case
In case of 4 LINK MLO we have link index as 0, 1, 2 and 3
so increase the MLD_MAX_LINKS to accommodate all links.

Also MAX RNR_BSS supported in 16vap 16 MLD across N links will
increase as:

For N(4 LINK) link MLO, Max RNR BSS will be given:
16(N_6G_LINKS) + N - (N_6G_LINKS) - 1(SELF_LINK) = 16*2 + N-2-1 = 33

Change-Id: If2e1755b8b99e83d8fe391220183921a70be61f5
CRs-Fixed: 3408516
2023-02-24 15:51:51 -08:00
jinbaoliu
2c76bff9c5 qcacmn: Fix failing to drop m-pkts from the DUT itself
The DUT should drop the mcast packet from itself when
receiving it. However, a mcast packet from the DUT
itself has been failed to be discarded due to code
refactoring. This change aims at fixing this issue.

Change-Id: Ic80aa2aeb107b7b5a1b1d88f2ee0a72e316d7fcc
CRs-Fixed: 3372169
2023-02-24 13:51:18 -08:00
Jeff Johnson
1e4a1adb96 qcacmn: Fix QDF memory documentation
The kernel-doc script identified a large number of documentation
issues in the QDF memory abstractions, so fix those issues. In addition,
there are a number of instances where public functions have their
implementation documented instead of having their interface
documented, so move that documentation.

Change-Id: I4e30fd85e65567485cdc7a9adfc38c69df0cfa55
CRs-Fixed: 3406199
2023-02-24 08:50:13 -08:00
Jeff Johnson
b9fcc44fd3 qcacmn: Fix QDF MC Timer documentation
The kernel-doc script identified documentation issues in the QDF MC
Timer abstractions, so fix those issues. In addition, there are a
number of instances where public functions have their implementation
documented. In those cases make sure only the interface is documented.

Change-Id: Ied6cf02d2091099351cd82245a667fd1e6cad461
CRs-Fixed: 3405262
2023-02-24 08:50:01 -08:00
Jeff Johnson
c3c262ca32 qcacmn: Fix QDF trace documentation
The kernel-doc script identified documentation issues in the QDF trace
abstractions, so fix those issues. In addition, there are instances
where public functions have their implementation documented instead of
having their interface documented, so move that documentation.

Change-Id: Ife16fe9527dbe013003c5f2f04d7e9d0a9aa385a
CRs-Fixed: 3406201
2023-02-24 08:49:36 -08:00
Chaithanya Garrepalli
4eedfd8cf7 qcacmn: For WDS EXT use descriptor fields for 4-addr
For WDS ext use fr_ds and to_ds fields to check for
4-addr instead of reading value from TLV

Change-Id: I261746018de2320367e8650332a5c355edfb1489
CRs-Fixed: 3410639
2023-02-24 07:05:02 -08:00
Sai Rupesh Chevuru
10826afad5 qcacmn: Adding NAWDS support along with WDS-EXT
Adding NAWDS support along with WDS-EXT

Change-Id: I19d277fa575750d3194afc9ec9af3180a8c936ad
CRs-Fixed: 3406151
2023-02-24 07:04:50 -08:00
Shiva Krishna Pittala
8f0c611fec qcacmn: Add big-endian Host support for MLO global shared memory
MLO global shared memory arena accesses from the Host side will not go
through any implicit endian-ness conversions. Hence, convert the DWORDS
to the Host CPU order before using them.

Change-Id: If24edc7c6ef59fc82352d081b01a4baaaff65e02
CRs-Fixed: 3406980
2023-02-24 04:59:14 -08:00
Jeff Johnson
0af71c50d8 qcacmn: Fix QDF lock documentation
The kernel-doc script identified documentation issues in the QDF lock
abstractions, so fix those issues.

Change-Id: Iee0576e2e64d9d67942238d758f3cbca36069356
CRs-Fixed: 3406198
2023-02-24 00:06:10 -08:00
Venkateswara Naralasetty
2021fc9249 qcacmn: Move CE descriptor related macros out of qdf
Currently few macros related to CE descriptor are defined in qdf_types.h
Which is not the right place to have such macros. Hence moving them to
ce_internal.h file.

Also, have different macros for WCN6450 as the ce descriptor offsets got
changed for WCN6450.

Change-Id: I20414273793034bbab80304bcd643371d281fb7f
CRs-Fixed: 3386470
2023-02-24 00:05:59 -08:00
Vinay Adella
865c4c6d28 qcacmn: Extend Peer Assoc WMI to include more info on partner links
The FW needs mlo_flags of partner links as well during Assoc,
to handle more than 2-link MLO Association.
Extend the peer_assoc_ml_partner_links struct to pass them.

CRs-Fixed: 3403848
Change-Id: I543442ded6b5bc55c278b32f3d449eabacc49919
2023-02-23 22:07:35 -08:00
Vinay Adella
8d4392b4b4 qcacmn: Pass mlo_flags to partner links during Assoc
The FW needs mlo_flags of partner links as well during Assoc
to handle more than 2-link MLO Association.
Extend the mlo target link info struct to pass them.

CRs-Fixed: 3403849
Change-Id: Ia426cf16a5d8cfa1f6e4117a0b372899642494c6
2023-02-23 22:07:24 -08:00
Jeff Johnson
f6ce196cab qcacmn: Fix hal/wifi3.0/qcn9224 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qcn9224 folder, so fix them.

Change-Id: I30e75bf3febabfb1c655f96f039059cf365916c8
CRs-Fixed: 3411783
2023-02-23 22:07:12 -08:00
Namita Nair
c6a6c4563d qcacmn: PCIe prevent_l1 for optional wifi dp feature
This change will hold the PCIe in L0 state for the
duration of this feature. The hold will be
released after data transfer is complete.

Change-Id: I762bc3423059ad641bdd00ac5b301a1e1b16f6c2
CRs-Fixed: 3406490
2023-02-23 17:20:37 -08:00
Namita Nair
c9c59b99ed qcacmn: Qdf changes to support optional wifi dp feature
Qdf changes to support optional wifi dp feature.

Change-Id: Iaec8374548a991e4660f0a0a31f1d6309b572bea
CRs-Fixed: 3403427
2023-02-23 17:20:25 -08:00
Jia Ding
09186dbaf9 qcacmn: Check mld peer address for IPA intra-bss fwd
In the case of MLO connection, MLD address is used for data
transmissions in the ethernet header. Take MLO-SAP intra-bss
forwarding as an instance, ref1 sends unicast arp-resp to
ref2 who initiates broadcast arp-req. DA and SA in the ethernet
header are both MLD mac addresses of ref1 and ref2.

Currently when WLAN IPA component does the intra-bss forwarding
check, MLO connection is not taken into consideration, where
only legacy hash table is searched. For a MLD peer, it is not
added into the legacy hash table but the MLD specific hash
table.

Hence in this change, use dp_peer_hash_find_wrapper() API with
CDP_WILD_PEER_TYPE to check if peer exists in both legacy
and MLD hash table.

Change-Id: Ifea7cd37373e1575d811bedefb602d0df5c1765b
CRs-Fixed: 3400280
2023-02-23 10:49:33 -08:00
Namita Nair
33189ca042 qcacmn: Fix REO ring routing for opt wifi dp
Set REO dest index 4 to REO2SW4.

Change-Id: Ida169d49ee195e2aaf1c13eeaafbbd487430f846
CRs-Fixed: 3403314
2023-02-23 08:54:09 -08:00
Jeff Johnson
845ef54e78 qcacmn: Fix hal/wifi3.0/qca6750 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca6750 folder, so fix them.

Change-Id: I1b8c33da5d4baedb65ce632e983ce0ef5ec8a8f5
CRs-Fixed: 3410755
2023-02-23 08:53:57 -08:00
Jeff Johnson
d25361b2f2 qcacmn: Fix hal/wifi3.0/qcn9000 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qcn9000 folder, so fix them.

Change-Id: I8e15c38f02610a02d9f5a553b328e0bc7333271e
CRs-Fixed: 3411746
2023-02-23 07:05:55 -08:00
Jeff Johnson
201bd01d1e qcacmn: Fix hal/wifi3.0 documentation
The kernel-doc script identified a number of kernel-doc issues in the
hal/wifi3.0 folder, so fix them.

Note that there are a number of instances where public functions have
their implementation documented in addition to having their interface
documented, so remove the duplicate documentation since only the
interfaces should be documented.

Change-Id: Ic238c0f53658e8754882c83204ffae5ad713ec6b
CRs-Fixed: 3410624
2023-02-23 03:45:23 -08:00
nobelj
40a27a9a55 qcacmn: Adding mlo timestamp offset to tx monitor tsf
Adding MLO timestamp offset reported from firmware to tsf time for
radiotap header populated in tx monitor.

Change-Id: I44f2c1a49d4d2b73ac9117319b72ba8635cb5b38
CRs-Fixed: 3398345
2023-02-23 03:45:13 -08:00
Jeff Johnson
f11e72a709 qcacmn: Fix hal/wifi3.0/qca6390 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca6390 folder, so fix them.

Change-Id: I56bf59aea331e4f720610436222af824ee0265d7
CRs-Fixed: 3410710
2023-02-22 07:34:31 -08:00
Amrit Sahai
e867292a52 qcacmn: Add support to API - disable sched mode
- Add wmi pdev param id
- Add wmi ops to send disable sched mode cmd

Change-Id: I8aae3fecefa5bb2bff75c98f82c7c1ccb43c4514
CRs-Fixed: 3395494
2023-02-22 05:48:20 -08:00
Sai Rupesh Chevuru
fea98c45ed qcacmn: Set the flow idx valid flag based on flow timeout
Set the flow idx valid flag only when there is no flow timeout.

Change-Id: If73219d894f3f5b7a4fde9105d1bb3fc18648f80
CRs-Fixed: 3399446
2023-02-22 03:34:07 -08:00
Aniruddha Mishra
a70effe5d4 qcacmn: Restructure Rx TLV recording
Restructured Rx TLV recording implementation.
Shifted definitions to monitor 2.0 files.

CRs-Fixed: 3410093
Change-Id: I083f3a37e5caff668976c9ca955926afe16a242d
2023-02-22 01:54:50 -08:00
Anbarasan Ganesan
bc5188b115 qcacmn: Add qdf wrapper for jiffes_to_nsecs()
Add qdf wrapper for kernel API jiffies_to_nsecs().

Change-Id: I023dc2293f731bd2ee20278785ebf14ffba4787b
CRs-Fixed: 3396843
2023-02-22 00:00:24 -08:00
Jeff Johnson
4f8ff9d20f qcacmn: Fix hal/wifi3.0/qcn6122 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qcn6122 folder, so fix them.

Change-Id: I68212a1a3356b20032336b663c202b840f4c6035
CRs-Fixed: 3411730
2023-02-22 00:00:10 -08:00
Edayilliam Jayadev
bbede4e20d qcacmn: Add "blanking status" field in SAMP message
Add "blanking status" field in Spectral SAMP message.

CRs-Fixed: 3407155
Change-Id: I488a78cc06518a34b1adcf3db6ad4b3133115e9a
2023-02-21 23:59:59 -08:00
Edayilliam Jayadev
603646bb1d qcacmn: Extract scan blanking parameters
Extract scan blanking parameters from the chan info WMI event.

CRs-Fixed: 3396977
Change-Id: I57b0c6e4867da7349121a5d563d7d219fcb7974b
2023-02-21 23:59:40 -08:00
Jianmin Zhu
1632e6e62c qcacmn: Add QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS_INDEX
Add QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS_INDEX.

when qca vendor cmd of QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS get roam
information, driver send all the cached information to user space.

Change-Id: I5fa3202850eb21fe3fbf88ddbf51a803457a948e
CRs-Fixed: 3409607
2023-02-21 23:59:29 -08:00
Namita Nair
2fdec1d504 qcacmn: Add optional wifi dp feature cdp layer
Changes to cdp layer to support optional
wifi datapath feature.Add cce_super_rule_setup fn
to pass filter tuple from ipa layer to htt layer.
Also add support to send wmi commands to enable/disable
low power features like IMPS, BMPS and ILP.

Change-Id: Ie7e5ec2066977e4fce37f08bb5e0137327f0728a
CRs-Fixed: 3403426
2023-02-21 22:13:47 -08:00
Jeff Johnson
c9105c1ad9 qcacmn: Fix reg_enable_disable_chan_in_mas_chan_list() kernel-doc
The following change fixed all of the documentation issues in the
umac/regulatory/core folder:
qcacmn: Fix umac/regulatory/core documentation
Change-Id Id666d5a92415158591e6379b619fb34c518aeca1

Unfortunately, before the patch was merged, the following change
introduced new errors in the documentation of function
reg_enable_disable_chan_in_mas_chan_list(), located in
umac/regulatory/core/src/reg_opclass.c:
qcacmn: Add an API to enable or disable channels based on opclass
Change-Id Ie9dbbadbe28e5b5fdc2ec9c60c284da9c9e2286f

Fix those errors.

Change-Id: I8396159a6af4ece0815f78355a0531aca5eff023
CRs-Fixed: 3408940
2023-02-21 22:13:36 -08:00
Guru Pratap Sharma
22fb800b9f qcacmn: Add structure for preference link event
Added the structure to save the value of preferred link
which receive from the RM APP.

Change-Id: I4eb9430639d4a77c5f448d833d677948e6f19882
CRs-Fixed: 3393643
2023-02-21 22:04:47 -08:00
Guru Pratap Sharma
d32fe4db3c qcacmn: Add wmi changes to send the T2LM command to FW
Add WMI changes to send preferred link to FW

Change-Id: I8b8d7354d979705b1a938e9792de334c4faf65b6
CRs-Fixed: 3393604
2023-02-21 22:04:26 -08:00
Edayilliam Jayadev
a0d45f3ac7 qcacmn: Add tgt APIs to schedule/cancel delivery of frames
Add tgt APIs to schedule/cancel the delivery of management
frames.

Change-Id: Id9b78f8819270f2eba143e9b19dc245eb925612c
CRs-Fixed: 3408594
2023-02-21 22:04:08 -08:00
Edayilliam Jayadev
98f1131240 qcacmn: Add an API to decrement an atomic variable if it is positive
Add an API to decrement an atomic variable if its value is positive.

CRs-Fixed: 3408572
Change-Id: I9649f1093850452a38acae6fa48e663a4e6d9c68
2023-02-21 22:03:59 -08:00
Edayilliam Jayadev
b3c257785e qcacmn: Add UMAC APIs to schedule/cancel delivery of frames
Add UMAC APIs to schedule/cancel the delivery of management
frames.

CRs-Fixed: 3408367
Change-Id: Iee7745b6e9e4e4269f9faede221f648a516fdc20
2023-02-21 22:03:46 -08:00
Edayilliam Jayadev
6301cfb1f6 qcacmn: Add per pdev/psoc init APIs
Add per pdev/psoc initialization APIs in management Rx reorder module.

Change-Id: Ic60a195bc62a4bc70e10bbb07133d1e3184f4685
CRs-Fixed: 3408290
2023-02-21 22:03:22 -08:00
Edayilliam Jayadev
f4f7014f11 qcacmn: Add target if APIs to schedule/cancel delivery of frames
Add target if APIs to schedule/cancel the delivery of management
frames..

CRs-Fixed: 3408279
Change-Id: I2063541648f3257994909fed63ce171fdc97b784
2023-02-21 22:02:37 -08:00
Liangwei Dong
1ac458ec54 qcacmn: Abort STA connecting if NDI stop bss pending
When NDI stop bss is pending in serialization queue and
STA connect is in progress with multiple candidate trying,
NDI stop bss will be timeout and vdev clean up will not happen
if STA connect takes too much time.

Fix by stop next candidate trying if NDI stop bss in
queue.

Change-Id: I29ca38f420586862f294d10041fc1754f8b485ce
CRs-Fixed: 3402121
2023-02-20 15:02:45 -08:00
Jeff Johnson
de5b0b9a2f qcacmn: Fix hal/wifi3.0/qca6290 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca6290 folder, so fix them.

Change-Id: I5b5943039d62a60f71faf322cf66fe411c11b3de
CRs-Fixed: 3406597
2023-02-20 13:03:11 -08:00
Pragaspathi Thilagaraj
0faa9d7218 qcacmn: Trigger recovery when WMI command is sent in wow mode
Trigger recovery when WMI command is sent in wow mode

Change-Id: I65efe5601e15055c5407f085e1fdcae5b28d6b81
CRs-Fixed: 3372322
2023-02-20 13:03:01 -08:00
Venkateswara Swamy Bandaru
db310c83ec qcacmn: Fix puncture bitmap validation on 5 GHz band
Fix puncture bitmap validation on on 5 GHz band by
deriving the band bitmap based on primary frequency.

Change-Id: Ic1d482716a905812e08d21dbbfb2472f83b95491
CRs-Fixed: 3396325
2023-02-20 11:51:45 -08:00
Sai Pratyusha Magam
373c20c855 qcacmn: Fix improper naming convention
Fix improper naming convention for store_def_keyix_peer
Avoid qdf_export since the function is defined and called
from the same file

Change-Id: I488267eccf521071038958fe85e9c1be90df27b2
CRs-Fixed: 3384714
2023-02-20 10:39:10 -08:00
Tallapragada Kalyan
44e4444e61 qcacmn: create qdf_nbuf_cb definition for win and mcc
WIN and MCC shared a common definition od qdf_nbuf_cb
considering that there are various fields which are
not common it is decided to have 2 different definitions
for WIN and MCC. in case of WIN he per pkt cycles will
be significantly reduced in RX path.

CRs-Fixed: 3257879
Change-Id: I5d3fa7c91592afb905702f2dca49972be89664e3
2023-02-20 10:39:00 -08:00
Pragaspathi Thilagaraj
28a0436d35 qcacmn: Cleanup unused TWT APIs & validation checks
PSOC null sanity check is done in caller, but again done in few
callee APIs.

Remove the duplicate sanity checks and unused TWT API.

Change-Id: Iac485bdce27be41c0d7152de1c86626edb534d11
CRs-Fixed: 3402622
2023-02-20 10:38:49 -08:00