Lines Matching refs:msta
366 struct mt7921_sta *msta = &mvif->sta; in mt7921_remove_interface() local
369 int idx = msta->wcid.idx; in mt7921_remove_interface()
372 mt76_connac_free_pending_tx_skbs(&dev->pm, &msta->wcid); in mt7921_remove_interface()
382 if (!list_empty(&msta->poll_list)) in mt7921_remove_interface()
383 list_del_init(&msta->poll_list); in mt7921_remove_interface()
386 mt76_packet_id_flush(&dev->mt76, &msta->wcid); in mt7921_remove_interface()
427 struct mt7921_sta *msta = sta ? (struct mt7921_sta *)sta->drv_priv : in mt7921_set_key() local
429 struct mt76_wcid *wcid = &msta->wcid; in mt7921_set_key()
477 err = mt76_connac_mcu_add_key(&dev->mt76, vif, &msta->bip, in mt7921_set_key()
479 &msta->wcid, cmd); in mt7921_set_key()
703 struct mt7921_sta *msta = (struct mt7921_sta *)sta->drv_priv; in mt7921_mac_sta_add() local
711 INIT_LIST_HEAD(&msta->poll_list); in mt7921_mac_sta_add()
712 msta->vif = mvif; in mt7921_mac_sta_add()
713 msta->wcid.sta = 1; in mt7921_mac_sta_add()
714 msta->wcid.idx = idx; in mt7921_mac_sta_add()
715 msta->wcid.phy_idx = mvif->mt76.band_idx; in mt7921_mac_sta_add()
716 msta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7921_mac_sta_add()
717 msta->last_txs = jiffies; in mt7921_mac_sta_add()
724 mvif->wep_sta = msta; in mt7921_mac_sta_add()
744 struct mt7921_sta *msta = (struct mt7921_sta *)sta->drv_priv; in mt7921_mac_sta_assoc() local
753 mt7921_mac_wtbl_update(dev, msta->wcid.idx, in mt7921_mac_sta_assoc()
755 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7921_mac_sta_assoc()
767 struct mt7921_sta *msta = (struct mt7921_sta *)sta->drv_priv; in mt7921_mac_sta_remove() local
769 mt76_connac_free_pending_tx_skbs(&dev->pm, &msta->wcid); in mt7921_mac_sta_remove()
773 mt7921_mac_wtbl_update(dev, msta->wcid.idx, in mt7921_mac_sta_remove()
787 if (!list_empty(&msta->poll_list)) in mt7921_mac_sta_remove()
788 list_del_init(&msta->poll_list); in mt7921_mac_sta_remove()
868 struct mt7921_sta *msta = (struct mt7921_sta *)sta->drv_priv; in mt7921_ampdu_action() local
882 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, in mt7921_ampdu_action()
887 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt7921_ampdu_action()
898 clear_bit(tid, &msta->ampdu_state); in mt7921_ampdu_action()
902 set_bit(tid, &msta->ampdu_state); in mt7921_ampdu_action()
907 clear_bit(tid, &msta->ampdu_state); in mt7921_ampdu_action()
1043 struct mt7921_sta *msta = (struct mt7921_sta *)sta->drv_priv; in mt7921_ethtool_worker() local
1046 if (msta->vif->mt76.idx != wi->idx) in mt7921_ethtool_worker()
1049 mt76_ethtool_worker(wi, &msta->wcid.stats); in mt7921_ethtool_worker()
1304 struct mt7921_sta *msta = (struct mt7921_sta *)sta->drv_priv; in mt7921_sta_statistics() local
1305 struct rate_info *txrate = &msta->wcid.rate; in mt7921_sta_statistics()
1405 struct mt7921_sta *msta = (struct mt7921_sta *)sta->drv_priv; in mt7921_sta_set_decap_offload() local
1411 set_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7921_sta_set_decap_offload()
1413 clear_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7921_sta_set_decap_offload()
1415 mt76_connac_mcu_sta_update_hdr_trans(&dev->mt76, vif, &msta->wcid, in mt7921_sta_set_decap_offload()