On Thu, 2020-05-28 at 11:44 +0200, Johannes Berg wrote: > > +void ieee80211_ie_build_he_6ghz_cap(struct ieee80211_sub_if_data *sdata, > + struct sk_buff *skb) > +{ > + struct ieee80211_local *local = sdata->local; > + struct ieee80211_supported_band *sband; > + const struct ieee80211_sband_iftype_data *iftd; > + enum nl80211_iftype iftype = ieee80211_vif_type_p2p(&sdata->vif); > + u8 *pos; > + u16 cap; > + > + sband = local->hw.wiphy->bands[NL80211_BAND_6GHZ]; Err, no. Of course I need to use ieee80211_get_sband() like you did. johannes