[PATCH v9 6/9] wifi: ath12k: add support for setting fixed HE rate/GI/LTF
Pradeep Kumar Chitrapu
quic_pradeepc at quicinc.com
Tue Jan 28 10:44:22 PST 2025
On 1/26/2025 11:44 AM, Jeff Johnson wrote:
> 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);
>
Sure..thanks Jeff, will address in next revision
More information about the ath12k
mailing list