Lines Matching refs:wcid

32 		mtxq->wcid = &sta->wcid;  in mt76x2_txq_init()
37 mtxq->wcid = &mvif->group_wcid; in mt76x2_txq_init()
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()
107 idx = mt76_wcid_alloc(dev->wcid_mask, ARRAY_SIZE(dev->wcid)); 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()
127 rcu_assign_pointer(dev->wcid[idx], &msta->wcid); in mt76x2_sta_add()
141 int idx = msta->wcid.idx; in mt76x2_sta_remove()
145 rcu_assign_pointer(dev->wcid[idx], NULL); in mt76x2_sta_remove()
173 struct mt76_wcid *wcid; in mt76x2_set_key() local
200 wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x2_set_key()
203 key->hw_key_idx = wcid->idx; in mt76x2_set_key()
204 wcid->hw_key_idx = idx; in mt76x2_set_key()
207 wcid->sw_iv = true; in mt76x2_set_key()
210 if (idx == wcid->hw_key_idx) { in mt76x2_set_key()
211 wcid->hw_key_idx = -1; in mt76x2_set_key()
212 wcid->sw_iv = true; in mt76x2_set_key()
217 mt76_wcid_key_setup(&dev->mt76, wcid, key); in mt76x2_set_key()
220 if (key || wcid->hw_key_idx == idx) { in mt76x2_set_key()
221 ret = mt76x2_mac_wcid_set_key(dev, wcid->idx, key); in mt76x2_set_key()
229 return mt76x2_mac_wcid_set_key(dev, msta->wcid.idx, key); in mt76x2_set_key()
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()