Lines Matching refs:mvif
355 struct mt792x_vif *mvif = mconf->vif; in mt7925_mac_link_bss_add() local
370 if (mvif->phy->mt76->chandef.chan->band != NL80211_BAND_2GHZ) in mt7925_mac_link_bss_add()
381 mvif->phy->omac_mask |= BIT_ULL(mconf->mt76.omac_idx); in mt7925_mac_link_bss_add()
410 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_add_interface() local
417 mvif->phy = phy; in mt7925_add_interface()
418 mvif->bss_conf.vif = mvif; in mt7925_add_interface()
419 mvif->sta.vif = mvif; in mt7925_add_interface()
420 mvif->deflink_id = IEEE80211_LINK_UNSPECIFIED; in mt7925_add_interface()
422 ret = mt7925_mac_link_bss_add(dev, &vif->bss_conf, &mvif->sta.deflink); in mt7925_add_interface()
436 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_roc_iter() local
439 mt7925_mcu_abort_roc(phy, &mvif->bss_conf, phy->roc_token_id); in mt7925_roc_iter()
552 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_remain_on_channel() local
557 err = mt7925_set_roc(phy, &mvif->bss_conf, in mt7925_remain_on_channel()
567 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_cancel_remain_on_channel() local
570 return mt7925_abort_roc(phy, &mvif->bss_conf); in mt7925_cancel_remain_on_channel()
578 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_set_link_key() local
580 &mvif->sta; in mt7925_set_link_key()
591 mconf = mt792x_vif_to_link(mvif, link_id); in mt7925_set_link_key()
604 if (!mvif->wep_sta) in mt7925_set_link_key()
645 err = mt7925_mcu_add_key(&dev->mt76, vif, &mvif->wep_sta->deflink.bip, in mt7925_set_link_key()
647 &mvif->wep_sta->deflink.wcid, cmd, msta); in mt7925_set_link_key()
657 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_set_key() local
659 &mvif->sta; in mt7925_set_key()
804 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7925_get_rates_table() local
816 idx = MT7925_BEACON_RATES_TBL + 2 * (mvif->idx % 20); in mt7925_get_rates_table()
826 return mvif->basic_rates_idx; in mt7925_get_rates_table()
834 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_mac_link_sta_add() local
849 mconf = mt792x_vif_to_link(mvif, link_id); in mt7925_mac_link_sta_add()
951 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_mac_sta_add() local
955 msta->vif = mvif; in mt7925_mac_sta_add()
958 mvif->wep_sta = msta; in mt7925_mac_sta_add()
1026 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_mac_set_links() local
1028 mt792x_vif_to_bss_conf(vif, mvif->deflink_id); in mt7925_mac_set_links()
1033 u8 secondary_link_id = __ffs(~BIT(mvif->deflink_id) & sel_links); in mt7925_mac_set_links()
1043 mt7925_abort_roc(mvif->phy, &mvif->bss_conf); in mt7925_mac_set_links()
1047 mt7925_set_mlo_roc(mvif->phy, &mvif->bss_conf, sel_links); in mt7925_mac_set_links()
1210 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_mac_sta_remove() local
1212 mvif->wep_sta = NULL; in mt7925_mac_sta_remove()
1213 ewma_rssi_init(&mvif->bss_conf.rssi); in mt7925_mac_sta_remove()
1517 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_sta_set_decap_offload() local
1519 unsigned long valid = mvif->valid_links; in mt7925_sta_set_decap_offload()
1524 valid = ieee80211_vif_is_mld(vif) ? mvif->valid_links : BIT(0); in mt7925_sta_set_decap_offload()
1602 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_ipv6_addr_change() local
1604 mvif->valid_links : BIT(0); in mt7925_ipv6_addr_change()
1668 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_conf_tx() local
1669 struct mt792x_bss_conf *mconf = mt792x_vif_to_link(mvif, link_id); in mt7925_conf_tx()
1687 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_start_ap() local
1693 err = mt7925_mcu_add_bss_info(&dev->phy, mvif->bss_conf.mt76.ctx, in mt7925_start_ap()
1714 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_stop_ap() local
1724 mt7925_mcu_add_bss_info(&dev->phy, mvif->bss_conf.mt76.ctx, link_conf, in mt7925_stop_ap()
1753 struct mt792x_vif *mvif; in mt7925_change_chanctx() local
1759 mvif = mconf->vif; in mt7925_change_chanctx()
1760 vif = container_of((void *)mvif, struct ieee80211_vif, drv_priv); in mt7925_change_chanctx()
1764 mt7925_mcu_set_sniffer(mvif->phy->dev, vif, true); in mt7925_change_chanctx()
1765 mt7925_mcu_config_sniffer(mvif, ctx); in mt7925_change_chanctx()
1768 unsigned long valid = mvif->valid_links; in mt7925_change_chanctx()
1772 mconf = mt792x_vif_to_link(mvif, i); in mt7925_change_chanctx()
1778 mconf = &mvif->bss_conf; in mt7925_change_chanctx()
1785 mt7925_mcu_set_chctx(mvif->phy->mt76, &mconf->mt76, in mt7925_change_chanctx()
1797 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_mgd_prepare_tx() local
1803 mt7925_set_roc(mvif->phy, &mvif->bss_conf, in mt7925_mgd_prepare_tx()
1804 mvif->bss_conf.mt76.ctx->def.chan, duration, in mt7925_mgd_prepare_tx()
1813 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_mgd_complete_tx() local
1815 mt7925_abort_roc(mvif->phy, &mvif->bss_conf); in mt7925_mgd_complete_tx()
1822 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_vif_cfg_changed() local
1825 mvif->valid_links : BIT(0); in mt7925_vif_cfg_changed()
1859 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_link_info_changed() local
1864 mconf = mt792x_vif_to_link(mvif, info->link_id); in mt7925_link_info_changed()
1908 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_change_vif_links() local
1923 mconf = mt792x_vif_to_link(mvif, link_id); in mt7925_change_vif_links()
1924 mlink = mt792x_sta_to_link(&mvif->sta, link_id); in mt7925_change_vif_links()
1929 if (mconf != &mvif->bss_conf) { in mt7925_change_vif_links()
1935 rcu_assign_pointer(mvif->link_conf[link_id], NULL); in mt7925_change_vif_links()
1936 rcu_assign_pointer(mvif->sta.link[link_id], NULL); in mt7925_change_vif_links()
1941 mvif->deflink_id = link_id; in mt7925_change_vif_links()
1942 mconf = &mvif->bss_conf; in mt7925_change_vif_links()
1943 mlink = &mvif->sta.deflink; in mt7925_change_vif_links()
1954 mconf->vif = mvif; in mt7925_change_vif_links()
1957 mlink->wcid.def_wcid = &mvif->sta.deflink.wcid; in mt7925_change_vif_links()
1960 if (hweight16(mvif->valid_links) == 0) in mt7925_change_vif_links()
1961 mt792x_mac_link_bss_remove(dev, &mvif->bss_conf, in mt7925_change_vif_links()
1962 &mvif->sta.deflink); in mt7925_change_vif_links()
1969 rcu_assign_pointer(mvif->link_conf[link_id], mconf); in mt7925_change_vif_links()
1970 rcu_assign_pointer(mvif->sta.link[link_id], mlink); in mt7925_change_vif_links()
1976 if (mconf != &mvif->bss_conf) { in mt7925_change_vif_links()
1977 err = mt7925_set_mlo_roc(phy, &mvif->bss_conf, in mt7925_change_vif_links()
1984 mvif->valid_links = new_links; in mt7925_change_vif_links()
1992 rcu_assign_pointer(mvif->link_conf[link_id], NULL); in mt7925_change_vif_links()
1993 rcu_assign_pointer(mvif->sta.link[link_id], NULL); in mt7925_change_vif_links()
1995 if (mconf != &mvif->bss_conf) in mt7925_change_vif_links()
1997 if (mlink != &mvif->sta.deflink) in mt7925_change_vif_links()
2040 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_assign_vif_chanctx() local
2048 mconf = mt792x_vif_to_link(mvif, link_conf->link_id); in mt7925_assign_vif_chanctx()
2049 pri_link_conf = mt792x_vif_to_bss_conf(vif, mvif->deflink_id); in mt7925_assign_vif_chanctx()
2052 mconf == &mvif->bss_conf) in mt7925_assign_vif_chanctx()
2056 mconf = &mvif->bss_conf; in mt7925_assign_vif_chanctx()
2072 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_unassign_vif_chanctx() local
2080 mconf = mt792x_vif_to_link(mvif, link_conf->link_id); in mt7925_unassign_vif_chanctx()
2081 pri_link_conf = mt792x_vif_to_bss_conf(vif, mvif->deflink_id); in mt7925_unassign_vif_chanctx()
2084 mconf == &mvif->bss_conf) in mt7925_unassign_vif_chanctx()
2088 mconf = &mvif->bss_conf; in mt7925_unassign_vif_chanctx()