Lines Matching refs:msta

251 	struct mt7615_sta *msta = &mvif->sta;  in mt7615_remove_interface()  local
254 int idx = msta->wcid.idx; in mt7615_remove_interface()
265 mt76_connac_free_pending_tx_skbs(&dev->pm, &msta->wcid); in mt7615_remove_interface()
278 if (!list_empty(&msta->poll_list)) in mt7615_remove_interface()
279 list_del_init(&msta->poll_list); in mt7615_remove_interface()
350 struct mt7615_sta *msta = sta ? (struct mt7615_sta *)sta->drv_priv : in mt7615_set_key() local
352 struct mt76_wcid *wcid = &msta->wcid; in mt7615_set_key()
623 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_mac_sta_add() local
632 INIT_LIST_HEAD(&msta->poll_list); in mt7615_mac_sta_add()
633 msta->vif = mvif; in mt7615_mac_sta_add()
634 msta->wcid.sta = 1; in mt7615_mac_sta_add()
635 msta->wcid.idx = idx; in mt7615_mac_sta_add()
636 msta->wcid.phy_idx = mvif->mt76.band_idx; in mt7615_mac_sta_add()
665 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_mac_sta_remove() local
669 mt76_connac_free_pending_tx_skbs(&dev->pm, &msta->wcid); in mt7615_mac_sta_remove()
675 mt7615_mac_wtbl_update(dev, msta->wcid.idx, in mt7615_mac_sta_remove()
681 if (!list_empty(&msta->poll_list)) in mt7615_mac_sta_remove()
682 list_del_init(&msta->poll_list); in mt7615_mac_sta_remove()
695 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_sta_rate_tbl_update() local
703 for (i = 0; i < ARRAY_SIZE(msta->rates); i++) { in mt7615_sta_rate_tbl_update()
704 msta->rates[i].idx = sta_rates->rate[i].idx; in mt7615_sta_rate_tbl_update()
705 msta->rates[i].count = sta_rates->rate[i].count; in mt7615_sta_rate_tbl_update()
706 msta->rates[i].flags = sta_rates->rate[i].flags; in mt7615_sta_rate_tbl_update()
708 if (msta->rates[i].idx < 0 || !msta->rates[i].count) in mt7615_sta_rate_tbl_update()
711 msta->n_rates = i; in mt7615_sta_rate_tbl_update()
713 mt7615_mac_set_rates(phy, msta, NULL, msta->rates); in mt7615_sta_rate_tbl_update()
742 struct mt7615_sta *msta = NULL; in mt7615_tx() local
746 msta = (struct mt7615_sta *)control->sta->drv_priv; in mt7615_tx()
747 wcid = &msta->wcid; in mt7615_tx()
754 msta = &mvif->sta; in mt7615_tx()
755 wcid = &msta->wcid; in mt7615_tx()
794 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_ampdu_action() local
809 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, in mt7615_ampdu_action()
814 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt7615_ampdu_action()
821 ssn = mt7615_mac_get_sta_tid_sn(dev, msta->wcid.idx, tid); in mt7615_ampdu_action()
831 ssn = mt7615_mac_get_sta_tid_sn(dev, msta->wcid.idx, tid); in mt7615_ampdu_action()
1199 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_sta_set_decap_offload() local
1204 set_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7615_sta_set_decap_offload()
1206 clear_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7615_sta_set_decap_offload()