}
 
 static void
-mt7925_mcu_bss_he_tlv(struct sk_buff *skb, struct ieee80211_vif *vif,
+mt7925_mcu_bss_he_tlv(struct sk_buff *skb, struct ieee80211_bss_conf *link_conf,
                      struct mt792x_phy *phy)
 {
 #define DEFAULT_HE_PE_DURATION         4
        struct bss_info_uni_he *he;
        struct tlv *tlv;
 
-       cap = mt76_connac_get_he_phy_cap(phy->mt76, vif);
+       cap = mt76_connac_get_he_phy_cap(phy->mt76, link_conf->vif);
 
        tlv = mt76_connac_mcu_add_tlv(skb, UNI_BSS_INFO_HE_BASIC, sizeof(*he));
 
        he = (struct bss_info_uni_he *)tlv;
-       he->he_pe_duration = vif->bss_conf.htc_trig_based_pkt_ext;
+       he->he_pe_duration = link_conf->htc_trig_based_pkt_ext;
        if (!he->he_pe_duration)
                he->he_pe_duration = DEFAULT_HE_PE_DURATION;
 
-       he->he_rts_thres = cpu_to_le16(vif->bss_conf.frame_time_rts_th);
+       he->he_rts_thres = cpu_to_le16(link_conf->frame_time_rts_th);
        if (!he->he_rts_thres)
                he->he_rts_thres = cpu_to_le16(DEFAULT_HE_DURATION_RTS_THRES);
 
        mt7925_mcu_bss_ifs_tlv(skb, link_conf);
 
        if (link_conf->he_support) {
-               mt7925_mcu_bss_he_tlv(skb, link_conf->vif, phy);
+               mt7925_mcu_bss_he_tlv(skb, link_conf, phy);
                mt7925_mcu_bss_color_tlv(skb, link_conf, enable);
        }