Graphe des révisions

20406 Révisions

Auteur SHA1 Message Date
Jianmin Zhu
9bc183ab64 qcacmn: Don't allow MLO SCC link
When MLO partner link and assoc link are on same frequency, F/W will
assert.

To fix it, don't allow partner link is on same frequency of assoc link.

Change-Id: I01338dbbc0845e6f6284e4a374f5ad0a5cada334
CRs-Fixed: 3706613
2024-02-01 19:51:04 -08:00
Adwait Nayak
0b4d82980c qcacmn: Add sanity check to fix OOB issue
Add sanity check to fix OOB issue while generating scan entries
for beacon

CRs-Fixed: 3591858
Change-Id: I35b362bc89ab10fa2d2d6660263c726692384e07
2024-01-31 02:14:56 -08:00
Abhinav Kumar
3e44744502 qcacmn: Update proper center freq in mlo link info
FW sends "Center Frequency Index" as new center frequency.
via mlo sta standby csa event WMI_CSA_HANDLING_EVENTID.

Currently host uses value of Center Frequency Index (CFI)
directly to update center frequency for all links to
"mlo_link_info" structure. Due to this host maintains a
wrong value of center frequency throughout of connection
which leads to failure in calculation of bonded channel
in case of 6 GHz and 320 MHz connection.

Fix is to update center frequency in "mlo_link_info"
structure for all require link(s) as per CFI coming via
mlo sta standby csa event.

Change-Id: Iea04fb9b1c1c9b0dbd0be3647173708c47ea74be
CRs-Fixed: 3702255
2024-01-24 11:19:11 -08:00
Aasir Rasheed
6ecdcfe927 qcacmn: retry with same num links incase of assoc failure
Currently for any assoc failure the number of links part of the
association is reduced and retried with less number of partner links.

If the failure is due to "Association request rejected temporarily,
try again later" retry to the same with the same number
of partner links instead of downgrading the links.

Change-Id: Id2b50469a5265b0151c000b3bcead2db361ad152
CRs-Fixed: 3708221
2024-01-24 07:44:00 -08:00
Vinod Kumar Myadam
59d256f5ce qcacmn: Add frame length check in util_gen_link_reqrsp_cmn
While parsing probe response and assoc response frame,
timestamp data is copied to buffer variable without validating
the frame length. If received frame length is less than max
size of timestamp, this will lead Out-of-bound access.

Add frame length check with max size of timestamp before copying
from the frame received in util_gen_link_reqrsp_cmn.

Change-Id: I055ccc84d334316ecd772e19371d315274373c04
CRs-Fixed: 3699954
2024-01-23 04:59:20 -08:00
Aasir Rasheed
924e277dd2 qcacmn: update check for informing partner bssid to kernel
Currently, Host driver is updating partner bssid to kernel
based on number of link. In some cases number of link may be zero
leading to not updating partner link bssid to kernel.

This change is to eliminate number of link check for updating
partner link BSSID to kernel.

Change-Id: I2e2704aeaea0db41c4d82792808cc8765290cc7c
CRs-Fixed: 3707662
2024-01-21 08:55:39 -08:00
Deeksha Gupta
13c5f7f8d0 qcacmn: Fix ML IE copy from main frame to non-Tx VAP frame
Currently, while generating non-TX VAP scan entry from the
TX VAP beacon or probe response MBSSID IE, driver copies
the ML IE from MBSSID and main frame which lead to 2 ML IE
in the TX VAP frame.

Fix is, add proper check to copy the non-TX VAP ML IE from
MBSSID IE.

CRs-Fixed: 3708786
Change-Id: I93f2552fe8a0080ffc871b39b164fadd86df8ff0
2024-01-21 08:55:28 -08:00
Asutosh Mohapatra
817b9dfca7 qcacmn: Add support to validate roaming cfg file
Currently host is not validating roaming cfg file
per key and value and only checking if no unpermitted
characters are present in the file before parsing.

To address this issue, parse roaming ini file
only if no unpermitted characters are present in the key
and value otherwise fall back to roaming backup ini file.
If the backup file don't pass validation criteria's
then don't parse it as well.

Change-Id: I6068d41ed67698ec60c0985151282936590b1544
CRs-Fixed: 3678910
2024-01-19 12:22:30 -08:00
Manikanta Pubbisetty
e6fec28c32 qcacmn: Allocate memory from heap for NBUF references
Currently a fixed size array of 2K is used to hold the NBUF pointer
references for RX refill thread NBUFs. Since the queue length of the
NBUF queue is a compile time config, any length change beyond 2K
would result in overflow errors.

