Lines Matching defs:wcid
689 void mt76_wcid_key_setup(struct mt76_dev *dev, struct mt76_wcid *wcid,
695 wcid->rx_check_pn = false;
703 wcid->rx_check_pn = true;
706 memcpy(wcid->rx_key_pn[i], seq.ccmp.pn, sizeof(seq.ccmp.pn));
743 *sta = wcid_to_sta(mstat.wcid);
751 struct mt76_wcid *wcid = status->wcid;
758 if (!wcid || !wcid->rx_check_pn)
772 BUILD_BUG_ON(sizeof(status->iv) != sizeof(wcid->rx_key_pn[0]));
773 ret = memcmp(status->iv, wcid->rx_key_pn[status->tid],
778 memcpy(wcid->rx_key_pn[status->tid], status->iv, sizeof(status->iv));
790 struct mt76_wcid *wcid = status->wcid;
807 if (!wcid || !wcid->sta)
810 sta = container_of((void *)wcid, struct ieee80211_sta, drv_priv);
817 struct mt76_wcid *wcid;
824 if (wcid_idx < ARRAY_SIZE(dev->wcid))
825 wcid = rcu_dereference(dev->wcid[wcid_idx]);
827 wcid = NULL;
828 dev->rx_ampdu_status.wcid = wcid;
841 struct mt76_wcid *wcid = status->wcid;
846 if (!wcid || !wcid->sta) {
850 wcid = NULL;
861 dev->rx_ampdu_status.wcid_idx = wcid ? wcid->idx : 0xff;
879 struct mt76_wcid *wcid = status->wcid;
883 if (ieee80211_is_pspoll(hdr->frame_control) && !wcid) {
886 wcid = status->wcid = (struct mt76_wcid *)sta->drv_priv;
891 if (!wcid || !wcid->sta)
894 sta = container_of((void *)wcid, struct ieee80211_sta, drv_priv);
897 ewma_signal_add(&wcid->rssi, -status->signal);
899 wcid->inactive_count = 0;
901 if (!test_bit(MT_WCID_FLAG_CHECK_PS, &wcid->flags))
920 if (!!test_bit(MT_WCID_FLAG_PS, &wcid->flags) == ps)
924 set_bit(MT_WCID_FLAG_PS, &wcid->flags);
926 clear_bit(MT_WCID_FLAG_PS, &wcid->flags);
973 struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv;
990 mtxq->wcid = wcid;
993 ewma_signal_init(&wcid->rssi);
995 mt76_wcid_mask_set(dev->wcid_phy_mask, wcid->idx);
996 wcid->ext_phy = ext_phy;
997 rcu_assign_pointer(dev->wcid[wcid->idx], wcid);
1008 struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv;
1009 int i, idx = wcid->idx;
1011 for (i = 0; i < ARRAY_SIZE(wcid->aggr); i++)
1012 mt76_rx_aggr_stop(dev, wcid, i);
1017 mt76_tx_status_check(dev, wcid, true);
1063 struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv;
1066 rcu_assign_pointer(dev->wcid[wcid->idx], NULL);