On 1/13/2025 4:38 PM, Pradeep Kumar Chitrapu wrote: ... > +static int > +ath12k_mac_set_peer_he_fixed_rate(struct ath12k_link_vif *arvif, > + struct ath12k_link_sta *arsta, > + const struct cfg80211_bitrate_mask *mask, > + enum nl80211_band band) > +{ > + struct ath12k *ar = arvif->ar; > + u8 he_rate, nss; > + u32 rate_code; > + int ret, i; > + struct ath12k_sta *ahsta = arsta->ahsta; > + struct ieee80211_sta *sta; > + > + lockdep_assert_wiphy(ath12k_ar_to_hw(ar)->wiphy); > + > + sta = container_of((void *)ahsta, struct ieee80211_sta, drv_priv); we have a helper for this so please use it: sta = ath12k_ahsta_to_sta(ahsta);