Lines Matching defs:vif

25 	struct ieee80211_vif *vif = info->control.vif;
26 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
39 ret = rtw89_core_tx_write(rtwdev, vif, sta, skb, &qsel);
109 struct ieee80211_vif *vif)
112 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
115 rtw89_debug(rtwdev, RTW89_DBG_STATE, "add vif %pM type %d, p2p %d\n",
116 vif->addr, vif->type, vif->p2p);
123 vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER |
135 rtw89_vif_type_mapping(vif, false);
150 ether_addr_copy(rtwvif->mac_addr, vif->addr);
160 rtw89_core_txq_init(rtwdev, vif->txq);
172 struct ieee80211_vif *vif)
175 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
177 rtw89_debug(rtwdev, RTW89_DBG_STATE, "remove vif %pM type %d p2p %d\n",
178 vif->addr, vif->type, vif->p2p);
196 struct ieee80211_vif *vif,
204 rtw89_debug(rtwdev, RTW89_DBG_STATE, "change vif %pM (%d)->(%d), p2p (%d)->(%d)\n",
205 vif->addr, vif->type, type, vif->p2p, p2p);
207 rtw89_ops_remove_interface(hw, vif);
209 vif->type = type;
210 vif->p2p = p2p;
212 ret = rtw89_ops_add_interface(hw, vif);
299 struct ieee80211_vif *vif = rtwvif_to_vif(rtwvif);
305 slot_time = vif->bss_conf.use_short_slot ? 9 : 20;
381 struct ieee80211_vif *vif,
386 if (vif->type != NL80211_IFTYPE_STATION)
389 sta = ieee80211_find_sta(vif, conf->bssid);
395 rtw89_vif_type_mapping(vif, true);
397 rtw89_core_sta_assoc(rtwdev, vif, sta);
401 struct ieee80211_vif *vif,
406 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
412 if (vif->cfg.assoc) {
413 rtw89_station_mode_sta_assoc(rtwdev, vif, conf);
414 rtw89_phy_set_bss_color(rtwdev, vif);
415 rtw89_chip_cfg_txpwr_ul_tb_offset(rtwdev, vif);
417 rtw89_mac_set_he_obss_narrow_bw_ru(rtwdev, vif);
425 rtw89_hw_scan_abort(rtwdev, vif);
442 rtw89_phy_set_bss_color(rtwdev, vif);
445 rtw89_mac_bf_set_gid_table(rtwdev, vif, conf);
448 rtw89_process_p2p_ps(rtwdev, vif);
451 rtw89_fw_h2c_set_bcn_fltr_cfg(rtwdev, vif, true);
460 struct ieee80211_vif *vif,
464 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
478 ether_addr_copy(rtwvif->bssid, vif->bss_conf.bssid);
481 rtw89_fw_h2c_assoc_cmac_tbl(rtwdev, vif, NULL);
494 void rtw89_ops_stop_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
498 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
502 rtw89_fw_h2c_assoc_cmac_tbl(rtwdev, vif, NULL);
520 struct ieee80211_vif *vif,
525 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
537 struct ieee80211_vif *vif,
546 return rtw89_core_sta_add(rtwdev, vif, sta);
550 if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls)
551 return 0; /* defer to bss_info_changed to have vif info */
552 return rtw89_core_sta_assoc(rtwdev, vif, sta);
557 return rtw89_core_sta_disassoc(rtwdev, vif, sta);
561 return rtw89_core_sta_disconnect(rtwdev, vif, sta);
565 return rtw89_core_sta_remove(rtwdev, vif, sta);
571 struct ieee80211_vif *vif,
581 ret = __rtw89_ops_sta_state(hw, vif, sta, old_state, new_state);
588 struct ieee80211_vif *vif,
601 ret = rtw89_cam_sec_key_add(rtwdev, vif, sta, key);
611 ret = rtw89_cam_sec_key_del(rtwdev, vif, sta, key, true);
626 struct ieee80211_vif *vif,
645 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
687 struct ieee80211_vif *vif,
698 void __rtw89_drop_packets(struct rtw89_dev *rtwdev, struct ieee80211_vif *vif)
702 if (vif) {
703 rtwvif = (struct rtw89_vif *)vif->drv_priv;
711 static void rtw89_ops_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
721 __rtw89_drop_packets(rtwdev, vif);
730 struct ieee80211_vif *vif;
738 struct ieee80211_vif *vif = rtwvif_to_vif(rtwsta->rtwvif);
740 if (vif != br_data->vif || vif->p2p)
749 struct ieee80211_vif *vif,
753 .vif = vif,
761 struct ieee80211_vif *vif,
767 rtw89_phy_rate_pattern_vif(rtwdev, vif, mask);
768 rtw89_ra_mask_info_update(rtwdev, vif, mask);
810 struct ieee80211_vif *vif,
814 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
822 struct ieee80211_vif *vif)
827 rtw89_core_scan_complete(rtwdev, vif, false);
840 static int rtw89_ops_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
844 struct rtw89_vif *rtwvif = vif_to_rtwvif_safe(vif);
854 rtw89_hw_scan_start(rtwdev, vif, req);
855 ret = rtw89_hw_scan_offload(rtwdev, vif, true);
857 rtw89_hw_scan_abort(rtwdev, vif);
866 struct ieee80211_vif *vif)
877 rtw89_hw_scan_abort(rtwdev, vif);
882 struct ieee80211_vif *vif,
925 struct ieee80211_vif *vif,
930 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
941 struct ieee80211_vif *vif,
946 struct rtw89_vif *rtwvif = (struct rtw89_vif *)vif->drv_priv;
954 struct ieee80211_vif *vif,
960 struct rtw89_vif *rtwvif = vif_to_rtwvif_safe(vif);
963 if (!vif)
974 rtw89_hw_scan_abort(rtwdev, vif);
993 struct ieee80211_vif *vif)
996 struct rtw89_vif *rtwvif = vif_to_rtwvif_safe(vif);
1020 struct ieee80211_vif *vif,