Lines Matching refs:msta
202 struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv; in mt76x0_sta_add() local
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()
233 struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv; in mt76x0_sta_remove() local
234 int idx = msta->wcid.idx; in mt76x0_sta_remove()
285 struct mt76_sta *msta = sta ? (struct mt76_sta *) sta->drv_priv : NULL; in mt76x0_set_key() local
286 struct mt76_wcid *wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x0_set_key()
300 if (!msta) { in mt76x0_set_key()
310 return mt76x0_mac_wcid_set_key(dev, msta->wcid.idx, key); in mt76x0_set_key()
331 struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv; in mt76_ampdu_action() local
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()
343 ieee80211_send_bar(vif, sta->addr, tid, msta->agg_ssn[tid]); in mt76_ampdu_action()
349 msta->agg_ssn[tid] = *ssn << 4; in mt76_ampdu_action()
365 struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv; in mt76_sta_rate_tbl_update() local
377 mt76x0_mac_wcid_set_rate(dev, &msta->wcid, &rate); in mt76_sta_rate_tbl_update()