Allocate the memory for NBUF references dynamically instead to avoid
such overflow conditions.

Change-Id: I20680768faf20d7688ce33f68ce2aa2be2079be0
CRs-Fixed: 3707803
2024-01-19 12:22:19 -08:00
Vinod Kumar Pirla
d2815cb9cf qcacmn: Remove serialization command priority on HO fail
On HO failure driver triggers internal disconnect and if
the existing connection is two link MLO, then disconnect
is issued first on partner VDEV and later on assoc VDEV.

To avoid STA+STA roaming conflict where STA2 roamed to
STA1's BSSID and STA1 resulted in HO failure and to
prioritize STA1 cleanup so that STA2 will not fail during
peer create.
The original change I379c03138b70580f44c2b96489ada030ec6fc20e

This is leading to cleaning up assoc VDEV first followed by
partner VDEV, but DP component removes the entry of DP peer
on assoc VDEV cleanup as the expectation is partner VDEV
gets cleaned first followed by assoc VDEV. This is causes
reference leak on the peer.

To address this issue don't prioritize disconnect for
HO Fail case.

Change-Id: I8d5abd0bb5ded49527ce851b9155ad22d7dcf5a8
CRs-Fixed: 3708018
2024-01-19 12:22:08 -08:00
Yu Tian
9ae6559c96 qcacmn: Separate Peer state get call from fast path
Peer state could be queried from both fast path and
slow path. Change separates this call and allows log
print from slow path call.

Change-Id: Iad2cc209e15fe95366cd606c5daa6233f2c5535e
CRs-Fixed: 3700370
2024-01-17 00:37:50 -08:00
Rakesh Pillai
a5c5711971 qcacmn: Add vdev delete notify callback
Add vdev delete notify callback for DP vdev, which
is called when dp_vdev is freed. This will notify
the osif/non-cmn dp layer upon dp_vdev delete.

Change-Id: I22110ebd048066e84644c04b4903c50dd61c61a4
CRs-Fixed: 3696638
2024-01-17 00:37:37 -08:00
Alan Z. Chen
37cd1d31ac qcacmn: Add changes to compile on LTS 6.5 kernel
Add necessary changes for deprecated kernel APIs and other changes
in kernel code in order to compile on LTS 6.5 kernel.

Change-Id: I7c51b1d435090877d488f6433357ed1ed7c265b4
CRs-Fixed: 3663875
2024-01-16 08:16:17 -08:00
Lin Bai
7278b2ca6b qcacmn: Fix improper return value
Fix improper return value, to avoid compiler complain.

Change-Id: I21729bf96aa6561d6282bb456451e1e1a0748609
CRs-Fixed: 3674783
2024-01-16 08:16:06 -08:00
Lin Bai
737b028eea qcacmn: Fix code indent
Fix code indent issue, to avoid compiler complain.

Change-Id: I21729bf9aaa6561d6282bb456451e1e1a0748609
CRs-Fixed: 3674783
2024-01-16 08:15:56 -08:00
Lin Bai
6fbd10b2eb qcacmn: Fix function prototype and definition mismatch
Fix function prototype and definition mismatch,
to avoid compiler complain.

Change-Id: I21729bf9daa6561d6282bb456451e1e1a0748609
CRs-Fixed: 3674783
2024-01-16 08:15:45 -08:00
Lin Bai
ece2e29fdf qcacmn: Fix uninitialized variable used issue
Fix uninitialized variable used issue,
to avoid compiler complain.

Change-Id: I21729bf98aa6561d6282bb456451e1e1a0748609
CRs-Fixed: 3674783
2024-01-16 08:15:35 -08:00
Yu Tian
be177477de qcacmn: Check RX rings empty after received WoW ACK
After received WoW ACK from FW, there should be some RX packets
coming and IRQ delayed, if these packets are not got processed,
FW UMAC will crash. Change adds an explicit check and abort suspend
if rings are not empty.

Change-Id: I758e1b71d0f5fc9be8cab1bea0f3db20c1698ecc
CRs-Fixed: 3693657
2024-01-15 00:33:16 -08:00
Surabhi Vishnoi
a8d5f5b756 qcacmn: Fix compilation error observed with upstream kernel
Include <linux/qcom-iommu-util.h> file based on ANDROID_COMMON_KERNEL
macro as this file is not available in upstream kernel.

