mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
wifi: ath12k: don't skip non-primary links for WCN7850
The primary link check bypasses REO queue setup for non-primary links in ath12k_dp_rx_peer_tid_setup(), this works for QCN9274 but breaks WCN7850 as WCN7850 needs it to be done for each link peer. Add a new hardware parameter to differentiate them. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00284-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1 Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00209-QCAHKSWPL_SILICONZ-1 Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com> Link: https://patch.msgid.link/20250409-ath12k-wcn7850-mlo-support-v2-8-3801132ca2c3@quicinc.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
This commit is contained in:
parent
3b9cbce6fd
commit
bcdf2620f9
|
|
@ -1001,7 +1001,8 @@ int ath12k_dp_rx_peer_tid_setup(struct ath12k *ar, const u8 *peer_mac, int vdev_
|
|||
return -ENOENT;
|
||||
}
|
||||
|
||||
if (!peer->primary_link) {
|
||||
if (ab->hw_params->dp_primary_link_only &&
|
||||
!peer->primary_link) {
|
||||
spin_unlock_bh(&ab->base_lock);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1327,6 +1327,8 @@ static const struct ath12k_hw_params ath12k_hw_params[] = {
|
|||
.bdf_addr_offset = 0,
|
||||
|
||||
.current_cc_support = false,
|
||||
|
||||
.dp_primary_link_only = true,
|
||||
},
|
||||
{
|
||||
.name = "wcn7850 hw2.0",
|
||||
|
|
@ -1414,6 +1416,8 @@ static const struct ath12k_hw_params ath12k_hw_params[] = {
|
|||
.bdf_addr_offset = 0,
|
||||
|
||||
.current_cc_support = true,
|
||||
|
||||
.dp_primary_link_only = false,
|
||||
},
|
||||
{
|
||||
.name = "qcn9274 hw2.0",
|
||||
|
|
@ -1497,6 +1501,8 @@ static const struct ath12k_hw_params ath12k_hw_params[] = {
|
|||
.bdf_addr_offset = 0,
|
||||
|
||||
.current_cc_support = false,
|
||||
|
||||
.dp_primary_link_only = true,
|
||||
},
|
||||
{
|
||||
.name = "ipq5332 hw1.0",
|
||||
|
|
@ -1573,6 +1579,8 @@ static const struct ath12k_hw_params ath12k_hw_params[] = {
|
|||
.ce_ie_addr = &ath12k_ce_ie_addr_ipq5332,
|
||||
.ce_remap = &ath12k_ce_remap_ipq5332,
|
||||
.bdf_addr_offset = 0xC00000,
|
||||
|
||||
.dp_primary_link_only = true,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -233,6 +233,9 @@ struct ath12k_hw_params {
|
|||
const struct ce_ie_addr *ce_ie_addr;
|
||||
const struct ce_remap *ce_remap;
|
||||
u32 bdf_addr_offset;
|
||||
|
||||
/* setup REO queue, frag etc only for primary link peer */
|
||||
bool dp_primary_link_only:1;
|
||||
};
|
||||
|
||||
struct ath12k_hw_ops {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user