@@ -1199,10 +1199,10 @@ static inline struct ath12k_hw *ath12k_ab_to_ah(struct ath12k_base *ab, int idx)
return ab->ag->ah[idx];
}
-static inline void ath12k_ab_set_ah(struct ath12k_base *ab, int idx,
+static inline void ath12k_ag_set_ah(struct ath12k_hw_group *ag, int idx,
struct ath12k_hw *ah)
{
- ab->ag->ah[idx] = ah;
+ ag->ah[idx] = ah;
}
static inline int ath12k_get_num_hw(struct ath12k_base *ab)
@@ -11362,7 +11362,7 @@ void ath12k_mac_destroy(struct ath12k_hw_group *ag)
continue;
ath12k_mac_hw_destroy(ah);
- ath12k_ab_set_ah(ab, i, NULL);
+ ath12k_ag_set_ah(ag, i, NULL);
}
}
@@ -11443,7 +11443,7 @@ int ath12k_mac_allocate(struct ath12k_hw_group *ag)
continue;
ath12k_mac_hw_destroy(ah);
- ath12k_ab_set_ah(ab, i, NULL);
+ ath12k_ag_set_ah(ag, i, NULL);
}
return ret;