Change-Id: I2e56b33d290319352236d1faae3b29cd6362bc07
CRs-Fixed: 3682260
2024-01-12 11:44:14 -08:00
Surabhi Vishnoi
2e17c21b55 qcacmn: Enable CFG80211_SINGLE_NETDEV_MULTI_LINK_SUPPORT for kernel-6.6
Currently, CFG80211_SINGLE_NETDEV_MULTI_LINK_SUPPORT is enabled based on
__ANDROID_COMMON_KERNEL__ and kernel version greater than equal to 5.15.

Enable it for above condition or if kernel version is greater than or
equal to 6.6.

Change-Id: I12ae6bf116e37999c935012485651bfadf8b9b2a
CRs-Fixed: 3681611
2024-01-12 11:44:00 -08:00
Surabhi Vishnoi
1446cc3832 qcacmn: Fix mismatched format compilation error
Fix compilation error due to mismatched format type in log.

Change-Id: I9cb80f38ada13f623240fa1e5f3a53a632dac78d
CRs-Fixed: 3678442
2024-01-12 11:43:49 -08:00
Vinod Kumar Pirla
95b011605e qcacmn: Enhance allowed security modes for EHT via OEM cfg
Certain APs available to end users may allow EHT/MLO config
in non-WPA3 security modes (like WPA2). Current implementation
will not allow connection to such APs in EHT/MLO and instead
downgrades to 11ax mode.

OEMs may want to control this driver behavior via INI based
on the requirement. To allow connecting to such APs in EHT/MLO
a new INI is introduced as a bitmap. The default value of this
INI will not allow connection to any of those APs in EHT/MLO.

Change-Id: I3e657f3f4ba1f5efc9263cb90bcd1773233975ac
CRs-Fixed: 3693813
2024-01-11 13:09:30 -08:00
Vinod Kumar Pirla
c739c3b6cd qcacmn: Only allow partner links with matching RSN caps
Each link in MLO can have different RSN capabilities with
different AKMs, PMF capability, UC/MC cipher suites and so on.
For any choice of links for MLO connection, the AKMs of the
links should have one common AKM.

Eliminate partner links without overlapping AKMs from MLO
connection.
Modify partner link AKM to match assoc link AKM, so that
only overlapping AKM is chosen even though an AKM with
higher security exists for partner link.

Change-Id: I9573e938789a4b95ae824872845d31008861f6f2
CRs-Fixed: 3693814
2024-01-11 13:09:19 -08:00
Vinod Kumar Pirla
01e1c46c4e qcacmn: Generate ML prb rsp from assoc rsp
For non-TxMBSSID ML AP ML probe req may not receive any response
from MBSSID AP and later partner link may fail to connect as
scan entry is not present.
Introduce new flag to suggest whether the partner link scan entry
is present or not in the scan DB. If flag is set to true, generate
scan entry for such links.

Introduce new APIs which will generate ML probe resp using
the per-STA profile of partner link from assoc resp frame.

Introduce API to get the current candidate scan entry from
connect request.

Change-Id: I1c33956b01eb468afa26be5b0bfba634ee3a0aee
CRs-Fixed: 3675830
2024-01-10 09:54:22 -08:00
Karthik Kantamneni
29002e8730 qcacmn: Handle ipa_init when opt_ipa_wifi is not supported
Handle ipa_init when opt_ipa_wifi capability is not supported
by IPA subsystem.

Change-Id: I6a120589b4ba6b60a1c15420c545f4768cff047b
CRs-Fixed: 3695354
2024-01-10 04:43:19 -08:00
Abhinav Kumar
abcf99cc9c qcacmn: Update EHT cap IE as per current country code
On set country code, host updates EHT cap IE to FW via
WMI_VDEV_SET_IE_CMDID command. 320 MHz BW capability in
EHT cap IE should be as per new country code.

Change-Id: I3b80dbeee6f35dacc41f15612373ea7f8efc5803
CRs-Fixed: 3670311
2024-01-09 16:49:45 -08:00
Vinod Kumar Myadam
f8a9ddcbd5 qcacmn: Rate limit excessive logging while getting descriptor
Excessive logging in wlan_mgmt_txrx_desc_get if descritor is
not found.

Rate limit excessive logging in error log.

Change-Id: I929c5cca5dea94db4b618f0390d76a6ca83159a9
CRs-Fixed: 3696162
2024-01-09 02:57:43 -08:00
Aasir Rasheed
6a00a21f34 qcacmn: Use QDF_MAC_ADDR_FMT to print mac address
This change is to use QDF_MAC_ADDR_FMT to print mac address.

