Skip to content

Commit 21261e4

Browse files
Karthikeyan PeriyasamyJeff Johnson
authored andcommitted
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 <[email protected]> Acked-by: Jeff Johnson <[email protected]> Acked-by: Kalle Valo <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jeff Johnson <[email protected]>
1 parent a72eaa1 commit 21261e4

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)