[PATCH v2] wifi: ath11k: mac: fix struct ieee80211_sband_iftype_data handling
Johannes Berg
johannes at sipsolutions.net
Tue Sep 26 09:43:56 PDT 2023
On Tue, 2023-09-26 at 19:33 +0300, Kalle Valo wrote:
>
> - he_mcs_map = le16_to_cpu(ath11k_mac_get_tx_mcs_map(&sband->iftype_data->he_cap));
> + he_cap = ieee80211_get_he_iftype_cap_vif(sband, arvif->vif);
> + he_mcs_map = le16_to_cpu(ath11k_mac_get_tx_mcs_map(he_cap));
Technically, ieee80211_get_he_iftype_cap_vif() could return NULL if you
didn't actually configure/enable HE for this iftype, the static checkers
might complain here.
johannes
More information about the ath11k
mailing list