Change-Id: I2bd9beed55f8687356ba3b8a774cff32dbf61200
CRs-Fixed: 3676087
2024-01-08 23:32:49 -08:00
Srinivas Dasari
0c96c2267d qcacmn: Restore RSO state to upon link switch failure
RSO is stopped upon receiving link switch request to avoid the
race between link switch and roaming. RSO is enabled again once
link switch operation is successfully completed, i.e. upon connect
complete of the new link.
But link switch may fail due to multiple reasons (e.g. scan
result/partner info is not available for link switch) and the
connection is retained with single link as the other link is
already cleaned up as part of link switch request processing.
RSO is not enabled in such failure cases and thus firmware
doesn't roam even it finds a better candidate.
Restore RSO state to ENABLED upon link switch failure.
Also, cleanup the failed link bit in wlan_connected_links upon
link switch failure.

Change-Id: Ieefd7bf9615c80e7ab6ecdbee5c99d6e52857cc6
CRs-Fixed: 3681892
2024-01-08 04:49:06 -08:00
Karthik Kantamneni
743218686f qcacmn: Fix uninitialized mon status desc pool lock issue
Currently Mon status ring resources allocation and cleanup
is not in sync, during cleanup we are freeing more than allocated
for single MAC solutions like QCA6750.

Fix this by cleaning mon status ring resources properly for single
mac QCA6750.

Change-Id: I8c8564d106fda29f7a6a36f887aa3adee9dc1edf
CRs-Fixed: 3693448
2024-01-08 01:33:28 -08:00
Vinod Kumar Pirla
da11474ac2 qcacmn: Add MLD addr filter in link VDEV candidate selection
Wireless environment may have APs with same BSSID but different
MLD address and if any APs BSSID is similar to the current
candidates affiliated partner link BSSID, then receiving beacon
or probe resp from such APs will override the affiliated link's
scan entry and the MLD address may be different or NULL if the
AP is non-ML.

If link VDEV connection starts and during candidate selection
it may find the scan entry of this other AP and attempt to drive
connection will lead to creating ML link VDEV's peer with
different MLD address than assoc VDEV's peer.

Enhance scan filter to match MLD address for link VDEV to avoid
such scan entry override.

Change-Id: I11c9b4efdf2d60e92482b296d731d613a200bf0e
CRs-Fixed: 3668326
2024-01-04 02:53:14 -08:00
jinbao liu
b80337cee1 qcacmn: Refine htc_tx_completion_handler() log to avoid flooding
This change refines the log in htc_tx_completion_handler()
to avoid flooding by using qdf_rl_err().

Change-Id: If24f29cab89098a5e33f79aaa2cf43704b957d0f
CRs-Fixed: 3694797
2024-01-04 02:53:02 -08:00
Pragaspathi Thilagaraj
7ddc1542ad qcacmn: Don't send replay counter value for all FT AKMs
In roam_auth vendor event sent to userspace after roaming, the
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR attribute should
not be filled for any of the FT AKMs.
But currently its filled for below FT AKMs:
WLAN_CRYPTO_KEY_MGMT_FT_PSK
WLAN_CRYPTO_KEY_MGMT_FT_FILS_SHA256
WLAN_CRYPTO_KEY_MGMT_FT_FILS_SHA384
WLAN_CRYPTO_KEY_MGMT_FT_PSK_SHA384

This causes the GTK M1 frame received at the supplicant
to be dropped since EAPOL Key replay counter didn't increase
for PSK connection.
So disconnection occurs due to GTK handshake failure.

So don't fill the key replay counter attribute for all the
FT AKMs.

CRs-Fixed: 3674872
Change-Id: I34f88a8c8e8259a701b553284d492fe31597bea3
2024-01-02 16:36:42 -08:00
Vijay Raj
f57a86b4b9 qcacmn: Fix Connecting log to print during connect failure
For the NO Candidate scenario, the connecting event is
not logged resulting in breaking the connectivity logging
mechanism sanity.

Add support to log CONNECTING connectivity log during
NO CANDIDATE found scenario in order to maintain the
logging mechanism sanity.

Change-Id: I534307802d28365ffea330e85b710074ab863c09
CRs-Fixed: 3678114
2023-12-29 07:03:09 -08:00
Jianmin Zhu
476e23f5cb qcacmn: Add service bit for p2p device update mac addr
Add service bit for p2p device update mac addr dynamically.

