Lines Matching refs:msta

288 	struct mt7915_sta *msta = &mvif->sta;  in mt7915_remove_interface()  local
291 int idx = msta->wcid.idx; in mt7915_remove_interface()
313 if (!list_empty(&msta->poll_list)) in mt7915_remove_interface()
314 list_del_init(&msta->poll_list); in mt7915_remove_interface()
317 mt76_packet_id_flush(&dev->mt76, &msta->wcid); in mt7915_remove_interface()
370 struct mt7915_sta *msta = sta ? (struct mt7915_sta *)sta->drv_priv : in mt7915_set_key() local
372 struct mt76_wcid *wcid = &msta->wcid; in mt7915_set_key()
423 err = mt76_connac_mcu_add_key(&dev->mt76, vif, &msta->bip, in mt7915_set_key()
425 &msta->wcid, cmd); in mt7915_set_key()
674 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mac_sta_add() local
683 INIT_LIST_HEAD(&msta->rc_list); in mt7915_mac_sta_add()
684 INIT_LIST_HEAD(&msta->poll_list); in mt7915_mac_sta_add()
685 msta->vif = mvif; in mt7915_mac_sta_add()
686 msta->wcid.sta = 1; in mt7915_mac_sta_add()
687 msta->wcid.idx = idx; in mt7915_mac_sta_add()
688 msta->wcid.phy_idx = ext_phy; in mt7915_mac_sta_add()
689 msta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7915_mac_sta_add()
690 msta->jiffies = jiffies; in mt7915_mac_sta_add()
692 ewma_avg_signal_init(&msta->avg_ack_signal); in mt7915_mac_sta_add()
708 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mac_sta_remove() local
713 mt7915_mac_wtbl_update(dev, msta->wcid.idx, in mt7915_mac_sta_remove()
716 for (i = 0; i < ARRAY_SIZE(msta->twt.flow); i++) in mt7915_mac_sta_remove()
717 mt7915_mac_twt_teardown_flow(dev, msta, i); in mt7915_mac_sta_remove()
720 if (!list_empty(&msta->poll_list)) in mt7915_mac_sta_remove()
721 list_del_init(&msta->poll_list); in mt7915_mac_sta_remove()
722 if (!list_empty(&msta->rc_list)) in mt7915_mac_sta_remove()
723 list_del_init(&msta->rc_list); in mt7915_mac_sta_remove()
776 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_ampdu_action() local
790 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, in mt7915_ampdu_action()
795 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt7915_ampdu_action()
806 clear_bit(tid, &msta->ampdu_state); in mt7915_ampdu_action()
810 set_bit(tid, &msta->ampdu_state); in mt7915_ampdu_action()
815 clear_bit(tid, &msta->ampdu_state); in mt7915_ampdu_action()
1014 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_statistics() local
1015 struct rate_info *txrate = &msta->wcid.rate; in mt7915_sta_statistics()
1044 sinfo->tx_bytes = msta->wcid.stats.tx_bytes; in mt7915_sta_statistics()
1047 sinfo->tx_packets = msta->wcid.stats.tx_packets; in mt7915_sta_statistics()
1050 sinfo->tx_failed = msta->wcid.stats.tx_failed; in mt7915_sta_statistics()
1053 sinfo->tx_retries = msta->wcid.stats.tx_retries; in mt7915_sta_statistics()
1057 sinfo->rx_bytes = msta->wcid.stats.rx_bytes; in mt7915_sta_statistics()
1060 sinfo->rx_packets = msta->wcid.stats.rx_packets; in mt7915_sta_statistics()
1065 sinfo->ack_signal = (s8)msta->ack_signal; in mt7915_sta_statistics()
1068 sinfo->avg_ack_signal = -(s8)ewma_avg_signal_read(&msta->avg_ack_signal); in mt7915_sta_statistics()
1074 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_rc_work() local
1075 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_sta_rc_work()
1079 msta->changed |= *changed; in mt7915_sta_rc_work()
1080 if (list_empty(&msta->rc_list)) in mt7915_sta_rc_work()
1081 list_add_tail(&msta->rc_list, &dev->sta_rc_list); in mt7915_sta_rc_work()
1128 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_set_4addr() local
1131 set_bit(MT_WCID_FLAG_4ADDR, &msta->wcid.flags); in mt7915_sta_set_4addr()
1133 clear_bit(MT_WCID_FLAG_4ADDR, &msta->wcid.flags); in mt7915_sta_set_4addr()
1144 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_set_decap_offload() local
1147 set_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7915_sta_set_decap_offload()
1149 clear_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7915_sta_set_decap_offload()
1315 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_ethtool_worker() local
1317 if (msta->vif->mt76.idx != wi->idx) in mt7915_ethtool_worker()
1320 mt76_ethtool_worker(wi, &msta->wcid.stats, false); in mt7915_ethtool_worker()
1431 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_twt_teardown_request() local
1435 mt7915_mac_twt_teardown_flow(dev, msta, flowid); in mt7915_twt_teardown_request()
1497 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_net_fill_forward_path() local
1505 if (msta->wcid.idx > 0xff) in mt7915_net_fill_forward_path()
1512 path->mtk_wdma.wcid = is_mt7915(&dev->mt76) ? msta->wcid.idx : 0x3ff; in mt7915_net_fill_forward_path()