Lines Matching refs:mvmvif

120 	struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);  in iwl_mvm_beacon_filter_set_cqm_params()  local
129 cmd->ba_enable_beacon_abort = cpu_to_le32(mvmvif->bf_data.ba_enabled); in iwl_mvm_beacon_filter_set_cqm_params()
173 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_configure_uapsd() local
178 if (!mvmvif->queue_params[ac].uapsd) in iwl_mvm_power_configure_uapsd()
188 if (!tid_found && !mvmvif->queue_params[ac].acm) { in iwl_mvm_power_configure_uapsd()
210 if (mvmvif->dbgfs_pm.use_ps_poll) in iwl_mvm_power_configure_uapsd()
265 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_allow_uapsd() local
267 if (!memcmp(mvmvif->uapsd_misbehaving_bssid, vif->bss_conf.bssid, in iwl_mvm_power_allow_uapsd()
356 struct iwl_mvm_vif *mvmvif __maybe_unused = in iwl_mvm_power_build_cmd()
359 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_power_build_cmd()
360 mvmvif->color)); in iwl_mvm_power_build_cmd()
380 if (!vif->bss_conf.ps || !mvmvif->pm_enabled) in iwl_mvm_power_build_cmd()
383 if (iwl_mvm_vif_low_latency(mvmvif) && vif->p2p && in iwl_mvm_power_build_cmd()
405 } else if (iwl_mvm_vif_low_latency(mvmvif) && vif->p2p && in iwl_mvm_power_build_cmd()
423 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_KEEP_ALIVE) in iwl_mvm_power_build_cmd()
425 cpu_to_le16(mvmvif->dbgfs_pm.keep_alive_seconds); in iwl_mvm_power_build_cmd()
426 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_SKIP_OVER_DTIM) { in iwl_mvm_power_build_cmd()
427 if (mvmvif->dbgfs_pm.skip_over_dtim) in iwl_mvm_power_build_cmd()
434 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_RX_DATA_TIMEOUT) in iwl_mvm_power_build_cmd()
436 cpu_to_le32(mvmvif->dbgfs_pm.rx_data_timeout); in iwl_mvm_power_build_cmd()
437 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_TX_DATA_TIMEOUT) in iwl_mvm_power_build_cmd()
439 cpu_to_le32(mvmvif->dbgfs_pm.tx_data_timeout); in iwl_mvm_power_build_cmd()
440 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_SKIP_DTIM_PERIODS) in iwl_mvm_power_build_cmd()
441 cmd->skip_dtim_periods = mvmvif->dbgfs_pm.skip_dtim_periods; in iwl_mvm_power_build_cmd()
442 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_LPRX_ENA) { in iwl_mvm_power_build_cmd()
443 if (mvmvif->dbgfs_pm.lprx_ena) in iwl_mvm_power_build_cmd()
448 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_LPRX_RSSI_THRESHOLD) in iwl_mvm_power_build_cmd()
449 cmd->lprx_rssi_threshold = mvmvif->dbgfs_pm.lprx_rssi_threshold; in iwl_mvm_power_build_cmd()
450 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_SNOOZE_ENABLE) { in iwl_mvm_power_build_cmd()
451 if (mvmvif->dbgfs_pm.snooze_ena) in iwl_mvm_power_build_cmd()
458 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_UAPSD_MISBEHAVING) { in iwl_mvm_power_build_cmd()
460 if (mvmvif->dbgfs_pm.uapsd_misbehaving) in iwl_mvm_power_build_cmd()
512 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_vif_assoc() local
514 if (memcmp(vif->bss_conf.bssid, mvmvif->uapsd_misbehaving_bssid, in iwl_mvm_power_vif_assoc()
516 eth_zero_addr(mvmvif->uapsd_misbehaving_bssid); in iwl_mvm_power_vif_assoc()
523 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_uapsd_misbehav_ap_iterator() local
528 if (mvmvif->ap_sta_id == *ap_sta_id) in iwl_mvm_power_uapsd_misbehav_ap_iterator()
529 memcpy(mvmvif->uapsd_misbehaving_bssid, vif->bss_conf.bssid, in iwl_mvm_power_uapsd_misbehav_ap_iterator()
561 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_disable_pm_iterator() local
563 mvmvif->pm_enabled = false; in iwl_mvm_power_disable_pm_iterator()
569 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_ps_disabled_iterator() local
572 if (mvmvif->phy_ctxt) in iwl_mvm_power_ps_disabled_iterator()
573 if (mvmvif->phy_ctxt->id < MAX_PHYS) in iwl_mvm_power_ps_disabled_iterator()
574 *disable_ps |= mvmvif->ps_disabled; in iwl_mvm_power_ps_disabled_iterator()
580 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_get_vifs_iterator() local
592 if (mvmvif->phy_ctxt) in iwl_mvm_power_get_vifs_iterator()
593 if (mvmvif->phy_ctxt->id < MAX_PHYS) in iwl_mvm_power_get_vifs_iterator()
601 if (mvmvif->phy_ctxt) in iwl_mvm_power_get_vifs_iterator()
602 if (mvmvif->phy_ctxt->id < MAX_PHYS) in iwl_mvm_power_get_vifs_iterator()
610 if (mvmvif->phy_ctxt) in iwl_mvm_power_get_vifs_iterator()
611 if (mvmvif->phy_ctxt->id < MAX_PHYS) in iwl_mvm_power_get_vifs_iterator()
619 if (mvmvif->phy_ctxt) in iwl_mvm_power_get_vifs_iterator()
620 if (mvmvif->phy_ctxt->id < MAX_PHYS) in iwl_mvm_power_get_vifs_iterator()
623 if (mvmvif->bf_data.bf_enabled && in iwl_mvm_power_get_vifs_iterator()
713 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_mac_dbgfs_read() local
718 memcpy(&cmd, &mvmvif->mac_pwr_cmd, sizeof(cmd)); in iwl_mvm_power_mac_dbgfs_read()
787 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_filter_debugfs_parameters() local
788 struct iwl_dbgfs_bf *dbgfs_bf = &mvmvif->dbgfs_bf; in iwl_mvm_beacon_filter_debugfs_parameters()
824 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in _iwl_mvm_enable_beacon_filter() local
827 if (mvmvif != mvm->bf_allowed_vif || !vif->bss_conf.dtim_period || in _iwl_mvm_enable_beacon_filter()
838 mvmvif->bf_data.bf_enabled = true; in _iwl_mvm_enable_beacon_filter()
859 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_update_beacon_abort() local
865 if (!mvmvif->bf_data.bf_enabled) in iwl_mvm_update_beacon_abort()
871 mvmvif->bf_data.ba_enabled = enable; in iwl_mvm_update_beacon_abort()
880 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_disable_beacon_filter() local
889 mvmvif->bf_data.bf_enabled = false; in iwl_mvm_disable_beacon_filter()
925 struct iwl_mvm_vif *mvmvif; in iwl_mvm_power_set_ba() local
931 mvmvif = iwl_mvm_vif_from_mac80211(vifs->bf_vif); in iwl_mvm_power_set_ba()
933 ba_enable = !(!mvmvif->pm_enabled || mvm->ps_disabled || in iwl_mvm_power_set_ba()
935 iwl_mvm_vif_low_latency(mvmvif)); in iwl_mvm_power_set_ba()
1001 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_update_d0i3_power_mode() local
1014 memcpy(&mvmvif->mac_pwr_cmd, &cmd, sizeof(cmd)); in iwl_mvm_update_d0i3_power_mode()
1022 if (mvmvif != mvm->bf_allowed_vif) in iwl_mvm_update_d0i3_power_mode()
1033 if (mvmvif->bf_data.bf_enabled) in iwl_mvm_update_d0i3_power_mode()