Change-Id: Ib957aa606c640e6b94db580e33a4454e90da2f49
CRs-Fixed: 3687270
2023-12-28 13:01:22 -08:00
Arun Kumar Khandavalli
a6fb445d02 qcacmn: Restrict max tbtt info length to current max supported length
Currently if the TBTT length is more than max supported length
driver doesn't the mld information from the RNR IE. This leads
to SLO rather than MLO.

Add the fix to restrict the max length to current supported max
length which helps to parse the ML information further
results in ML association.

CRs-Fixed: 3679296
Change-Id: Id8c58044be162f638ed5e74e0fd04aa0b77780f5
2023-12-28 13:01:10 -08:00
Yu Tian
803410c7fc qcacmn: Avoid using smp_processor_id when preemptible
Use qdf_get_cpu() as it takes care for disabling preemption.

Change-Id: I5ddbfd6f75b1659a193238858056937df36db86d
CRs-Fixed: 3691399
2023-12-27 11:42:07 -08:00
Yu Wang
dbaed14ee7 qcacmn: optimize code for register read/write
Optimize code for checking flag which indicates srngs initialization
during register read/write.

Change-Id: I6e3d2446b1df7214aaa90483046524c7cc01533f
CRs-Fixed: 3670754
2023-12-26 22:10:35 -08:00
Liangwei Dong
a62d430c2e qcacmn: Add QCA vendor command to query transmit power information
Add a new QCA subcommand QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO
and related attributes qca_wlan_vendor_attr_tpc_links,
qca_wlan_vendor_attr_tpc definition to query transmit power information
on STA interface from the driver for a connected AP.

The information includes regulatory max transmit power limit, AP local
power constraint advertised from AP's Beacon and Probe Response frames.
For PSD power mode, the information includes PSD power levels for each
subchannel of operating bandwidth. The information is driver calculated
power limits based on current regulatory domain, AP local power
constraint and other IEs. The information will be set to target. Target
will decide final TX power based on this and chip specific power
conformance test limits (CTL), and SAR limits.

Change-Id: I196640cdd9e6454b040abb80b23d380c517ac118
CRs-Fixed: 3688242
2023-12-25 16:57:40 -08:00
Vinod Kumar Pirla
f26efecdf9 qcacmn: Add VSIE matching with select action OUI filter
In order to identify certain vendor APs, it generated
AP beacon from MBSSID nonTx profile shall include these
Vendor Specific IEs (VSIEs).
If any matching VSIE of interest is present, copy the
IE to generated frame.

Change-Id: Ic3566ad0123c7353d7ace1b0077d6a3730d10dc8
CRs-Fixed: 3682937
2023-12-21 04:35:11 -08:00
Asutosh Mohapatra
f4b53caa2a qcacmn: Handle ho failure for STA + STA roaming
Currently for STA + STA case, consider the below scenario:
1. Roam start received on vdev 2 & vdev 0. Vdev 2 roam
   serialization command becomes active and vdev 0 roam
   command is on the pending queue.
2. HO failure with AP0 received on vdev 2. This dequeues
   the vdev2 roam serialization command. Vdev0 roam command
   becomes active.
3. Roam synch indication received on vdev0 with peer AP as
   AP0 (which is the peer on vdev 2). So duplicate detection
   logic prevents same peer creation, so roam synch fails but
   its not indicated properly to firmware. This leads to
   disconnection of both the STAs.

To address the issue, first enqueue disconnect with high
priority set before removing roam command from serialization
so disconnect gets activated if roam was active for the
vdev.
Also while processing roam synch indication, check if peer is
found on different STA and send roam stop to fw so fw also
cleans up and initiates HO failure.

Change-Id: I379c03138b70580f44c2b96489ada030ec6fc20e
CRs-Fixed: 3686660
2023-12-21 02:23:02 -08:00
jinbao liu
cf8f844d0c qcacmn: Fix an array index out of bounds issue
Sometimes when the stats of MLD_PEER is requested, Access
Violation may occur because peer_stats[1], which does not
exit, may be accessed. This change fixes this issue by
aggregating the stats of all link_peer into peer_stats[0].

Change-Id: Ib8138d4b95bef39b084756dd9f9ffae67967100a
CRs-Fixed: 3678284
2023-12-20 18:30:54 -08:00
Yu Tian
efc1a90bed qcacmn: Add handler for REO HW queue map failure
When REO HW queue DMA maps failure, there is no
log output. Change will give more retires for such
map failure and output error log at last.

