Lines Matching defs:wcid
50 unsigned int wcid = GROUP_WCID(idx);
62 if (dev->wcid_mask[wcid / BITS_PER_LONG] & BIT(wcid % BITS_PER_LONG))
64 dev->wcid_mask[wcid / BITS_PER_LONG] |= BIT(wcid % BITS_PER_LONG);
65 mvif->group_wcid.idx = wcid;
76 unsigned int wcid = mvif->group_wcid.idx;
78 dev->wcid_mask[wcid / BITS_PER_LONG] &= ~BIT(wcid % BITS_PER_LONG);
226 msta->wcid.idx = idx;
227 msta->wcid.hw_key_idx = -1;
230 rcu_assign_pointer(dev->wcid[idx], &msta->wcid);
245 int idx = msta->wcid.idx;
248 rcu_assign_pointer(dev->wcid[idx], NULL);
299 struct mt76_wcid *wcid = msta ? &msta->wcid : &mvif->group_wcid;
315 key->hw_key_idx = wcid->idx;
316 wcid->hw_key_idx = idx;
318 if (idx == wcid->hw_key_idx)
319 wcid->hw_key_idx = -1;
325 if (key || wcid->hw_key_idx == idx) {
326 ret = mt76_mac_wcid_set_key(dev, wcid->idx, key);
334 return mt76_mac_wcid_set_key(dev, msta->wcid.idx, key);
357 WARN_ON(msta->wcid.idx > GROUP_WCID(0));
361 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid));
364 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4,
401 mt76_mac_wcid_set_rate(dev, &msta->wcid, &rate);