Lines Matching refs:vif

503 	struct ieee80211_vif *vif = tx_req->vif;
516 if (!vif) {
517 rtw89_warn(rtwdev, "cannot set sec key without vif\n");
521 rtwvif = (struct rtw89_vif *)vif->drv_priv;
583 struct ieee80211_vif *vif = tx_info->control.vif;
587 (vif && vif->p2p))
594 if (!vif || !vif->bss_conf.basic_rates || !tx_req->sta)
597 return __ffs(vif->bss_conf.basic_rates) + lowest_rate;
603 struct ieee80211_vif *vif = tx_req->vif;
604 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
619 struct ieee80211_vif *vif = tx_req->vif;
620 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
756 struct ieee80211_vif *vif = tx_req->vif;
757 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
778 struct ieee80211_vif *vif = tx_req->vif;
780 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
789 if (vif->p2p)
806 struct ieee80211_vif *vif = tx_req->vif;
808 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
1028 int rtw89_core_tx_write(struct rtw89_dev *rtwdev, struct ieee80211_vif *vif,
1032 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
1037 tx_req.vif = vif;
1769 struct ieee80211_vif *vif,
1772 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
1777 if (!ether_addr_equal(vif->bss_conf.bssid, tf->ta) ||
1801 if (aid == vif->cfg.aid) {
1891 struct ieee80211_vif *vif)
1893 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
1908 if (!vif->bss_conf.bssid)
1912 rtw89_stats_trigger_frame(rtwdev, vif, skb);
1916 if (!ether_addr_equal(vif->bss_conf.bssid, bssid))
1920 if (vif->type == NL80211_IFTYPE_STATION) {
1927 if (!ether_addr_equal(vif->addr, hdr->addr1))
2660 struct ieee80211_vif *vif = txq->vif;
2674 ret = rtw89_core_tx_write(rtwdev, vif, sta, skb, NULL);
2742 rtwvif = (struct rtw89_vif *)txq->vif->drv_priv;
2821 struct ieee80211_vif *vif = rtwvif_to_vif(rtwvif);
2834 ret = rtw89_core_tx_write(rtwdev, vif, sta, skb, &qsel);
2855 struct ieee80211_vif *vif = rtwvif_to_vif(rtwvif);
2861 if (vif->type != NL80211_IFTYPE_STATION || !vif->cfg.assoc)
2865 sta = ieee80211_find_sta(vif, vif->bss_conf.bssid);
2871 skb = ieee80211_nullfunc_get(rtwdev->hw, vif, -1, qos);
2881 ret = rtw89_core_tx_write(rtwdev, vif, sta, skb, &qsel);
3097 void rtw89_core_update_p2p_ps(struct rtw89_dev *rtwdev, struct ieee80211_vif *vif)
3104 rtw89_process_p2p_ps(rtwdev, vif);
3260 void rtw89_vif_type_mapping(struct ieee80211_vif *vif, bool assoc)
3262 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
3264 switch (vif->type) {
3266 if (vif->p2p)
3272 if (vif->p2p)
3285 switch (vif->type) {
3298 rtwvif->trigger = vif->bss_conf.he_support;
3315 struct ieee80211_vif *vif,
3318 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
3342 if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls) {
3350 } else if (vif->type == NL80211_IFTYPE_AP || sta->tdls) {
3386 struct ieee80211_vif *vif,
3389 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
3392 if (vif->type == NL80211_IFTYPE_STATION)
3393 rtw89_fw_h2c_set_bcn_fltr_cfg(rtwdev, vif, false);
3404 struct ieee80211_vif *vif,
3407 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
3412 rtw89_mac_bf_disassoc(rtwdev, vif, sta);
3417 if (vif->type == NL80211_IFTYPE_AP || sta->tdls)
3422 if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls) {
3423 rtw89_vif_type_mapping(vif, false);
3427 ret = rtw89_chip_h2c_assoc_cmac_tbl(rtwdev, vif, sta);
3450 struct ieee80211_vif *vif,
3453 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
3460 if (vif->type == NL80211_IFTYPE_AP || sta->tdls) {
3476 ret = rtw89_chip_h2c_assoc_cmac_tbl(rtwdev, vif, sta);
3499 rtw89_mac_bf_assoc(rtwdev, vif, sta);
3502 if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls) {
3503 struct ieee80211_bss_conf *bss_conf = &vif->bss_conf;
3520 rtw89_fw_h2c_set_bcn_fltr_cfg(rtwdev, vif, true);
3527 struct ieee80211_vif *vif,
3530 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
3534 if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls) {
3538 } else if (vif->type == NL80211_IFTYPE_AP || sta->tdls) {
4297 struct ieee80211_vif *vif, bool hw_scan)
4299 struct rtw89_vif *rtwvif = vif ? (struct rtw89_vif *)vif->drv_priv : NULL;
4304 ether_addr_copy(rtwvif->mac_addr, vif->addr);
4532 hw->wiphy->tid_config_support.vif |= BIT(NL80211_TID_CONFIG_ATTR_AMPDU_CTRL);
4534 hw->wiphy->tid_config_support.vif |= BIT(NL80211_TID_CONFIG_ATTR_AMSDU_CTRL);