Lines Matching refs:wcid
209 idx = mt76_wcid_alloc(dev->wcid_mask, ARRAY_SIZE(dev->wcid)); in mt76x0_sta_add()
215 msta->wcid.idx = idx; in mt76x0_sta_add()
216 msta->wcid.hw_key_idx = -1; in mt76x0_sta_add()
219 rcu_assign_pointer(dev->wcid[idx], &msta->wcid); in mt76x0_sta_add()
234 int idx = msta->wcid.idx; in mt76x0_sta_remove()
237 rcu_assign_pointer(dev->wcid[idx], NULL); in mt76x0_sta_remove()
286 struct mt76_wcid *wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x0_set_key() local
291 key->hw_key_idx = wcid->idx; in mt76x0_set_key()
292 wcid->hw_key_idx = idx; in mt76x0_set_key()
294 if (idx == wcid->hw_key_idx) in mt76x0_set_key()
295 wcid->hw_key_idx = -1; in mt76x0_set_key()
301 if (key || wcid->hw_key_idx == idx) { in mt76x0_set_key()
302 ret = mt76x0_mac_wcid_set_key(dev, wcid->idx, key); in mt76x0_set_key()
310 return mt76x0_mac_wcid_set_key(dev, msta->wcid.idx, key); in mt76x0_set_key()
333 WARN_ON(msta->wcid.idx > N_WCIDS); in mt76_ampdu_action()
337 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76_ampdu_action()
340 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76_ampdu_action()
377 mt76x0_mac_wcid_set_rate(dev, &msta->wcid, &rate); in mt76_sta_rate_tbl_update()