Change-Id: I11d6439b74fd4423441f3e0ce0ce18a4ee762e4b
CRs-Fixed: 3671197
2023-12-20 12:40:18 -08:00
Vinod Kumar Pirla
c3051ec402 qcacmn: Combine MLO VDEV and MLO LINK VDEV flags
If MLO link VDEV flag is set but MLO VDEV flag is not set
the APIs only checking for MLO link VDEV will assume VDEV
as ML but the APIs checking MLO VDEV will assume VDEV as
non-ML, this is not valid.

As per definition of MLO VDEV and MLO link VDEV:
 -If any VDEV is MLO link VDEV then it has to be MLO VDEV.
 -If any VDEV is not MLO VDEV then it shall not be MLO link VDEV.

Change contains following:
 -On clearing MLO VDEV flag, clear MLO link VDEV flag.
 -On setting MLO link VDEV flag, set MLO VDEV flag if not
  already set.

Change-Id: I8efeaa1cb75b37e5f7f2cc5c16067df677000c45
CRs-Fixed: 3657212
2023-12-15 01:57:45 -08:00
Vinod Kumar Pirla
4bf1baaed2 qcacmn: Include PID in SM history
Add PID name where SM events and transition
happened to help debug issues where the info
about which task started a certain event to
happen are crucial to rootcause the problem.

Change-Id: I208b46c6d0ec725ab0d9713bf2dd562c40719a24
CRs-Fixed: 3624811
2023-12-15 01:57:33 -08:00
Asutosh Mohapatra
56e6df6383 qcacmn: Send additional interface combinations to fw
As part of set feature set command, update STA_P2P,
STA_SAP, STA_NAN, STA_TDLS, STA_SAP_P2P, STA_SAP_NAN,
STA_P2P_NAN, STA_P2P_TDLS, STA_SAP_TDLS, STA_NAN_TDLS,
STA_SAP_P2P_TDLS, STA_SAP_NAN_TDLS, STA_P2P_P2P_TDLS,
STA_P2P_NAN_TDLS iface combinations to fw.

Change-Id: I360ee80778ce4a7a89341374ab3e861890507ef2
CRs-Fixed: 3674698
2023-12-14 09:10:54 -08:00
Vinod Kumar Pirla
b0ca707783 qcacmn: Set link switch conf inline with link switch connect
Successful link switch connect implies that the VDEV-Link mapping
changed in driver and FW expects success notification in link switch
confirmation after which FW updates internal fields to reflect this
VDEV-Link mapping same as in driver.
If driver receives SB disconnect while link switch is in progress,
it defers the SB disconnect and moves link switch to abort state.
As current state is in abort, host will forcefully sends failure
status to FW in link switch confirmation and immediately starts SB
disconnect and sends VDEV_STOP to FW. As link switch status is
failure, VDEV-Link mapping is not updated in FW and FW might send
another link switch request with params corresponding to previous
VDEV-Link mapping and leads to Host-FW out of sync issue.

If the status of link switch connect is success, then force link
switch confirmation status to success so that FW can update new
VDEV-Link mapping.

Change-Id: Iaa9836f9089a2f8fcbf4d49e3c598f9a01aa8d06
CRs-Fixed: 3665211
2023-12-14 07:01:59 -08:00
Manikanta Pubbisetty
4015f3bf89 qcacmn: Do not setup CE write index offset for FW only CE rings
Currently for WCN6450, driver is updating the CE write index offset
used for CE register updates even for the CE rings that are firmware
only rings. This is resulting in a boot time WARN_ON.

Do not setup write index offset for CE rings that are used only by
the target firmware to avoid this early on boot time WARN_ON.

Change-Id: I241e11ad43f833b5cafc7cd303b935c10d9e6dd8
CRs-Fixed: 3670952
2023-12-12 06:35:19 -08:00
Yu Tian
2a709c7cec qcacmn: Add parameter to support drain RX rings only
Add a parameter to support drain RX related rings only.

Change-Id: Id30e92646698bd6b409468c98934a1716763d1e3
CRs-Fixed: 3675835
2023-12-11 00:04:31 -08:00
jinbao liu
b4f2073ac3 qcacmn: Optimize rx reorder queue setup
This change optimizes rx reorder queue setup by using
tid_bitmap, which contains a group of tids, to set up
multi tids at a time instead of one tid after another.

Change-Id: I161b0c812c436ef79d2d1db693b8d0ac41505878
CRs-Fixed: 3661593
2023-12-08 15:22:17 -08:00