Lines Matching refs:vif

30 	if (!te_data || !te_data->vif)
44 te_data->vif = NULL;
50 struct ieee80211_vif *vif = mvm->p2p_device_vif;
77 if (!WARN_ON(!vif)) {
78 mvmvif = iwl_mvm_vif_from_mac80211(vif);
83 iwl_mvm_mld_rm_bcast_sta(mvm, vif,
84 &vif->bss_conf);
86 iwl_mvm_link_changed(mvm, vif, &vif->bss_conf,
90 iwl_mvm_rm_p2p_bcast_sta(mvm, vif);
91 iwl_mvm_binding_remove_vif(mvm, vif);
123 if (vif)
124 iwl_mvm_esr_non_bss_link(mvm, vif, 0, false);
184 struct ieee80211_vif *vif,
187 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
189 if (vif->type != NL80211_IFTYPE_STATION)
192 if (!mvmvif->csa_bcn_pending && vif->cfg.assoc &&
193 vif->bss_conf.dtim_period)
209 if (vif->cfg.assoc) {
219 iwl_mvm_connection_loss(mvm, vif, errmsg);
228 struct ieee80211_vif *vif = te_data->vif;
229 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
234 switch (te_data->vif->type) {
242 iwl_mvm_connection_loss(mvm, vif,
246 iwl_mvm_csa_client_absent(mvm, te_data->vif);
248 ieee80211_chswitch_done(te_data->vif, true, 0);
269 ieee80211_vif_to_wdev(te_data->vif),
334 if (iwl_mvm_te_check_disconnect(mvm, te_data->vif, msg)) {
345 switch (te_data->vif->type) {
366 iwl_mvm_te_check_disconnect(mvm, te_data->vif,
367 !te_data->vif->cfg.assoc ?
380 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) {
438 te_data->vif = NULL;
544 struct ieee80211_vif *vif,
562 te_data->vif = vif;
605 struct ieee80211_vif *vif,
609 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
636 iwl_mvm_stop_session_protection(mvm, vif);
657 iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd);
671 if (iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd)) {
682 struct ieee80211_vif *vif,
685 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
705 struct ieee80211_vif *vif,
708 int mac_link_id = iwl_mvm_get_session_prot_id(mvm, vif, link_id);
732 struct ieee80211_vif *vif = te_data->vif;
737 if (!vif)
740 mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif);
741 iftype = te_data->vif->type;
770 iwl_mvm_cancel_session_protection(mvm, vif, id,
853 struct ieee80211_vif *vif)
855 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
892 struct ieee80211_vif *vif;
899 vif = iwl_mvm_rcu_dereference_vif_id(mvm, id, true);
908 vif = link_conf->vif;
911 if (!vif)
914 mvmvif = iwl_mvm_vif_from_mac80211(vif);
922 /* The vif is not a P2P_DEVICE, maintain its time_event_data */
923 if (vif->type != NL80211_IFTYPE_P2P_DEVICE) {
928 iwl_mvm_te_check_disconnect(mvm, vif,
946 iwl_mvm_te_check_disconnect(mvm, vif,
947 !vif->cfg.assoc ?
982 void iwl_mvm_roc_duration_and_delay(struct ieee80211_vif *vif,
987 u32 dtim_interval = vif->bss_conf.dtim_period *
988 vif->bss_conf.beacon_int;
1002 if (vif->cfg.assoc) {
1016 struct ieee80211_vif *vif,
1035 iwl_mvm_roc_duration_and_delay(vif, duration, &duration_tu,
1048 memcpy(roc_req.node_addr, vif->addr, ETH_ALEN);
1058 struct ieee80211_vif *vif,
1062 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1065 cpu_to_le32(iwl_mvm_get_session_prot_id(mvm, vif, 0)),
1098 int iwl_mvm_start_p2p_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
1101 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1113 return iwl_mvm_start_p2p_roc_session_protection(mvm, vif,
1150 return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd);
1169 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE)
1225 void iwl_mvm_stop_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
1234 mvmvif = iwl_mvm_vif_from_mac80211(vif);
1237 if (vif->type == NL80211_IFTYPE_P2P_DEVICE) {
1244 iwl_mvm_cancel_session_protection(mvm, vif,
1259 mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif);
1261 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE)
1272 set_bit(vif->type == NL80211_IFTYPE_P2P_DEVICE ?
1281 struct ieee80211_vif *vif)
1283 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1300 struct ieee80211_vif *vif,
1303 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1343 return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd);
1373 struct ieee80211_vif *vif,
1378 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1382 int mac_link_id = iwl_mvm_get_session_prot_id(mvm, vif, (s8)link_id);
1412 te_data->vif = vif;