Skip to content

Commit 0a548c1

Browse files
committed
wifi: ath12k: Refactor ath12k_hw set helper function argument
JIRA: https://issues.redhat.com/browse/RHEL-79791 commit 21261e4 Author: Karthikeyan Periyasamy <quic_periyasa@quicinc.com> Date: Sun Jan 12 12:46:27 2025 +0530 wifi: ath12k: Refactor ath12k_hw set helper function argument Currently, ath12k_hw is placed inside the ath12k_hw_group. However, the ath12k_hw set helper function takes the device handle and the index as parameters. Here, the index parameter is specific to the group handle. Therefore, change this helper function argument from the device handle to the group handle. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com> Acked-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com> Acked-by: Kalle Valo <kvalo@kernel.org> Link: https://patch.msgid.link/20250112071630.4059410-2-quic_periyasa@quicinc.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com> Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent 62bb758 commit 0a548c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/net/wireless/ath/ath12k/core.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,10 +1199,10 @@ static inline struct ath12k_hw *ath12k_ab_to_ah(struct ath12k_base *ab, int idx)
11991199
return ab->ag->ah[idx];
12001200
}
12011201

1202-
static inline void ath12k_ab_set_ah(struct ath12k_base *ab, int idx,
1202+
static inline void ath12k_ag_set_ah(struct ath12k_hw_group *ag, int idx,
12031203
struct ath12k_hw *ah)
12041204
{
1205-
ab->ag->ah[idx] = ah;
1205+
ag->ah[idx] = ah;
12061206
}
12071207

12081208
static inline int ath12k_get_num_hw(struct ath12k_base *ab)

drivers/net/wireless/ath/ath12k/mac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11362,7 +11362,7 @@ void ath12k_mac_destroy(struct ath12k_hw_group *ag)
1136211362
continue;
1136311363

1136411364
ath12k_mac_hw_destroy(ah);
11365-
ath12k_ab_set_ah(ab, i, NULL);
11365+
ath12k_ag_set_ah(ag, i, NULL);
1136611366
}
1136711367
}
1136811368

@@ -11443,7 +11443,7 @@ int ath12k_mac_allocate(struct ath12k_hw_group *ag)
1144311443
continue;
1144411444

1144511445
ath12k_mac_hw_destroy(ah);
11446-
ath12k_ab_set_ah(ab, i, NULL);
11446+
ath12k_ag_set_ah(ag, i, NULL);
1144711447
}
1144811448

1144911449
return ret;

0 commit comments

Comments
 (0)