Lines Matching refs:msta
50 struct mt76x2_sta *msta = (struct mt76x2_sta *) sta->drv_priv; in mt76x2_ampdu_action() local
63 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, *ssn, params->buf_size); in mt76x2_ampdu_action()
64 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76x2_ampdu_action()
67 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt76x2_ampdu_action()
68 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, in mt76x2_ampdu_action()
99 struct mt76x2_sta *msta = (struct mt76x2_sta *) sta->drv_priv; in mt76x2_sta_add() local
113 msta->vif = mvif; in mt76x2_sta_add()
114 msta->wcid.sta = 1; in mt76x2_sta_add()
115 msta->wcid.idx = idx; in mt76x2_sta_add()
116 msta->wcid.hw_key_idx = -1; in mt76x2_sta_add()
123 set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags); in mt76x2_sta_add()
125 ewma_signal_init(&msta->rssi); in mt76x2_sta_add()
127 rcu_assign_pointer(dev->wcid[idx], &msta->wcid); in mt76x2_sta_add()
140 struct mt76x2_sta *msta = (struct mt76x2_sta *) sta->drv_priv; in mt76x2_sta_remove() local
141 int idx = msta->wcid.idx; in mt76x2_sta_remove()
172 struct mt76x2_sta *msta; in mt76x2_set_key() local
199 msta = sta ? (struct mt76x2_sta *) sta->drv_priv : NULL; in mt76x2_set_key()
200 wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x2_set_key()
219 if (!msta) { in mt76x2_set_key()
229 return mt76x2_mac_wcid_set_key(dev, msta->wcid.idx, key); in mt76x2_set_key()
316 struct mt76x2_sta *msta = (struct mt76x2_sta *) sta->drv_priv; in mt76x2_sta_rate_tbl_update() local
325 mt76x2_mac_wcid_set_rate(dev, &msta->wcid, &rate); in mt76x2_sta_rate_tbl_update()
326 msta->wcid.max_txpwr_adj = mt76x2_tx_get_max_txpwr_adj(dev, &rate); in mt76x2_sta_rate_tbl_update()