Lines Matching refs:msta
184 struct mt7915_sta *msta = &mvif->sta; in mt7915_remove_interface() local
187 int idx = msta->wcid.idx; in mt7915_remove_interface()
201 if (!list_empty(&msta->poll_list)) in mt7915_remove_interface()
202 list_del_init(&msta->poll_list); in mt7915_remove_interface()
266 struct mt7915_sta *msta = sta ? (struct mt7915_sta *)sta->drv_priv : in mt7915_set_key() local
268 struct mt76_wcid *wcid = &msta->wcid; in mt7915_set_key()
308 return mt7915_mcu_add_key(dev, vif, msta, key, cmd); in mt7915_set_key()
487 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mac_sta_add() local
495 INIT_LIST_HEAD(&msta->rc_list); in mt7915_mac_sta_add()
496 INIT_LIST_HEAD(&msta->stats_list); in mt7915_mac_sta_add()
497 INIT_LIST_HEAD(&msta->poll_list); in mt7915_mac_sta_add()
498 msta->vif = mvif; in mt7915_mac_sta_add()
499 msta->wcid.sta = 1; in mt7915_mac_sta_add()
500 msta->wcid.idx = idx; in mt7915_mac_sta_add()
501 msta->wcid.ext_phy = mvif->band_idx; in mt7915_mac_sta_add()
502 msta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7915_mac_sta_add()
503 msta->stats.jiffies = jiffies; in mt7915_mac_sta_add()
519 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mac_sta_remove() local
524 mt7915_mac_wtbl_update(dev, msta->wcid.idx, in mt7915_mac_sta_remove()
528 if (!list_empty(&msta->poll_list)) in mt7915_mac_sta_remove()
529 list_del_init(&msta->poll_list); in mt7915_mac_sta_remove()
530 if (!list_empty(&msta->stats_list)) in mt7915_mac_sta_remove()
531 list_del_init(&msta->stats_list); in mt7915_mac_sta_remove()
532 if (!list_empty(&msta->rc_list)) in mt7915_mac_sta_remove()
533 list_del_init(&msta->rc_list); in mt7915_mac_sta_remove()
584 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_ampdu_action() local
598 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, in mt7915_ampdu_action()
603 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt7915_ampdu_action()
614 clear_bit(tid, &msta->ampdu_state); in mt7915_ampdu_action()
618 set_bit(tid, &msta->ampdu_state); in mt7915_ampdu_action()
623 clear_bit(tid, &msta->ampdu_state); in mt7915_ampdu_action()
767 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_statistics() local
768 struct mt7915_sta_stats *stats = &msta->stats; in mt7915_sta_statistics()
794 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_rc_update() local
797 msta->stats.changed |= changed; in mt7915_sta_rc_update()
798 if (list_empty(&msta->rc_list)) in mt7915_sta_rc_update()
799 list_add_tail(&msta->rc_list, &dev->sta_rc_list); in mt7915_sta_rc_update()