Lines Matching refs:wcid
236 mvif->mt76.wcid = &mvif->sta.wcid; in mt7915_add_interface()
256 mvif->sta.wcid.idx = idx; in mt7915_add_interface()
257 mvif->sta.wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7915_add_interface()
258 mt76_wcid_init(&mvif->sta.wcid, phy->mt76->band_idx); in mt7915_add_interface()
265 mtxq->wcid = idx; in mt7915_add_interface()
278 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7915_add_interface()
293 int idx = msta->wcid.idx; in mt7915_remove_interface()
297 mt76_wcid_mask_clear(dev->mt76.wcid_mask, mvif->sta.wcid.idx); in mt7915_remove_interface()
308 rcu_assign_pointer(dev->mt76.wcid[idx], NULL); in mt7915_remove_interface()
316 if (!list_empty(&msta->wcid.poll_list)) in mt7915_remove_interface()
317 list_del_init(&msta->wcid.poll_list); in mt7915_remove_interface()
320 mt76_wcid_cleanup(&dev->mt76, &msta->wcid); in mt7915_remove_interface()
364 struct mt76_wcid *wcid = &msta->wcid; in mt7915_set_key() local
365 u8 *wcid_keyidx = &wcid->hw_key_idx; in mt7915_set_key()
369 if (sta && !wcid->sta) { in mt7915_set_key()
389 wcid_keyidx = &wcid->hw_key_idx2; in mt7915_set_key()
420 mt76_wcid_key_setup(&dev->mt76, wcid, key); in mt7915_set_key()
423 &msta->wcid, cmd); in mt7915_set_key()
754 INIT_LIST_HEAD(&msta->wcid.poll_list); in mt7915_mac_sta_add()
756 msta->wcid.sta_disabled = 1; in mt7915_mac_sta_add()
757 msta->wcid.idx = idx; in mt7915_mac_sta_add()
758 msta->wcid.phy_idx = ext_phy; in mt7915_mac_sta_add()
793 msta->wcid.sta_disabled = 1; in __mt7915_drop_sta()
794 msta->wcid.sta = 0; in __mt7915_drop_sta()
835 addr = mt7915_mac_wtbl_lmac_addr(dev, msta->wcid.idx, 30); in mt7915_mac_sta_event()
842 msta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7915_mac_sta_event()
843 msta->wcid.sta = 1; in mt7915_mac_sta_event()
844 msta->wcid.sta_disabled = 0; in mt7915_mac_sta_event()
857 msta->wcid.sta_disabled = 1; in mt7915_mac_sta_event()
858 msta->wcid.sta = 0; in mt7915_mac_sta_event()
871 mt7915_mac_wtbl_update(dev, msta->wcid.idx, in mt7915_mac_sta_remove()
875 if (!list_empty(&msta->wcid.poll_list)) in mt7915_mac_sta_remove()
876 list_del_init(&msta->wcid.poll_list); in mt7915_mac_sta_remove()
890 struct mt76_wcid *wcid = &dev->mt76.global_wcid; in mt7915_tx() local
896 wcid = &sta->wcid; in mt7915_tx()
903 wcid = &mvif->sta.wcid; in mt7915_tx()
906 mt76_tx(mphy, control->sta, wcid, skb); in mt7915_tx()
945 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, in mt7915_ampdu_action()
950 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt7915_ampdu_action()
961 clear_bit(tid, &msta->wcid.ampdu_state); in mt7915_ampdu_action()
965 set_bit(tid, &msta->wcid.ampdu_state); in mt7915_ampdu_action()
970 clear_bit(tid, &msta->wcid.ampdu_state); in mt7915_ampdu_action()
1155 struct rate_info *txrate = &msta->wcid.rate; in mt7915_sta_statistics()
1182 sinfo->tx_bytes = msta->wcid.stats.tx_bytes; in mt7915_sta_statistics()
1185 if (!mt7915_mcu_wed_wa_tx_stats(phy->dev, msta->wcid.idx)) { in mt7915_sta_statistics()
1186 sinfo->tx_packets = msta->wcid.stats.tx_packets; in mt7915_sta_statistics()
1191 sinfo->rx_bytes = msta->wcid.stats.rx_bytes; in mt7915_sta_statistics()
1194 sinfo->rx_packets = msta->wcid.stats.rx_packets; in mt7915_sta_statistics()
1199 sinfo->tx_failed = msta->wcid.stats.tx_failed; in mt7915_sta_statistics()
1202 sinfo->tx_retries = msta->wcid.stats.tx_retries; in mt7915_sta_statistics()
1235 if (!msta->wcid.sta) in mt7915_sta_rc_update()
1276 set_bit(MT_WCID_FLAG_4ADDR, &msta->wcid.flags); in mt7915_sta_set_4addr()
1278 clear_bit(MT_WCID_FLAG_4ADDR, &msta->wcid.flags); in mt7915_sta_set_4addr()
1280 if (!msta->wcid.sta) in mt7915_sta_set_4addr()
1295 set_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7915_sta_set_decap_offload()
1297 clear_bit(MT_WCID_FLAG_HDR_TRANS, &msta->wcid.flags); in mt7915_sta_set_decap_offload()
1299 if (!msta->wcid.sta) in mt7915_sta_set_decap_offload()
1507 mt76_ethtool_worker(wi, &msta->wcid.stats, false); in mt7915_ethtool_worker()
1729 if (msta->wcid.idx > 0xff) in mt7915_net_fill_forward_path()
1736 path->mtk_wdma.wcid = is_mt7915(&dev->mt76) ? msta->wcid.idx : 0x3ff; in mt7915_net_fill_forward_path()