Lines Matching defs:vif
30 if (!te_data || !te_data->vif)
44 te_data->vif = NULL;
51 struct ieee80211_vif *vif = mvm->p2p_device_vif;
78 if (!WARN_ON(!vif)) {
79 mvmvif = iwl_mvm_vif_from_mac80211(vif);
84 iwl_mvm_mld_rm_bcast_sta(mvm, vif,
85 &vif->bss_conf);
87 iwl_mvm_link_changed(mvm, vif, &vif->bss_conf,
91 iwl_mvm_rm_p2p_bcast_sta(mvm, vif);
92 iwl_mvm_binding_remove_vif(mvm, vif);
192 struct ieee80211_vif *vif,
195 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
197 if (vif->type != NL80211_IFTYPE_STATION)
200 if (!mvmvif->csa_bcn_pending && vif->cfg.assoc &&
201 vif->bss_conf.dtim_period)
217 if (vif->cfg.assoc) {
229 iwl_mvm_connection_loss(mvm, vif, errmsg);
238 struct ieee80211_vif *vif = te_data->vif;
239 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
244 switch (te_data->vif->type) {
252 iwl_mvm_connection_loss(mvm, vif,
256 iwl_mvm_csa_client_absent(mvm, te_data->vif);
258 ieee80211_chswitch_done(te_data->vif, true, 0);
279 ieee80211_vif_to_wdev(te_data->vif),
344 if (iwl_mvm_te_check_disconnect(mvm, te_data->vif, msg)) {
355 switch (te_data->vif->type) {
376 iwl_mvm_te_check_disconnect(mvm, te_data->vif,
377 !te_data->vif->cfg.assoc ?
390 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) {
408 struct ieee80211_vif *vif)
410 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
433 /* Clear vif roc_activity if done (set to ROC_NUM_ACTIVITIES) */
485 te_data->vif = NULL;
591 struct ieee80211_vif *vif,
609 te_data->vif = vif;
652 struct ieee80211_vif *vif,
656 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
683 iwl_mvm_stop_session_protection(mvm, vif);
704 iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd);
718 if (iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd)) {
729 struct ieee80211_vif *vif,
732 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
752 struct ieee80211_vif *vif,
755 int mac_link_id = iwl_mvm_get_session_prot_id(mvm, vif, link_id);
794 struct ieee80211_vif *vif = te_data->vif;
802 if (!vif)
805 mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif);
806 iftype = te_data->vif->type;
843 iwl_mvm_cancel_session_protection(mvm, vif, id,
926 struct ieee80211_vif *vif)
928 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
965 struct ieee80211_vif *vif;
972 vif = iwl_mvm_rcu_dereference_vif_id(mvm, id, true);
981 vif = link_conf->vif;
984 if (!vif)
987 mvmvif = iwl_mvm_vif_from_mac80211(vif);
995 /* The vif is not a P2P_DEVICE, maintain its time_event_data */
996 if (vif->type != NL80211_IFTYPE_P2P_DEVICE) {
1001 iwl_mvm_te_check_disconnect(mvm, vif,
1019 iwl_mvm_te_check_disconnect(mvm, vif,
1020 !vif->cfg.assoc ?
1055 void iwl_mvm_roc_duration_and_delay(struct ieee80211_vif *vif,
1068 for_each_vif_active_link(vif, link_conf, link_id) {
1086 if (vif->cfg.assoc && !WARN_ON(!dtim_interval)) {
1100 struct ieee80211_vif *vif,
1110 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1123 iwl_mvm_roc_duration_and_delay(vif, duration, &duration_tu,
1136 memcpy(roc_req.node_addr, vif->addr, ETH_ALEN);
1148 struct ieee80211_vif *vif,
1152 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1155 cpu_to_le32(iwl_mvm_get_session_prot_id(mvm, vif, 0)),
1188 int iwl_mvm_start_p2p_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
1191 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1203 return iwl_mvm_start_p2p_roc_session_protection(mvm, vif,
1240 return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd);
1259 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE)
1284 void iwl_mvm_stop_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
1286 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1291 int iftype = vif->type;
1312 iwl_mvm_cancel_session_protection(mvm, vif,
1329 mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif);
1330 iftype = te_data->vif->type;
1352 struct ieee80211_vif *vif)
1354 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1371 struct ieee80211_vif *vif,
1374 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1414 return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd);
1444 struct ieee80211_vif *vif,
1449 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1453 int mac_link_id = iwl_mvm_get_session_prot_id(mvm, vif, (s8)link_id);
1483 te_data->vif = vif;