Lines Matching refs:vif

114 					  struct ieee80211_vif *vif,  in iwl_mvm_beacon_filter_set_cqm_params()  argument
117 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_filter_set_cqm_params()
119 if (vif->bss_conf.cqm_rssi_thold) { in iwl_mvm_beacon_filter_set_cqm_params()
121 cpu_to_le32(vif->bss_conf.cqm_rssi_hyst); in iwl_mvm_beacon_filter_set_cqm_params()
124 cpu_to_le32(-vif->bss_conf.cqm_rssi_thold); in iwl_mvm_beacon_filter_set_cqm_params()
167 struct ieee80211_vif *vif, in iwl_mvm_power_configure_uapsd() argument
170 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_configure_uapsd()
260 struct ieee80211_vif *vif) in iwl_mvm_power_allow_uapsd() argument
262 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_allow_uapsd()
264 if (!memcmp(mvmvif->uapsd_misbehaving_bssid, vif->bss_conf.bssid, in iwl_mvm_power_allow_uapsd()
268 if (vif->p2p && in iwl_mvm_power_allow_uapsd()
275 if (vif->p2p && in iwl_mvm_power_allow_uapsd()
276 (vif->bss_conf.p2p_noa_attr.oppps_ctwindow & in iwl_mvm_power_allow_uapsd()
311 static bool iwl_mvm_power_is_radar(struct ieee80211_vif *vif) in iwl_mvm_power_is_radar() argument
318 chanctx_conf = rcu_dereference(vif->chanctx_conf); in iwl_mvm_power_is_radar()
330 struct ieee80211_vif *vif, in iwl_mvm_power_build_cmd() argument
337 iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_build_cmd()
341 dtimper = vif->bss_conf.dtim_period; in iwl_mvm_power_build_cmd()
342 bi = vif->bss_conf.beacon_int; in iwl_mvm_power_build_cmd()
360 if (!vif->bss_conf.ps || iwl_mvm_vif_low_latency(mvmvif) || in iwl_mvm_power_build_cmd()
366 if (vif->bss_conf.beacon_rate && in iwl_mvm_power_build_cmd()
367 (vif->bss_conf.beacon_rate->bitrate == 10 || in iwl_mvm_power_build_cmd()
368 vif->bss_conf.beacon_rate->bitrate == 60)) { in iwl_mvm_power_build_cmd()
374 radar_detect = iwl_mvm_power_is_radar(vif); in iwl_mvm_power_build_cmd()
399 if (iwl_mvm_power_allow_uapsd(mvm, vif)) in iwl_mvm_power_build_cmd()
400 iwl_mvm_power_configure_uapsd(mvm, vif, cmd); in iwl_mvm_power_build_cmd()
449 struct ieee80211_vif *vif) in iwl_mvm_power_send_cmd() argument
453 iwl_mvm_power_build_cmd(mvm, vif, &cmd); in iwl_mvm_power_send_cmd()
456 memcpy(&iwl_mvm_vif_from_mac80211(vif)->mac_pwr_cmd, &cmd, sizeof(cmd)); in iwl_mvm_power_send_cmd()
489 void iwl_mvm_power_vif_assoc(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_power_vif_assoc() argument
491 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_vif_assoc()
493 if (memcmp(vif->bss_conf.bssid, mvmvif->uapsd_misbehaving_bssid, in iwl_mvm_power_vif_assoc()
499 struct ieee80211_vif *vif) in iwl_mvm_power_uapsd_misbehav_ap_iterator() argument
502 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_uapsd_misbehav_ap_iterator()
508 memcpy(mvmvif->uapsd_misbehaving_bssid, vif->bss_conf.bssid, in iwl_mvm_power_uapsd_misbehav_ap_iterator()
541 struct ieee80211_vif *vif) in iwl_mvm_power_disable_pm_iterator() argument
543 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_disable_pm_iterator()
549 struct ieee80211_vif *vif) in iwl_mvm_power_ps_disabled_iterator() argument
551 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_ps_disabled_iterator()
560 struct ieee80211_vif *vif) in iwl_mvm_power_get_vifs_iterator() argument
562 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_get_vifs_iterator()
565 switch (ieee80211_vif_type_p2p(vif)) { in iwl_mvm_power_get_vifs_iterator()
573 power_iterator->ap_vif = vif; in iwl_mvm_power_get_vifs_iterator()
582 power_iterator->monitor_vif = vif; in iwl_mvm_power_get_vifs_iterator()
591 power_iterator->p2p_vif = vif; in iwl_mvm_power_get_vifs_iterator()
600 power_iterator->bss_vif = vif; in iwl_mvm_power_get_vifs_iterator()
607 power_iterator->bf_vif = vif; in iwl_mvm_power_get_vifs_iterator()
692 struct ieee80211_vif *vif, char *buf, in iwl_mvm_power_mac_dbgfs_read() argument
695 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_mac_dbgfs_read()
766 iwl_mvm_beacon_filter_debugfs_parameters(struct ieee80211_vif *vif, in iwl_mvm_beacon_filter_debugfs_parameters() argument
769 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_filter_debugfs_parameters()
801 struct ieee80211_vif *vif, in _iwl_mvm_enable_beacon_filter() argument
806 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in _iwl_mvm_enable_beacon_filter()
809 if (mvmvif != mvm->bf_allowed_vif || !vif->bss_conf.dtim_period || in _iwl_mvm_enable_beacon_filter()
810 vif->type != NL80211_IFTYPE_STATION || vif->p2p) in _iwl_mvm_enable_beacon_filter()
813 iwl_mvm_beacon_filter_set_cqm_params(mvm, vif, cmd); in _iwl_mvm_enable_beacon_filter()
815 iwl_mvm_beacon_filter_debugfs_parameters(vif, cmd); in _iwl_mvm_enable_beacon_filter()
826 struct ieee80211_vif *vif, in iwl_mvm_enable_beacon_filter() argument
834 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, flags, false); in iwl_mvm_enable_beacon_filter()
838 struct ieee80211_vif *vif, in iwl_mvm_update_beacon_abort() argument
841 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_update_beacon_abort()
854 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, 0, false); in iwl_mvm_update_beacon_abort()
858 struct ieee80211_vif *vif, in iwl_mvm_disable_beacon_filter() argument
862 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_disable_beacon_filter()
865 if (vif->type != NL80211_IFTYPE_STATION || vif->p2p) in iwl_mvm_disable_beacon_filter()
979 struct ieee80211_vif *vif, in iwl_mvm_update_d0i3_power_mode() argument
983 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_update_d0i3_power_mode()
986 if (vif->type != NL80211_IFTYPE_STATION || vif->p2p) in iwl_mvm_update_d0i3_power_mode()
989 if (!vif->bss_conf.assoc) in iwl_mvm_update_d0i3_power_mode()
992 iwl_mvm_power_build_cmd(mvm, vif, &cmd); in iwl_mvm_update_d0i3_power_mode()
995 int dtimper = vif->bss_conf.dtim_period ?: 1; in iwl_mvm_update_d0i3_power_mode()
996 int dtimper_tu = dtimper * vif->bss_conf.beacon_int; in iwl_mvm_update_d0i3_power_mode()
997 bool radar_detect = iwl_mvm_power_is_radar(vif); in iwl_mvm_update_d0i3_power_mode()
1029 ret = _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd_bf, in iwl_mvm_update_d0i3_power_mode()
1033 ret = iwl_mvm_enable_beacon_filter(mvm, vif, flags); in iwl_mvm_update_d0i3_power_mode()
1035 ret = iwl_mvm_disable_beacon_filter(mvm, vif, flags); in iwl_mvm_update_d0i3_power_mode()