| /freebsd/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | mld-mac80211.c | 8 struct ieee80211_vif *vif) in iwl_mvm_mld_mac_add_interface() argument 11 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mld_mac_add_interface() 21 vif->driver_flags |= IEEE80211_VIF_REMOVE_AP_AFTER_DISASSOC; in iwl_mvm_mld_mac_add_interface() 35 ret = iwl_mvm_mac_ctxt_init(mvm, vif); in iwl_mvm_mld_mac_add_interface() 39 rcu_assign_pointer(mvm->vif_id_to_mac[mvmvif->id], vif); in iwl_mvm_mld_mac_add_interface() 47 ret = iwl_mvm_mld_mac_ctxt_add(mvm, vif); in iwl_mvm_mld_mac_add_interface() 52 ret = iwl_mvm_disable_beacon_filter(mvm, vif); in iwl_mvm_mld_mac_add_interface() 57 vif->type == NL80211_IFTYPE_STATION && !vif->p2p) { in iwl_mvm_mld_mac_add_interface() 59 vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER | in iwl_mvm_mld_mac_add_interface() 69 !ieee80211_vif_is_mld(vif)) { in iwl_mvm_mld_mac_add_interface() [all …]
|
| H A D | mld-mac.c | 8 struct ieee80211_vif *vif, in iwl_mvm_mld_set_he_support() argument 12 if (vif->type == NL80211_IFTYPE_AP) { in iwl_mvm_mld_set_he_support() 26 struct ieee80211_vif *vif, in iwl_mvm_mld_mac_ctxt_cmd_common() argument 30 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mld_mac_ctxt_cmd_common() 43 cmd->mac_type = cpu_to_le32(iwl_mvm_get_mac_type(vif)); in iwl_mvm_mld_mac_ctxt_cmd_common() 45 memcpy(cmd->local_mld_addr, vif->addr, ETH_ALEN); in iwl_mvm_mld_mac_ctxt_cmd_common() 54 cpu_to_le32(!iwl_mvm_is_nic_ack_enabled(mvm, vif)); in iwl_mvm_mld_mac_ctxt_cmd_common() 67 if (ieee80211_vif_is_mld(vif)) { in iwl_mvm_mld_mac_ctxt_cmd_common() 68 iwl_mvm_mld_set_he_support(mvm, vif, cmd, cmd_ver); in iwl_mvm_mld_mac_ctxt_cmd_common() 77 for (link_id = 0; link_id < ARRAY_SIZE((vif)->link_conf); link_id++) { in iwl_mvm_mld_mac_ctxt_cmd_common() [all …]
|
| H A D | mac-ctxt.c | 48 struct ieee80211_vif *vif; member 56 struct ieee80211_vif *vif) in iwl_mvm_mac_tsf_id_iter() argument 59 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_tsf_id_iter() 63 if (vif == data->vif) in iwl_mvm_mac_tsf_id_iter() 82 switch (data->vif->type) { in iwl_mvm_mac_tsf_id_iter() 92 if (vif->type != NL80211_IFTYPE_AP || in iwl_mvm_mac_tsf_id_iter() 97 min_bi = min(data->vif->bss_conf.beacon_int, in iwl_mvm_mac_tsf_id_iter() 98 vif->bss_conf.beacon_int); in iwl_mvm_mac_tsf_id_iter() 103 if ((data->vif->bss_conf.beacon_int - in iwl_mvm_mac_tsf_id_iter() 104 vif->bss_conf.beacon_int) % min_bi == 0) { in iwl_mvm_mac_tsf_id_iter() [all …]
|
| H A D | mac80211.c | 110 struct ieee80211_vif *vif, 855 if (!sta && info->control.vif->type == NL80211_IFTYPE_STATION && in iwl_mvm_mac_tx() 865 rcu_dereference(info->control.vif->link_conf[link_id]); in iwl_mvm_mac_tx() 973 iwl_mvm_ampdu_check_trigger(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_ampdu_check_trigger() argument 980 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif), in iwl_mvm_ampdu_check_trigger() 1018 struct ieee80211_vif *vif, in iwl_mvm_mac_ampdu_action() argument 1041 if (iwl_mvm_vif_from_mac80211(vif)->deflink.ap_sta_id == in iwl_mvm_mac_ampdu_action() 1044 u16 macid = iwl_mvm_vif_from_mac80211(vif)->id; in iwl_mvm_mac_ampdu_action() 1048 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ampdu_action() 1067 ret = iwl_mvm_sta_tx_agg_start(mvm, vif, sta, tid, ssn); in iwl_mvm_mac_ampdu_action() [all …]
|
| H A D | link.c | 68 void iwl_mvm_set_link_fw_id(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_set_link_fw_id() argument 71 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_set_link_fw_id() 79 int iwl_mvm_add_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_add_link() argument 82 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_add_link() 92 iwl_mvm_set_link_fw_id(mvm, vif, link_conf); in iwl_mvm_add_link() 97 if (iwl_mvm_sf_update(mvm, vif, false)) in iwl_mvm_add_link() 108 if (vif->type == NL80211_IFTYPE_ADHOC && link_conf->bssid) in iwl_mvm_add_link() 118 struct ieee80211_vif *vif; member 124 struct ieee80211_vif *vif) in iwl_mvm_esr_vif_iterator() argument 127 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_esr_vif_iterator() [all …]
|
| H A D | debugfs-vif.c | 14 struct ieee80211_vif *vif, in iwl_dbgfs_update_pm() argument 17 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_update_pm() 24 int dtimper = vif->bss_conf.dtim_period ?: 1; in iwl_dbgfs_update_pm() 25 int dtimper_msec = dtimper * vif->bss_conf.beacon_int; in iwl_dbgfs_update_pm() 75 static ssize_t iwl_dbgfs_pm_params_write(struct ieee80211_vif *vif, char *buf, in iwl_dbgfs_pm_params_write() argument 78 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_pm_params_write() 131 iwl_dbgfs_update_pm(mvm, vif, param, val); in iwl_dbgfs_pm_params_write() 142 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_tx_pwr_lmt_read() local 148 vif->bss_conf.txpower); in iwl_dbgfs_tx_pwr_lmt_read() 157 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_pm_params_read() local [all …]
|
| H A D | power.c | 70 struct ieee80211_vif *vif, in iwl_mvm_beacon_filter_set_cqm_params() argument 73 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_filter_set_cqm_params() 75 if (vif->bss_conf.cqm_rssi_thold) { in iwl_mvm_beacon_filter_set_cqm_params() 77 cpu_to_le32(vif->bss_conf.cqm_rssi_hyst); in iwl_mvm_beacon_filter_set_cqm_params() 80 cpu_to_le32(-vif->bss_conf.cqm_rssi_thold); in iwl_mvm_beacon_filter_set_cqm_params() 123 struct ieee80211_vif *vif, in iwl_mvm_power_configure_uapsd() argument 126 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_configure_uapsd() 220 struct ieee80211_vif *vif) in iwl_mvm_allow_uapsd_iterator() argument 223 struct iwl_mvm_vif *other_mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_allow_uapsd_iterator() 227 /* exclude the given vif */ in iwl_mvm_allow_uapsd_iterator() [all …]
|
| H A D | mld-sta.c | 14 struct ieee80211_vif *vif; in iwl_mvm_sta_fw_id_mask() local 22 vif = mvmsta->vif; in iwl_mvm_sta_fw_id_mask() 29 for_each_sta_active_link(vif, sta, link_sta, link_id) { in iwl_mvm_sta_fw_id_mask() 209 /* Allocate a new station entry for the broadcast station to the given vif, 213 int iwl_mvm_mld_add_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_mld_add_bcast_sta() argument 216 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mld_add_bcast_sta() 223 iwl_mvm_get_wd_timeout(mvm, vif); in iwl_mvm_mld_add_bcast_sta() 228 if (vif->type == NL80211_IFTYPE_ADHOC) in iwl_mvm_mld_add_bcast_sta() 231 if (vif->type == NL80211_IFTYPE_AP || in iwl_mvm_mld_add_bcast_sta() 232 vif->type == NL80211_IFTYPE_ADHOC) { in iwl_mvm_mld_add_bcast_sta() [all …]
|
| H A D | time-event.c | 30 if (!te_data || !te_data->vif) in iwl_mvm_te_clear_data() 44 te_data->vif = NULL; in iwl_mvm_te_clear_data() 51 struct ieee80211_vif *vif = mvm->p2p_device_vif; in iwl_mvm_cleanup_roc() local 73 * can only be set when we had a P2P-Device VIF, and we have a in iwl_mvm_cleanup_roc() 78 if (!WARN_ON(!vif)) { in iwl_mvm_cleanup_roc() 79 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_cleanup_roc() 84 iwl_mvm_mld_rm_bcast_sta(mvm, vif, in iwl_mvm_cleanup_roc() 85 &vif->bss_conf); in iwl_mvm_cleanup_roc() 87 iwl_mvm_link_changed(mvm, vif, &vif->bss_conf, in iwl_mvm_cleanup_roc() 91 iwl_mvm_rm_p2p_bcast_sta(mvm, vif); in iwl_mvm_cleanup_roc() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/ |
| H A D | iface.c | 19 void iwl_mld_cleanup_vif(void *data, u8 *mac, struct ieee80211_vif *vif) in iwl_mld_cleanup_vif() argument 21 struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif); in iwl_mld_cleanup_vif() 31 vif->driver_flags &= ~IEEE80211_VIF_EML_ACTIVE; in iwl_mld_cleanup_vif() 42 if (!ieee80211_vif_is_mld(vif) && in iwl_mld_cleanup_vif() 46 if (vif->active_links & BIT(link_id)) in iwl_mld_cleanup_vif() 56 ieee80211_iter_keys(mld->hw, vif, iwl_mld_cleanup_keys_iter, NULL); in iwl_mld_cleanup_vif() 79 int iwl_mld_mac80211_iftype_to_fw(const struct ieee80211_vif *vif) in iwl_mld_mac80211_iftype_to_fw() argument 81 switch (vif->type) { in iwl_mld_mac80211_iftype_to_fw() 83 return vif->p2p ? FW_MAC_TYPE_P2P_STA : FW_MAC_TYPE_BSS_STA; in iwl_mld_mac80211_iftype_to_fw() 99 struct ieee80211_vif *vif) in iwl_mld_is_nic_ack_enabled() argument [all …]
|
| H A D | mlo.h | 22 static inline bool iwl_mld_emlsr_active(struct ieee80211_vif *vif) in iwl_mld_emlsr_active() argument 25 return !!(vif->driver_flags & IEEE80211_VIF_EML_ACTIVE); in iwl_mld_emlsr_active() 28 static inline bool iwl_mld_vif_has_emlsr_cap(struct ieee80211_vif *vif) in iwl_mld_vif_has_emlsr_cap() argument 30 struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif); in iwl_mld_vif_has_emlsr_cap() 37 return ieee80211_vif_type_p2p(vif) == NL80211_IFTYPE_STATION && in iwl_mld_vif_has_emlsr_cap() 38 ieee80211_vif_is_mld(vif) && in iwl_mld_vif_has_emlsr_cap() 39 vif->cfg.eml_cap & IEEE80211_EML_CAP_EMLSR_SUPP && in iwl_mld_vif_has_emlsr_cap() 44 iwl_mld_max_active_links(struct iwl_mld *mld, struct ieee80211_vif *vif) in iwl_mld_max_active_links() argument 46 if (vif->type == NL80211_IFTYPE_AP) in iwl_mld_max_active_links() 49 if (ieee80211_vif_type_p2p(vif) == NL80211_IFTYPE_STATION) in iwl_mld_max_active_links() [all …]
|
| H A D | mlo.c | 88 struct ieee80211_vif *vif = in iwl_mld_emlsr_prevent_done_wk() local 95 iwl_mld_unblock_emlsr(mld_vif->mld, vif, in iwl_mld_emlsr_prevent_done_wk() 104 struct ieee80211_vif *vif = in iwl_mld_emlsr_tmp_non_bss_done_wk() local 111 iwl_mld_unblock_emlsr(mld_vif->mld, vif, in iwl_mld_emlsr_tmp_non_bss_done_wk() 189 * belong to the EMLSR vif) since EMLSR is not allowed if there is in iwl_mld_clear_avg_chan_load_iter() 190 * another vif. in iwl_mld_clear_avg_chan_load_iter() 195 static int _iwl_mld_exit_emlsr(struct iwl_mld *mld, struct ieee80211_vif *vif, in _iwl_mld_exit_emlsr() argument 199 struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif); in _iwl_mld_exit_emlsr() 210 if (!iwl_mld_emlsr_active(vif)) in _iwl_mld_exit_emlsr() 213 if (WARN_ON(!ieee80211_vif_is_mld(vif) || !mld_vif->authorized)) in _iwl_mld_exit_emlsr() [all …]
|
| H A D | roc.c | 21 iwl_mld_vif_iter_emlsr_block_roc(void *data, u8 *mac, struct ieee80211_vif *vif) in iwl_mld_vif_iter_emlsr_block_roc() argument 23 struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif); in iwl_mld_vif_iter_emlsr_block_roc() 27 ret = iwl_mld_block_emlsr_sync(mld_vif->mld, vif, in iwl_mld_vif_iter_emlsr_block_roc() 29 iwl_mld_get_primary_link(vif)); in iwl_mld_vif_iter_emlsr_block_roc() 36 struct ieee80211_vif *vif; member 41 struct ieee80211_vif *vif) in iwl_mld_find_roc_vif_iter() argument 43 struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif); in iwl_mld_find_roc_vif_iter() 51 roc_data->vif = NULL; in iwl_mld_find_roc_vif_iter() 56 roc_data->vif = vif; in iwl_mld_find_roc_vif_iter() 72 return roc_data.vif; in iwl_mld_find_roc_vif() [all …]
|
| H A D | mac80211.c | 469 rcu_dereference(info->control.vif->link_conf[link_id]); in iwl_mld_mac80211_tx() 601 struct ieee80211_vif *vif) in iwl_mld_mac80211_add_interface() argument 609 ret = iwl_mld_add_vif(mld, vif); in iwl_mld_mac80211_add_interface() 614 * Add the default link, but not if this is an MLD vif as that implies in iwl_mld_mac80211_add_interface() 617 if (!ieee80211_vif_is_mld(vif)) in iwl_mld_mac80211_add_interface() 618 ret = iwl_mld_add_link(mld, &vif->bss_conf); in iwl_mld_mac80211_add_interface() 622 if (vif->type == NL80211_IFTYPE_STATION) { in iwl_mld_mac80211_add_interface() 623 vif->driver_flags |= IEEE80211_VIF_REMOVE_AP_AFTER_DISASSOC; in iwl_mld_mac80211_add_interface() 624 if (!vif->p2p) in iwl_mld_mac80211_add_interface() 625 vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER | in iwl_mld_mac80211_add_interface() [all …]
|
| H A D | ap.c | 44 struct ieee80211_vif *vif, in iwl_mld_get_rate_flags() argument 59 rate_idx = iwl_mld_get_lowest_rate(mld, info, vif); in iwl_mld_get_rate_flags() 93 struct ieee80211_vif *vif, in iwl_mld_fill_beacon_template_cmd() argument 121 cmd->short_ssid = cpu_to_le32(~crc32_le(~0, vif->cfg.ssid, in iwl_mld_fill_beacon_template_cmd() 122 vif->cfg.ssid_len)); in iwl_mld_fill_beacon_template_cmd() 127 flags |= iwl_mld_get_rate_flags(mld, info, vif, link, in iwl_mld_fill_beacon_template_cmd() 132 if (vif->type == NL80211_IFTYPE_AP) { in iwl_mld_fill_beacon_template_cmd() 156 struct ieee80211_vif *vif, in iwl_mld_update_beacon_template() argument 163 struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif); in iwl_mld_update_beacon_template() 166 WARN_ON(vif->type != NL80211_IFTYPE_AP && in iwl_mld_update_beacon_template() [all …]
|
| /freebsd/sys/compat/linuxkpi/common/src/ |
| H A D | linux_80211_macops.c | 154 lkpi_80211_mo_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) in lkpi_80211_mo_add_interface() argument 166 lvif = VIF_TO_LVIF(vif); in lkpi_80211_mo_add_interface() 176 LKPI_80211_TRACE_MO("hw %p vif %p", hw, vif); in lkpi_80211_mo_add_interface() 177 error = lhw->ops->add_interface(hw, vif); in lkpi_80211_mo_add_interface() 189 lkpi_80211_mo_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) in lkpi_80211_mo_remove_interface() argument 198 lvif = VIF_TO_LVIF(vif); in lkpi_80211_mo_remove_interface() 206 LKPI_80211_TRACE_MO("hw %p vif %p", hw, vif); in lkpi_80211_mo_remove_interface() 207 lhw->ops->remove_interface(hw, vif); in lkpi_80211_mo_remove_interface() 215 lkpi_80211_mo_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif, in lkpi_80211_mo_hw_scan() argument 234 LKPI_80211_TRACE_MO("CALLING hw %p vif %p sr %p", hw, vif, sr); in lkpi_80211_mo_hw_scan() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/tests/ |
| H A D | utils.c | 73 static void iwlmld_kunit_init_link(struct ieee80211_vif *vif, in IWL_MLD_ALLOC_FN() 79 struct iwl_mld_vif *mld_vif = iwl_mld_vif_from_mac80211(vif); in IWL_MLD_ALLOC_FN() 83 rcu_assign_pointer(vif->link_conf[link_id], link); in IWL_MLD_ALLOC_FN() 85 link->vif = vif; in IWL_MLD_ALLOC_FN() 94 rcu_assign_pointer(vif->link_conf[link_id], link); in IWL_MLD_ALLOC_FN() 97 IWL_MLD_ALLOC_FN(vif, vif) in IWL_MLD_ALLOC_FN() argument 99 /* Helper function to add and initialize a VIF for KUnit tests */ in IWL_MLD_ALLOC_FN() 104 struct ieee80211_vif *vif; in IWL_MLD_ALLOC_FN() local 111 KUNIT_ALLOC_AND_ASSERT_SIZE(test, vif, in IWL_MLD_ALLOC_FN() 112 sizeof(*vif) + sizeof(*mld_vif)); in IWL_MLD_ALLOC_FN() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7925/ |
| H A D | main.c | 361 struct ieee80211_vif *vif = link_conf->vif; in mt7925_mac_link_bss_add() local 362 struct mt792x_vif *mvif = mconf->vif; in mt7925_mac_link_bss_add() 366 if (vif->type == NL80211_IFTYPE_P2P_DEVICE) { in mt7925_mac_link_bss_add() 377 mconf->mt76.omac_idx = ieee80211_vif_is_mld(vif) ? in mt7925_mac_link_bss_add() 380 mconf->mt76.wmm_idx = ieee80211_vif_is_mld(vif) ? in mt7925_mac_link_bss_add() 410 if (vif->txq) { in mt7925_mac_link_bss_add() 411 mtxq = (struct mt76_txq *)vif->txq->drv_priv; in mt7925_mac_link_bss_add() 420 mt7925_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) in mt7925_add_interface() argument 422 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_add_interface() 430 mvif->bss_conf.vif = mvif; in mt7925_add_interface() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
| H A D | main.c | 298 mt7921_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) in mt7921_add_interface() argument 300 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_add_interface() 316 mvif->bss_conf.vif = mvif; in mt7921_add_interface() 320 ret = mt76_connac_mcu_uni_add_dev(&dev->mphy, &vif->bss_conf, in mt7921_add_interface() 342 if (vif->txq) { in mt7921_add_interface() 343 mtxq = (struct mt76_txq *)vif->txq->drv_priv; in mt7921_add_interface() 347 vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER; in mt7921_add_interface() 349 vif->driver_flags |= IEEE80211_VIF_SUPPORTS_CQM_RSSI; in mt7921_add_interface() 360 struct ieee80211_vif *vif) in mt7921_roc_iter() argument 362 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_roc_iter() [all …]
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | mac80211.c | 25 struct ieee80211_vif *vif = info->control.vif; in rtw89_ops_tx() local 26 struct rtw89_vif *rtwvif = vif_to_rtwvif(vif); in rtw89_ops_tx() 39 ret = rtw89_core_tx_write(rtwdev, vif, sta, skb, &qsel); in rtw89_ops_tx() 166 struct ieee80211_vif *vif) in rtw89_ops_add_interface() argument 169 struct rtw89_vif *rtwvif = vif_to_rtwvif(vif); in rtw89_ops_add_interface() 176 rtw89_debug(rtwdev, RTW89_DBG_STATE, "add vif %pM type %d, p2p %d\n", in rtw89_ops_add_interface() 177 vif->addr, vif->type, vif->p2p); in rtw89_ops_add_interface() 182 vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER | in rtw89_ops_add_interface() 197 rtw89_core_txq_init(rtwdev, vif->txq); in rtw89_ops_add_interface() 205 ether_addr_copy(rtwvif->mac_addr, vif->addr); in rtw89_ops_add_interface() [all …]
|
| /freebsd/sys/contrib/dev/rtw88/ |
| H A D | mac80211.c | 147 struct ieee80211_vif *vif) in rtw_ops_add_interface() argument 150 struct rtw_vif *rtwvif = (struct rtw_vif *)vif->drv_priv; in rtw_ops_add_interface() 157 vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER | in rtw_ops_add_interface() 165 rtw_txq_init(rtwdev, vif->txq); in rtw_ops_add_interface() 187 switch (vif->type) { in rtw_ops_add_interface() 211 ether_addr_copy(rtwvif->mac_addr, vif->addr); in rtw_ops_add_interface() 218 rtw_core_port_switch(rtwdev, vif); in rtw_ops_add_interface() 219 rtw_recalc_lps(rtwdev, vif); in rtw_ops_add_interface() 224 rtw_dbg(rtwdev, RTW_DBG_STATE, "start vif %pM mac_id %d on port %d\n", in rtw_ops_add_interface() 225 vif->addr, rtwvif->mac_id, rtwvif->port); in rtw_ops_add_interface() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | main.c | 185 static void mt7915_init_bitrate_mask(struct ieee80211_vif *vif) in mt7915_init_bitrate_mask() argument 187 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_init_bitrate_mask() 205 struct ieee80211_vif *vif) in mt7915_add_interface() argument 207 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_add_interface() 218 if (vif->type == NL80211_IFTYPE_MONITOR && in mt7915_add_interface() 219 is_zero_ether_addr(vif->addr)) in mt7915_add_interface() 220 phy->monitor_vif = vif; in mt7915_add_interface() 228 idx = get_omac_idx(vif->type, phy->omac_mask); in mt7915_add_interface() 238 mvif->mt76.wmm_idx = vif->type != NL80211_IFTYPE_AP; in mt7915_add_interface() 242 ret = mt7915_mcu_add_dev_info(phy, vif, true); in mt7915_add_interface() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/ |
| H A D | channel.c | 101 struct ieee80211_vif *vif, in mt76_assign_vif_chanctx() argument 106 struct mt76_vif_link *mlink = (struct mt76_vif_link *)vif->drv_priv; in mt76_assign_vif_chanctx() 114 if (dev->scan.vif == vif) in mt76_assign_vif_chanctx() 119 if (vif->type == NL80211_IFTYPE_MONITOR && in mt76_assign_vif_chanctx() 120 is_zero_ether_addr(vif->addr)) in mt76_assign_vif_chanctx() 123 mlink = mt76_vif_conf_link(dev, vif, link_conf); in mt76_assign_vif_chanctx() 134 ret = dev->drv->vif_link_add(phy, vif, link_conf, mlink); in mt76_assign_vif_chanctx() 141 if (link_conf != &vif->bss_conf) in mt76_assign_vif_chanctx() 152 struct ieee80211_vif *vif, in mt76_unassign_vif_chanctx() argument 157 struct mt76_vif_link *mlink = (struct mt76_vif_link *)vif->drv_priv; in mt76_unassign_vif_chanctx() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
| H A D | main.c | 180 struct ieee80211_vif *vif) in mt7615_add_interface() argument 182 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_add_interface() 193 if (vif->type == NL80211_IFTYPE_MONITOR && in mt7615_add_interface() 194 is_zero_ether_addr(vif->addr)) in mt7615_add_interface() 195 phy->monitor_vif = vif; in mt7615_add_interface() 203 idx = get_omac_idx(vif->type, dev->omac_mask); in mt7615_add_interface() 211 mvif->mt76.wmm_idx = vif->type != NL80211_IFTYPE_AP; in mt7615_add_interface() 234 if (vif->txq) { in mt7615_add_interface() 235 mtxq = (struct mt76_txq *)vif->txq->drv_priv; in mt7615_add_interface() 239 ret = mt7615_mcu_add_dev_info(phy, vif, true); in mt7615_add_interface() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | main.c | 142 mt7996_init_bitrate_mask(struct ieee80211_vif *vif, struct mt7996_vif_link *mlink) in mt7996_init_bitrate_mask() argument 162 struct ieee80211_vif *vif, struct ieee80211_sta *sta, in mt7996_set_hw_key() argument 174 else if (vif->valid_links) in mt7996_set_hw_key() 175 links = vif->valid_links; in mt7996_set_hw_key() 185 link = mt7996_vif_link(dev, vif, link_id); in mt7996_set_hw_key() 222 link_conf = link_conf_dereference_protected(vif, in mt7996_set_hw_key() 225 link_conf = &vif->bss_conf; in mt7996_set_hw_key() 229 mt7996_mcu_add_bss_info(link->phy, vif, link_conf, in mt7996_set_hw_key() 250 err = mt7996_mcu_add_key(&dev->mt76, vif, key, in mt7996_set_hw_key() 261 mt7996_key_iter(struct ieee80211_hw *hw, struct ieee80211_vif *vif, in mt7996_key_iter() argument [all …]
|