提交線圖

18596 次程式碼提交

作者 SHA1 備註 日期
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
Meng Yuan
fadf69f0d9 qcacmn: fix uninitialized array elements issue
Fix the issue about using uninitialized array elements.

Change-Id: I400fae1283bdee34c2e455aae21e0d3bb122a928
CRs-Fixed: 3394984
2023-02-20 07:06:09 -08:00
Meng Yuan
855b4f9fec qcacmn: Fix wlan build error in qcacmn
Fix the error: 'LINUX_VERSION_CODE' is not defined
 in i_qdf_ipa_wdi3.h:31:6.

Change-Id: Ic2ed7908d3bc5191e0cd4049c68f6d11ab10dfea
CRs-Fixed: 3335578
2023-02-20 07:05:58 -08:00
Rakesh Pillai
1ddcf838b7 qcacmn: Improve logging in MLO link add/delete
Remove console logging in MLO link peer
add/delete to MLD peer.

Change-Id: I3d1945a7cef2175cb0fed6417ede03dec9fabf1b
CRs-Fixed: 3408600
2023-02-18 22:01:51 -08:00
Pavankumar Nandeshwar
0a7d729a98 qcacmn: Reuse the tx descriptors in direct switch
Reuse the tx descriptors released in tx completions
without releasing the associated skbs to reduce
the cpu utilization in direct switch mode.

Change-Id: I4ab3ac58977a626344877b8a818a4dbc4864aaf3
CRs-Fixed: 3393968
2023-02-18 20:50:25 -08:00
Jeff Johnson
87f6016da2 qcacmn: Fix hal/wifi3.0/qca5018 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca5018 folder, so fix them.

Change-Id: I72d5664f7ce0dd289d26a006d9e4448b9753f082
CRs-Fixed: 3406484
2023-02-18 15:53:38 -08:00
Jeff Johnson
4042de592d qcacmn: Fix QDF documentation
The kernel-doc script identified a large number of documentation
issues in the QDF. A series of patches has already fixed many of the
issues, so fix most of the remaining ones.

Note that the QDF IPA abstraction still has issues, but it is under
rework, so not trying to clean it up until after the rework is
complete.

Change-Id: I10c33e341cb6b46e0f8ada99069616d450c07189
CRs-Fixed: 3406197
2023-02-18 13:33:23 -08:00
Edayilliam Jayadev
de1279ed3f qcacmn: Mark a frame as ready for delivery on insertion to egress list
Whenever a frame is added directly to egress list, mark it as ready
for delivery.

Change-Id: Ifb2eff595227c3c6857666624ab272fd20845756
CRs-Fixed: 3405305
2023-02-18 13:33:11 -08:00
Jeff Johnson
d18654812f qcacmn: Fix dp/inc documentation
The kernel-doc script identified a large number of kernel-doc issues
in the dp/inc folder, so fix them.

Change-Id: I6213164d2209cc4de9684ae66281ee2999f82672
CRs-Fixed: 3375078
2023-02-18 13:32:59 -08:00
Divyajyothi Goparaju
3c4a739d9c qcacmn: Handle INVALID_CHANNEL_NUM
Currently 'wlan_reg_max_5ghz_ch_num'returns
INVALID_CHANNEL_NUM for countries other than US
as MAX_5 GHZ_CHANNEL maps to INVALID_CHANNEL_NUM
for other countries in their respective channel_map
structure.

To fix this issue of INVALID_CHANNEL_NUM for
MAX_5 GHZ_CHANNEL,instead of taking value from
channel_map[].chan_num, with fixed index of MAX_5 GHZ_CHANNEL,
check for channel_map[].cha_num with index starting from
MAX_5 GHZ_CHANNEL down to 5 GHz channels,
consider the first hit of chan_num which is not
INVALID_CHANNEL_NUM.

Change-Id: I364500f8e13cc42350103c5d236b12d71e28a4a6
CRs-Fixed: 3396340
2023-02-18 11:03:46 -08:00
Jeff Johnson
274f667c45 qcacmn: Fix hal/wifi3.0/qca5332 documentation
The kernel-doc script identified some documentation issues in the
hal/wifi3.0/qca5332 folder, so fix them.

Change-Id: I780f8d20f6c9a22229dcd007ac4bb8f10174e1db
CRs-Fixed: 3406555
2023-02-18 11:03:35 -08:00
Sheenam Monga
a65ece1c4d qcacmn: Add ucfg_dcs_switch_chan API
Add ucfg_dcs_switch_chan public API that
invokes wlan_dcs_switch_chan and can be used
when CSA is required due to DCS.

Change-Id: I4f91b0a70dde29520797c7b92cdecd01b96e55c2
CRs-Fixed: 3403459
2023-02-17 11:01:30 -08:00
Parikshit Gune
0de42b892b qcacmn: Add wds ext support for Direct switch module
1. Maintain and fetch PPEDS profile from be_soc instead of be_vdev
2. Enable WDS EXT mode for Direct Switch
3. Provide cdp API's and structures to interact with osif
layer to get PPEDS profile info

Change-Id: I997126e3b5ae85dabdcd6053115927122b8681da
CRs-Fixed: 3404778
2023-02-17 11:01:08 -08:00
Paul Zhang
79720d811d qcacmn: Add support for 2+ mlo links
Add support for generating link specific assoc request/response
and probe response for 2+ mlo links.

Change-Id: Iadd09efeb0b0098baeae25f3b1968826e75dedc4
CRs-Fixed: 3049640
2023-02-17 09:32:31 -08:00