Lines Matching refs:mvif

290 	struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;  in mt7921_add_interface()  local
298 mvif->bss_conf.mt76.idx = __ffs64(~dev->mt76.vif_mask); in mt7921_add_interface()
299 if (mvif->bss_conf.mt76.idx >= MT792x_MAX_INTERFACES) { in mt7921_add_interface()
304 mvif->bss_conf.mt76.omac_idx = mvif->bss_conf.mt76.idx; in mt7921_add_interface()
305 mvif->phy = phy; in mt7921_add_interface()
306 mvif->bss_conf.vif = mvif; in mt7921_add_interface()
307 mvif->bss_conf.mt76.band_idx = 0; in mt7921_add_interface()
308 mvif->bss_conf.mt76.wmm_idx = mvif->bss_conf.mt76.idx % MT76_CONNAC_MAX_WMM_SETS; in mt7921_add_interface()
311 &mvif->sta.deflink.wcid, true); in mt7921_add_interface()
315 dev->mt76.vif_mask |= BIT_ULL(mvif->bss_conf.mt76.idx); in mt7921_add_interface()
316 phy->omac_mask |= BIT_ULL(mvif->bss_conf.mt76.omac_idx); in mt7921_add_interface()
318 idx = MT792x_WTBL_RESERVED - mvif->bss_conf.mt76.idx; in mt7921_add_interface()
320 INIT_LIST_HEAD(&mvif->sta.deflink.wcid.poll_list); in mt7921_add_interface()
321 mvif->sta.deflink.wcid.idx = idx; in mt7921_add_interface()
322 mvif->sta.deflink.wcid.phy_idx = mvif->bss_conf.mt76.band_idx; in mt7921_add_interface()
323 mvif->sta.deflink.wcid.hw_key_idx = -1; in mt7921_add_interface()
324 mvif->sta.deflink.wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7921_add_interface()
325 mt76_wcid_init(&mvif->sta.deflink.wcid); in mt7921_add_interface()
330 ewma_rssi_init(&mvif->bss_conf.rssi); in mt7921_add_interface()
332 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.deflink.wcid); in mt7921_add_interface()
350 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_roc_iter() local
353 mt7921_mcu_abort_roc(phy, mvif, phy->roc_token_id); in mt7921_roc_iter()
438 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_remain_on_channel() local
443 err = mt7921_set_roc(phy, mvif, chan, duration, MT7921_ROC_REQ_ROC); in mt7921_remain_on_channel()
452 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_cancel_remain_on_channel() local
455 return mt7921_abort_roc(phy, mvif); in mt7921_cancel_remain_on_channel()
488 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_set_key() local
490 &mvif->sta; in mt7921_set_key()
513 if (!mvif->wep_sta) in mt7921_set_key()
547 &mvif->wep_sta->deflink.bip, in mt7921_set_key()
549 &mvif->wep_sta->deflink.wcid, cmd); in mt7921_set_key()
711 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_bss_info_changed() local
713 mt76_connac_mcu_update_arp_filter(&dev->mt76, &mvif->bss_conf.mt76, in mt7921_bss_info_changed()
743 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_regd_set_6ghz_power_type() local
744 struct mt792x_phy *phy = mvif->phy; in mt7921_regd_set_6ghz_power_type()
787 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_mac_sta_add() local
795 msta->vif = mvif; in mt7921_mac_sta_add()
798 msta->deflink.wcid.phy_idx = mvif->bss_conf.mt76.band_idx; in mt7921_mac_sta_add()
807 mvif->wep_sta = msta; in mt7921_mac_sta_add()
830 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_mac_sta_event() local
838 mt76_connac_mcu_uni_add_bss(&dev->mphy, vif, &mvif->sta.deflink.wcid, in mt7921_mac_sta_event()
839 true, mvif->bss_conf.mt76.ctx); in mt7921_mac_sta_event()
869 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_mac_sta_remove() local
871 mvif->wep_sta = NULL; in mt7921_mac_sta_remove()
872 ewma_rssi_init(&mvif->bss_conf.rssi); in mt7921_mac_sta_remove()
875 &mvif->sta.deflink.wcid, false, in mt7921_mac_sta_remove()
876 mvif->bss_conf.mt76.ctx); in mt7921_mac_sta_remove()
1181 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_ipv6_addr_change() local
1196 .bss_idx = mvif->bss_conf.mt76.idx, in mt7921_ipv6_addr_change()
1287 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_start_ap() local
1294 err = mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.deflink.wcid, in mt7921_start_ap()
1295 true, mvif->bss_conf.mt76.ctx); in mt7921_start_ap()
1315 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_stop_ap() local
1326 mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.deflink.wcid, false, in mt7921_stop_ap()
1327 mvif->bss_conf.mt76.ctx); in mt7921_stop_ap()
1354 struct mt792x_vif *mvif; in mt7921_change_chanctx() local
1359 mvif = container_of(mctx->bss_conf, struct mt792x_vif, bss_conf); in mt7921_change_chanctx()
1360 vif = container_of((void *)mvif, struct ieee80211_vif, drv_priv); in mt7921_change_chanctx()
1364 mt7921_mcu_config_sniffer(mvif, ctx); in mt7921_change_chanctx()
1366 mt76_connac_mcu_uni_set_chctx(mvif->phy->mt76, &mvif->bss_conf.mt76, ctx); in mt7921_change_chanctx()
1374 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_mgd_prepare_tx() local
1380 mt7921_set_roc(mvif->phy, mvif, mvif->bss_conf.mt76.ctx->def.chan, duration, in mt7921_mgd_prepare_tx()
1389 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_mgd_complete_tx() local
1391 mt7921_abort_roc(mvif->phy, mvif); in mt7921_mgd_complete_tx()