Lines Matching refs:msta

91 	struct mt7603_sta *msta = &mvif->sta;  in mt7603_remove_interface()  local
93 int idx = msta->wcid.idx; in mt7603_remove_interface()
104 if (!list_empty(&msta->poll_list)) in mt7603_remove_interface()
105 list_del_init(&msta->poll_list); in mt7603_remove_interface()
345 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_sta_add() local
354 INIT_LIST_HEAD(&msta->poll_list); in mt7603_sta_add()
355 __skb_queue_head_init(&msta->psq); in mt7603_sta_add()
356 msta->ps = ~0; in mt7603_sta_add()
357 msta->smps = ~0; in mt7603_sta_add()
358 msta->wcid.sta = 1; in mt7603_sta_add()
359 msta->wcid.idx = idx; in mt7603_sta_add()
361 mt7603_wtbl_set_ps(dev, msta, false); in mt7603_sta_add()
364 set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags); in mt7603_sta_add()
383 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_sta_remove() local
387 __skb_queue_purge(&msta->psq); in mt7603_sta_remove()
392 if (!list_empty(&msta->poll_list)) in mt7603_sta_remove()
393 list_del_init(&msta->poll_list); in mt7603_sta_remove()
415 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_sta_ps() local
419 mt7603_wtbl_set_ps(dev, msta, ps); in mt7603_sta_ps()
426 skb_queue_splice_tail_init(&msta->psq, &list); in mt7603_sta_ps()
449 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_release_buffered_frames() local
455 mt7603_wtbl_set_ps(dev, msta, false); in mt7603_release_buffered_frames()
458 skb_queue_walk_safe(&msta->psq, skb, tmp) { in mt7603_release_buffered_frames()
466 __skb_unlink(skb, &msta->psq); in mt7603_release_buffered_frames()
490 struct mt7603_sta *msta = sta ? (struct mt7603_sta *)sta->drv_priv : in mt7603_set_key() local
492 struct mt76_wcid *wcid = &msta->wcid; in mt7603_set_key()
589 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_ampdu_action() local
604 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, in mt7603_ampdu_action()
609 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt7603_ampdu_action()
614 mt7603_mac_tx_ba_reset(dev, msta->wcid.idx, tid, ba_size); in mt7603_ampdu_action()
619 mt7603_mac_tx_ba_reset(dev, msta->wcid.idx, tid, -1); in mt7603_ampdu_action()
627 mt7603_mac_tx_ba_reset(dev, msta->wcid.idx, tid, -1); in mt7603_ampdu_action()
641 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_sta_rate_tbl_update() local
649 for (i = 0; i < ARRAY_SIZE(msta->rates); i++) { in mt7603_sta_rate_tbl_update()
650 msta->rates[i].idx = sta_rates->rate[i].idx; in mt7603_sta_rate_tbl_update()
651 msta->rates[i].count = sta_rates->rate[i].count; in mt7603_sta_rate_tbl_update()
652 msta->rates[i].flags = sta_rates->rate[i].flags; in mt7603_sta_rate_tbl_update()
654 if (msta->rates[i].idx < 0 || !msta->rates[i].count) in mt7603_sta_rate_tbl_update()
657 msta->n_rates = i; in mt7603_sta_rate_tbl_update()
658 mt7603_wtbl_set_rates(dev, msta, NULL, msta->rates); in mt7603_sta_rate_tbl_update()
659 msta->rate_probe = false; in mt7603_sta_rate_tbl_update()
660 mt7603_wtbl_set_smps(dev, msta, in mt7603_sta_rate_tbl_update()
686 struct mt7603_sta *msta; in mt7603_tx() local
688 msta = (struct mt7603_sta *)control->sta->drv_priv; in mt7603_tx()
689 wcid = &msta->wcid; in mt7603_tx()