Lines Matching full:vif

71 					  struct ieee80211_vif *vif,  in iwl_mvm_beacon_filter_set_cqm_params()  argument
74 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_filter_set_cqm_params()
76 if (vif->bss_conf.cqm_rssi_thold) { in iwl_mvm_beacon_filter_set_cqm_params()
78 cpu_to_le32(vif->bss_conf.cqm_rssi_hyst); in iwl_mvm_beacon_filter_set_cqm_params()
81 cpu_to_le32(-vif->bss_conf.cqm_rssi_thold); in iwl_mvm_beacon_filter_set_cqm_params()
124 struct ieee80211_vif *vif, in iwl_mvm_power_configure_uapsd() argument
127 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_configure_uapsd()
216 struct ieee80211_vif *vif) in iwl_mvm_p2p_standalone_iterator() argument
220 switch (ieee80211_vif_type_p2p(vif)) { in iwl_mvm_p2p_standalone_iterator()
226 if (vif->cfg.assoc) in iwl_mvm_p2p_standalone_iterator()
236 struct ieee80211_vif *vif) in iwl_mvm_power_allow_uapsd() argument
238 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_allow_uapsd()
241 vif->cfg.ap_addr)) in iwl_mvm_power_allow_uapsd()
248 if (vif->p2p && in iwl_mvm_power_allow_uapsd()
249 (vif->bss_conf.p2p_noa_attr.oppps_ctwindow & in iwl_mvm_power_allow_uapsd()
260 if (vif->p2p) { in iwl_mvm_power_allow_uapsd()
279 static bool iwl_mvm_power_is_radar(struct ieee80211_vif *vif) in iwl_mvm_power_is_radar() argument
287 for_each_vif_active_link(vif, link_conf, link_id) { in iwl_mvm_power_is_radar()
305 struct ieee80211_vif *vif, in iwl_mvm_power_config_skip_dtim() argument
308 int dtimper = vif->bss_conf.dtim_period ?: 1; in iwl_mvm_power_config_skip_dtim()
315 if (iwl_mvm_power_is_radar(vif)) in iwl_mvm_power_config_skip_dtim()
326 int dtimper_tu = dtimper * vif->bss_conf.beacon_int; in iwl_mvm_power_config_skip_dtim()
339 struct ieee80211_vif *vif, in iwl_mvm_power_build_cmd() argument
345 iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_build_cmd()
349 dtimper = vif->bss_conf.dtim_period; in iwl_mvm_power_build_cmd()
350 bi = vif->bss_conf.beacon_int; in iwl_mvm_power_build_cmd()
368 if (!vif->cfg.ps || !mvmvif->pm_enabled) in iwl_mvm_power_build_cmd()
371 if (iwl_mvm_vif_low_latency(mvmvif) && vif->p2p && in iwl_mvm_power_build_cmd()
379 if (vif->bss_conf.beacon_rate && in iwl_mvm_power_build_cmd()
380 (vif->bss_conf.beacon_rate->bitrate == 10 || in iwl_mvm_power_build_cmd()
381 vif->bss_conf.beacon_rate->bitrate == 60)) { in iwl_mvm_power_build_cmd()
386 iwl_mvm_power_config_skip_dtim(mvm, vif, cmd); in iwl_mvm_power_build_cmd()
393 } else if (iwl_mvm_vif_low_latency(mvmvif) && vif->p2p && in iwl_mvm_power_build_cmd()
407 if (iwl_mvm_power_allow_uapsd(mvm, vif)) in iwl_mvm_power_build_cmd()
408 iwl_mvm_power_configure_uapsd(mvm, vif, cmd); in iwl_mvm_power_build_cmd()
457 struct ieee80211_vif *vif) in iwl_mvm_power_send_cmd() argument
461 iwl_mvm_power_build_cmd(mvm, vif, &cmd); in iwl_mvm_power_send_cmd()
464 memcpy(&iwl_mvm_vif_from_mac80211(vif)->mac_pwr_cmd, &cmd, sizeof(cmd)); in iwl_mvm_power_send_cmd()
500 void iwl_mvm_power_vif_assoc(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_power_vif_assoc() argument
502 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_vif_assoc()
505 vif->cfg.ap_addr)) in iwl_mvm_power_vif_assoc()
510 struct ieee80211_vif *vif) in iwl_mvm_power_uapsd_misbehav_ap_iterator() argument
513 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_uapsd_misbehav_ap_iterator()
518 for_each_vif_active_link(vif, link_conf, link_id) { in iwl_mvm_power_uapsd_misbehav_ap_iterator()
526 vif->cfg.ap_addr); in iwl_mvm_power_uapsd_misbehav_ap_iterator()
558 struct ieee80211_vif *vif) in iwl_mvm_power_disable_pm_iterator() argument
560 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_disable_pm_iterator()
566 struct ieee80211_vif *vif) in iwl_mvm_power_ps_disabled_iterator() argument
568 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_ps_disabled_iterator()
576 struct ieee80211_vif *vif) in iwl_mvm_power_get_vifs_iterator() argument
578 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_get_vifs_iterator()
587 switch (ieee80211_vif_type_p2p(vif)) { in iwl_mvm_power_get_vifs_iterator()
595 power_iterator->ap_vif = vif; in iwl_mvm_power_get_vifs_iterator()
603 power_iterator->monitor_vif = vif; in iwl_mvm_power_get_vifs_iterator()
611 power_iterator->p2p_vif = vif; in iwl_mvm_power_get_vifs_iterator()
617 power_iterator->bss_vif = vif; in iwl_mvm_power_get_vifs_iterator()
701 struct ieee80211_vif *vif, char *buf, in iwl_mvm_power_mac_dbgfs_read() argument
704 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_mac_dbgfs_read()
775 iwl_mvm_beacon_filter_debugfs_parameters(struct ieee80211_vif *vif, in iwl_mvm_beacon_filter_debugfs_parameters() argument
778 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_filter_debugfs_parameters()
810 struct ieee80211_vif *vif, in _iwl_mvm_enable_beacon_filter() argument
814 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in _iwl_mvm_enable_beacon_filter()
817 if (mvmvif != mvm->bf_allowed_vif || !vif->bss_conf.dtim_period || in _iwl_mvm_enable_beacon_filter()
818 vif->type != NL80211_IFTYPE_STATION || vif->p2p) in _iwl_mvm_enable_beacon_filter()
821 iwl_mvm_beacon_filter_set_cqm_params(mvm, vif, cmd); in _iwl_mvm_enable_beacon_filter()
822 iwl_mvm_beacon_filter_debugfs_parameters(vif, cmd); in _iwl_mvm_enable_beacon_filter()
832 struct ieee80211_vif *vif, in iwl_mvm_enable_beacon_filter() argument
840 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, flags); in iwl_mvm_enable_beacon_filter()
844 struct ieee80211_vif *vif, in _iwl_mvm_disable_beacon_filter() argument
848 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in _iwl_mvm_disable_beacon_filter()
851 if (vif->type != NL80211_IFTYPE_STATION || vif->p2p) in _iwl_mvm_disable_beacon_filter()
863 struct ieee80211_vif *vif, in iwl_mvm_disable_beacon_filter() argument
866 return _iwl_mvm_disable_beacon_filter(mvm, vif, flags); in iwl_mvm_disable_beacon_filter()
898 struct ieee80211_vif *vif) in iwl_mvm_power_set_ba() argument
900 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_set_ba()
914 !vif->cfg.ps || in iwl_mvm_power_set_ba()
917 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, 0); in iwl_mvm_power_set_ba()