Lines Matching refs:msta
265 struct mt7915_sta *msta = &mvif->sta; in mt7915_remove_interface() local
268 int idx = msta->wcid.idx; in mt7915_remove_interface()
290 if (!list_empty(&msta->poll_list)) in mt7915_remove_interface()
291 list_del_init(&msta->poll_list); in mt7915_remove_interface()
294 mt76_packet_id_flush(&dev->mt76, &msta->wcid); in mt7915_remove_interface()
347 struct mt7915_sta *msta = sta ? (struct mt7915_sta *)sta->drv_priv : in mt7915_set_key() local
349 struct mt76_wcid *wcid = &msta->wcid; in mt7915_set_key()
400 err = mt76_connac_mcu_add_key(&dev->mt76, vif, &msta->bip, in mt7915_set_key()
402 &msta->wcid, cmd); in mt7915_set_key()
650 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mac_sta_add() local
659 INIT_LIST_HEAD(&msta->rc_list); in mt7915_mac_sta_add()
660 INIT_LIST_HEAD(&msta->poll_list); in mt7915_mac_sta_add()
661 msta->vif = mvif; in mt7915_mac_sta_add()
662 msta->wcid.sta = 1; in mt7915_mac_sta_add()
663 msta->wcid.idx = idx; in mt7915_mac_sta_add()
664 msta->wcid.phy_idx = ext_phy; in mt7915_mac_sta_add()
665 msta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7915_mac_sta_add()
666 msta->jiffies = jiffies; in mt7915_mac_sta_add()
682 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mac_sta_remove() local
687 mt7915_mac_wtbl_update(dev, msta->wcid.idx, in mt7915_mac_sta_remove()
690 for (i = 0; i < ARRAY_SIZE(msta->twt.flow); i++) in mt7915_mac_sta_remove()
691 mt7915_mac_twt_teardown_flow(dev, msta, i); in mt7915_mac_sta_remove()
694 if (!list_empty(&msta->poll_list)) in mt7915_mac_sta_remove()
695 list_del_init(&msta->poll_list); in mt7915_mac_sta_remove()
696 if (!list_empty(&msta->rc_list)) in mt7915_mac_sta_remove()
697 list_del_init(&msta->rc_list); in mt7915_mac_sta_remove()
749 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_ampdu_action() local
763 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, in mt7915_ampdu_action()
768 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt7915_ampdu_action()
779 clear_bit(tid, &msta->ampdu_state); in mt7915_ampdu_action()
783 set_bit(tid, &msta->ampdu_state); in mt7915_ampdu_action()
788 clear_bit(tid, &msta->ampdu_state); in mt7915_ampdu_action()
988 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_statistics() local
989 struct rate_info *txrate = &msta->wcid.rate; in mt7915_sta_statistics()
1018 sinfo->tx_bytes = msta->wcid.stats.tx_bytes; in mt7915_sta_statistics()
1021 sinfo->tx_packets = msta->wcid.stats.tx_packets; in mt7915_sta_statistics()
1024 sinfo->tx_failed = msta->wcid.stats.tx_failed; in mt7915_sta_statistics()
1027 sinfo->tx_retries = msta->wcid.stats.tx_retries; in mt7915_sta_statistics()
1034 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_rc_work() local
1035 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_sta_rc_work()
1039 msta->changed |= *changed; in mt7915_sta_rc_work()
1040 if (list_empty(&msta->rc_list)) in mt7915_sta_rc_work()
1041 list_add_tail(&msta->rc_list, &dev->sta_rc_list); in mt7915_sta_rc_work()
1088 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_set_4addr() local
1091 set_bit(MT_WCID_FLAG_4ADDR, &msta->wcid.flags); in mt7915_sta_set_4addr()
1093 clear_bit(MT_WCID_FLAG_4ADDR, &msta->wcid.flags); in mt7915_sta_set_4addr()
1104 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_set_decap_offload() local
1107 set_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7915_sta_set_decap_offload()
1109 clear_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7915_sta_set_decap_offload()
1239 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_ethtool_worker() local
1241 if (msta->vif->mt76.idx != wi->idx) in mt7915_ethtool_worker()
1244 mt76_ethtool_worker(wi, &msta->wcid.stats); in mt7915_ethtool_worker()
1353 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_twt_teardown_request() local
1357 mt7915_mac_twt_teardown_flow(dev, msta, flowid); in mt7915_twt_teardown_request()
1419 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_net_fill_forward_path() local
1427 if (msta->wcid.idx > 0xff) in mt7915_net_fill_forward_path()
1434 path->mtk_wdma.wcid = msta->wcid.idx; in mt7915_net_fill_forward_path()