Lines Matching refs:msta

242 	struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv;  in mt76x02_sta_add()  local
246 memset(msta, 0, sizeof(*msta)); in mt76x02_sta_add()
252 msta->vif = mvif; in mt76x02_sta_add()
253 msta->wcid.sta = 1; in mt76x02_sta_add()
254 msta->wcid.idx = idx; in mt76x02_sta_add()
255 msta->wcid.hw_key_idx = -1; in mt76x02_sta_add()
258 ewma_pktlen_init(&msta->pktlen); in mt76x02_sta_add()
261 set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags); in mt76x02_sta_add()
359 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02_ampdu_action() local
374 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, in mt76x02_ampdu_action()
376 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76x02_ampdu_action()
379 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt76x02_ampdu_action()
380 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, in mt76x02_ampdu_action()
413 struct mt76x02_sta *msta; in mt76x02_set_key() local
454 msta = sta ? (struct mt76x02_sta *)sta->drv_priv : NULL; in mt76x02_set_key()
455 wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x02_set_key()
474 if (!msta) { in mt76x02_set_key()
484 return mt76x02_mac_wcid_set_key(dev, msta->wcid.idx, key); in mt76x02_set_key()
583 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02_sta_rate_tbl_update() local
592 mt76x02_mac_wcid_set_rate(dev, &msta->wcid, &rate); in mt76x02_sta_rate_tbl_update()
627 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02_sta_ps() local
628 int idx = msta->wcid.idx; in mt76x02_sta_ps()