/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
H A D | debugfs-vif.c | 72 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_update_pm() local 73 struct iwl_dbgfs_pm *dbgfs_pm = &mvmvif->dbgfs_pm; iwl_dbgfs_update_pm() 133 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_pm_params_write() local 134 struct iwl_mvm *mvm = mvmvif->mvm; iwl_dbgfs_pm_params_write() 198 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_pm_params_read() local 199 struct iwl_mvm *mvm = mvmvif->mvm; iwl_dbgfs_pm_params_read() 214 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_mac_params_read() local 215 struct iwl_mvm *mvm = mvmvif->mvm; iwl_dbgfs_mac_params_read() 225 ap_sta_id = mvmvif->ap_sta_id; iwl_dbgfs_mac_params_read() 251 mvmvif->id, mvmvif->color); iwl_dbgfs_mac_params_read() 255 for (i = 0; i < ARRAY_SIZE(mvmvif->queue_params); i++) iwl_dbgfs_mac_params_read() 258 i, mvmvif->queue_params[i].txop, iwl_dbgfs_mac_params_read() 259 mvmvif->queue_params[i].cw_min, iwl_dbgfs_mac_params_read() 260 mvmvif->queue_params[i].cw_max, iwl_dbgfs_mac_params_read() 261 mvmvif->queue_params[i].aifs, iwl_dbgfs_mac_params_read() 262 mvmvif->queue_params[i].uapsd); iwl_dbgfs_mac_params_read() 297 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_update_bf() local 298 struct iwl_dbgfs_bf *dbgfs_bf = &mvmvif->dbgfs_bf; iwl_dbgfs_update_bf() 342 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_bf_params_write() local 343 struct iwl_mvm *mvm = mvmvif->mvm; iwl_dbgfs_bf_params_write() 441 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_bf_params_read() local 454 if (mvmvif->bf_data.bf_enabled) iwl_dbgfs_bf_params_read() 488 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_low_latency_write() local 489 struct iwl_mvm *mvm = mvmvif->mvm; iwl_dbgfs_low_latency_write() 511 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_low_latency_read() local 514 buf[0] = mvmvif->low_latency ? '1' : '0'; iwl_dbgfs_low_latency_read() 525 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_uapsd_misbehaving_read() local 529 len = sprintf(buf, "%pM\n", mvmvif->uapsd_misbehaving_bssid); iwl_dbgfs_uapsd_misbehaving_read() 537 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_uapsd_misbehaving_write() local 538 struct iwl_mvm *mvm = mvmvif->mvm; iwl_dbgfs_uapsd_misbehaving_write() 542 ret = mac_pton(buf, mvmvif->uapsd_misbehaving_bssid); iwl_dbgfs_uapsd_misbehaving_write() 551 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_rx_phyinfo_write() local 552 struct iwl_mvm *mvm = mvmvif->mvm; iwl_dbgfs_rx_phyinfo_write() 591 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_dbgfs_rx_phyinfo_read() local 594 snprintf(buf, sizeof(buf), "0x%04x\n", mvmvif->mvm->dbgfs_rx_phyinfo); iwl_dbgfs_rx_phyinfo_read() 619 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_vif_dbgfs_register() local 626 if (!dbgfs_dir || mvmvif->dbgfs_dir) iwl_mvm_vif_dbgfs_register() 629 mvmvif->dbgfs_dir = debugfs_create_dir("iwlmvm", dbgfs_dir); iwl_mvm_vif_dbgfs_register() 631 if (!mvmvif->dbgfs_dir) { iwl_mvm_vif_dbgfs_register() 641 MVM_DEBUGFS_ADD_FILE_VIF(pm_params, mvmvif->dbgfs_dir, S_IWUSR | iwl_mvm_vif_dbgfs_register() 644 MVM_DEBUGFS_ADD_FILE_VIF(mac_params, mvmvif->dbgfs_dir, S_IRUSR); iwl_mvm_vif_dbgfs_register() 645 MVM_DEBUGFS_ADD_FILE_VIF(low_latency, mvmvif->dbgfs_dir, iwl_mvm_vif_dbgfs_register() 647 MVM_DEBUGFS_ADD_FILE_VIF(uapsd_misbehaving, mvmvif->dbgfs_dir, iwl_mvm_vif_dbgfs_register() 649 MVM_DEBUGFS_ADD_FILE_VIF(rx_phyinfo, mvmvif->dbgfs_dir, iwl_mvm_vif_dbgfs_register() 653 mvmvif == mvm->bf_allowed_vif) iwl_mvm_vif_dbgfs_register() 654 MVM_DEBUGFS_ADD_FILE_VIF(bf_params, mvmvif->dbgfs_dir, iwl_mvm_vif_dbgfs_register() 668 mvmvif->dbgfs_dir->d_name.name); iwl_mvm_vif_dbgfs_register() 670 mvmvif->dbgfs_slink = debugfs_create_symlink(dbgfs_dir->d_name.name, iwl_mvm_vif_dbgfs_register() 672 if (!mvmvif->dbgfs_slink) iwl_mvm_vif_dbgfs_register() 682 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_vif_dbgfs_clean() local 684 debugfs_remove(mvmvif->dbgfs_slink); iwl_mvm_vif_dbgfs_clean() 685 mvmvif->dbgfs_slink = NULL; iwl_mvm_vif_dbgfs_clean() 687 debugfs_remove_recursive(mvmvif->dbgfs_dir); iwl_mvm_vif_dbgfs_clean() 688 mvmvif->dbgfs_dir = NULL; iwl_mvm_vif_dbgfs_clean()
|
H A D | power.c | 117 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_beacon_filter_set_cqm_params() local 126 cmd->ba_enable_beacon_abort = cpu_to_le32(mvmvif->bf_data.ba_enabled); iwl_mvm_beacon_filter_set_cqm_params() 170 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_power_configure_uapsd() local 175 if (!mvmvif->queue_params[ac].uapsd) iwl_mvm_power_configure_uapsd() 185 if (!tid_found && !mvmvif->queue_params[ac].acm) { iwl_mvm_power_configure_uapsd() 207 if (mvmvif->dbgfs_pm.use_ps_poll) iwl_mvm_power_configure_uapsd() 262 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_power_allow_uapsd() local 264 if (!memcmp(mvmvif->uapsd_misbehaving_bssid, vif->bss_conf.bssid, iwl_mvm_power_allow_uapsd() 336 struct iwl_mvm_vif *mvmvif __maybe_unused = iwl_mvm_power_build_cmd() 339 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, iwl_mvm_power_build_cmd() 340 mvmvif->color)); iwl_mvm_power_build_cmd() 360 if (!vif->bss_conf.ps || iwl_mvm_vif_low_latency(mvmvif) || iwl_mvm_power_build_cmd() 361 !mvmvif->pm_enabled) iwl_mvm_power_build_cmd() 403 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_KEEP_ALIVE) iwl_mvm_power_build_cmd() 405 cpu_to_le16(mvmvif->dbgfs_pm.keep_alive_seconds); iwl_mvm_power_build_cmd() 406 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_SKIP_OVER_DTIM) { iwl_mvm_power_build_cmd() 407 if (mvmvif->dbgfs_pm.skip_over_dtim) iwl_mvm_power_build_cmd() 414 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_RX_DATA_TIMEOUT) iwl_mvm_power_build_cmd() 416 cpu_to_le32(mvmvif->dbgfs_pm.rx_data_timeout); iwl_mvm_power_build_cmd() 417 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_TX_DATA_TIMEOUT) iwl_mvm_power_build_cmd() 419 cpu_to_le32(mvmvif->dbgfs_pm.tx_data_timeout); iwl_mvm_power_build_cmd() 420 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_SKIP_DTIM_PERIODS) iwl_mvm_power_build_cmd() 421 cmd->skip_dtim_periods = mvmvif->dbgfs_pm.skip_dtim_periods; iwl_mvm_power_build_cmd() 422 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_LPRX_ENA) { iwl_mvm_power_build_cmd() 423 if (mvmvif->dbgfs_pm.lprx_ena) iwl_mvm_power_build_cmd() 428 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_LPRX_RSSI_THRESHOLD) iwl_mvm_power_build_cmd() 429 cmd->lprx_rssi_threshold = mvmvif->dbgfs_pm.lprx_rssi_threshold; iwl_mvm_power_build_cmd() 430 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_SNOOZE_ENABLE) { iwl_mvm_power_build_cmd() 431 if (mvmvif->dbgfs_pm.snooze_ena) iwl_mvm_power_build_cmd() 438 if (mvmvif->dbgfs_pm.mask & MVM_DEBUGFS_PM_UAPSD_MISBEHAVING) { iwl_mvm_power_build_cmd() 440 if (mvmvif->dbgfs_pm.uapsd_misbehaving) iwl_mvm_power_build_cmd() 491 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_power_vif_assoc() local 493 if (memcmp(vif->bss_conf.bssid, mvmvif->uapsd_misbehaving_bssid, iwl_mvm_power_vif_assoc() 495 eth_zero_addr(mvmvif->uapsd_misbehaving_bssid); iwl_mvm_power_vif_assoc() 502 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_power_uapsd_misbehav_ap_iterator() local 507 if (mvmvif->ap_sta_id == *ap_sta_id) iwl_mvm_power_uapsd_misbehav_ap_iterator() 508 memcpy(mvmvif->uapsd_misbehaving_bssid, vif->bss_conf.bssid, iwl_mvm_power_uapsd_misbehav_ap_iterator() 543 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_power_disable_pm_iterator() local 545 mvmvif->pm_enabled = false; iwl_mvm_power_disable_pm_iterator() 551 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_power_ps_disabled_iterator() local 554 if (mvmvif->phy_ctxt) iwl_mvm_power_ps_disabled_iterator() 555 if (mvmvif->phy_ctxt->id < MAX_PHYS) iwl_mvm_power_ps_disabled_iterator() 556 *disable_ps |= mvmvif->ps_disabled; iwl_mvm_power_ps_disabled_iterator() 562 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_power_get_vifs_iterator() local 574 if (mvmvif->phy_ctxt) iwl_mvm_power_get_vifs_iterator() 575 if (mvmvif->phy_ctxt->id < MAX_PHYS) iwl_mvm_power_get_vifs_iterator() 583 if (mvmvif->phy_ctxt) iwl_mvm_power_get_vifs_iterator() 584 if (mvmvif->phy_ctxt->id < MAX_PHYS) iwl_mvm_power_get_vifs_iterator() 592 if (mvmvif->phy_ctxt) iwl_mvm_power_get_vifs_iterator() 593 if (mvmvif->phy_ctxt->id < MAX_PHYS) iwl_mvm_power_get_vifs_iterator() 601 if (mvmvif->phy_ctxt) iwl_mvm_power_get_vifs_iterator() 602 if (mvmvif->phy_ctxt->id < MAX_PHYS) iwl_mvm_power_get_vifs_iterator() 605 if (mvmvif->bf_data.bf_enabled && iwl_mvm_power_get_vifs_iterator() 695 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_power_mac_dbgfs_read() local 700 memcpy(&cmd, &mvmvif->mac_pwr_cmd, sizeof(cmd)); iwl_mvm_power_mac_dbgfs_read() 769 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_beacon_filter_debugfs_parameters() local 770 struct iwl_dbgfs_bf *dbgfs_bf = &mvmvif->dbgfs_bf; iwl_mvm_beacon_filter_debugfs_parameters() 806 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); _iwl_mvm_enable_beacon_filter() local 809 if (mvmvif != mvm->bf_allowed_vif || !vif->bss_conf.dtim_period || _iwl_mvm_enable_beacon_filter() 820 mvmvif->bf_data.bf_enabled = true; _iwl_mvm_enable_beacon_filter() 841 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_update_beacon_abort() local 847 if (!mvmvif->bf_data.bf_enabled) iwl_mvm_update_beacon_abort() 853 mvmvif->bf_data.ba_enabled = enable; iwl_mvm_update_beacon_abort() 862 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_disable_beacon_filter() local 871 mvmvif->bf_data.bf_enabled = false; iwl_mvm_disable_beacon_filter() 907 struct iwl_mvm_vif *mvmvif; iwl_mvm_power_set_ba() local 913 mvmvif = iwl_mvm_vif_from_mac80211(vifs->bf_vif); iwl_mvm_power_set_ba() 915 ba_enable = !(!mvmvif->pm_enabled || mvm->ps_disabled || iwl_mvm_power_set_ba() 917 iwl_mvm_vif_low_latency(mvmvif)); iwl_mvm_power_set_ba() 983 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_update_d0i3_power_mode() local 1013 memcpy(&mvmvif->mac_pwr_cmd, &cmd, sizeof(cmd)); iwl_mvm_update_d0i3_power_mode() 1021 if (mvmvif != mvm->bf_allowed_vif) iwl_mvm_update_d0i3_power_mode() 1032 if (mvmvif->bf_data.bf_enabled) iwl_mvm_update_d0i3_power_mode()
|
H A D | binding.c | 121 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_iface_iterator() local 126 if (mvmvif->phy_ctxt != data->phyctxt) iwl_mvm_iface_iterator() 132 data->ids[data->idx] = mvmvif->id; iwl_mvm_iface_iterator() 133 data->colors[data->idx] = mvmvif->color; iwl_mvm_iface_iterator() 142 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_binding_update() local 171 data.ids[data.idx] = mvmvif->id; iwl_mvm_binding_update() 172 data.colors[data.idx] = mvmvif->color; iwl_mvm_binding_update() 181 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_binding_add_vif() local 183 if (WARN_ON_ONCE(!mvmvif->phy_ctxt)) iwl_mvm_binding_add_vif() 193 return iwl_mvm_binding_update(mvm, vif, mvmvif->phy_ctxt, true); iwl_mvm_binding_add_vif() 198 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_binding_remove_vif() local 201 if (WARN_ON_ONCE(!mvmvif->phy_ctxt)) iwl_mvm_binding_remove_vif() 204 ret = iwl_mvm_binding_update(mvm, vif, mvmvif->phy_ctxt, false); iwl_mvm_binding_remove_vif()
|
H A D | offloading.c | 107 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_send_proto_offload() local 129 if (mvmvif->num_target_ipv6_addrs) iwl_mvm_send_proto_offload() 138 i < mvmvif->num_target_ipv6_addrs && iwl_mvm_send_proto_offload() 143 addrconf_addr_solict_mult(&mvmvif->target_ipv6_addrs[i], iwl_mvm_send_proto_offload() 151 addrs[i].addr = mvmvif->target_ipv6_addrs[i]; iwl_mvm_send_proto_offload() 162 if (mvmvif->num_target_ipv6_addrs) { iwl_mvm_send_proto_offload() 168 sizeof(mvmvif->target_ipv6_addrs[0])); iwl_mvm_send_proto_offload() 170 for (i = 0; i < min(mvmvif->num_target_ipv6_addrs, iwl_mvm_send_proto_offload() 173 &mvmvif->target_ipv6_addrs[i], iwl_mvm_send_proto_offload() 176 if (mvmvif->num_target_ipv6_addrs) { iwl_mvm_send_proto_offload() 182 sizeof(mvmvif->target_ipv6_addrs[0])); iwl_mvm_send_proto_offload() 184 for (i = 0; i < min(mvmvif->num_target_ipv6_addrs, iwl_mvm_send_proto_offload() 187 &mvmvif->target_ipv6_addrs[i], iwl_mvm_send_proto_offload()
|
H A D | mac-ctxt.c | 99 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_tsf_id_iter() local 134 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) iwl_mvm_mac_tsf_id_iter() 145 data->preferred_tsf = mvmvif->tsf_id; iwl_mvm_mac_tsf_id_iter() 163 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) iwl_mvm_mac_tsf_id_iter() 174 data->preferred_tsf = mvmvif->tsf_id; iwl_mvm_mac_tsf_id_iter() 195 __clear_bit(mvmvif->tsf_id, data->available_tsf_ids); iwl_mvm_mac_tsf_id_iter() 197 if (data->preferred_tsf == mvmvif->tsf_id) iwl_mvm_mac_tsf_id_iter() 282 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_iface_iterator() local 296 __clear_bit(mvmvif->id, data->available_mac_ids); iwl_mvm_mac_iface_iterator() 305 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_ctxt_recalc_tsf_id() local 319 mvmvif->tsf_id = data.preferred_tsf; iwl_mvm_mac_ctxt_recalc_tsf_id() 320 else if (!test_bit(mvmvif->tsf_id, data.available_tsf_ids)) iwl_mvm_mac_ctxt_recalc_tsf_id() 321 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, iwl_mvm_mac_ctxt_recalc_tsf_id() 328 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_ctxt_allocate_resources() local 393 mvmvif->id = find_first_bit(data.available_mac_ids, iwl_mvm_mac_ctxt_allocate_resources() 395 if (mvmvif->id == NUM_MAC_INDEX_DRIVER) { iwl_mvm_mac_ctxt_allocate_resources() 402 mvmvif->tsf_id = data.preferred_tsf; iwl_mvm_mac_ctxt_allocate_resources() 404 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, iwl_mvm_mac_ctxt_allocate_resources() 406 if (mvmvif->tsf_id == NUM_TSF_IDS) { iwl_mvm_mac_ctxt_allocate_resources() 412 mvmvif->color = 0; iwl_mvm_mac_ctxt_allocate_resources() 414 INIT_LIST_HEAD(&mvmvif->time_event_data.list); iwl_mvm_mac_ctxt_allocate_resources() 415 mvmvif->time_event_data.id = TE_MAX; iwl_mvm_mac_ctxt_allocate_resources() 456 mvmvif->bcast_sta.sta_id = IWL_MVM_STATION_COUNT; iwl_mvm_mac_ctxt_allocate_resources() 457 mvmvif->ap_sta_id = IWL_MVM_STATION_COUNT; iwl_mvm_mac_ctxt_allocate_resources() 460 mvmvif->smps_requests[i] = IEEE80211_SMPS_AUTOMATIC; iwl_mvm_mac_ctxt_allocate_resources() 465 memset(mvmvif, 0, sizeof(struct iwl_mvm_vif)); iwl_mvm_mac_ctxt_allocate_resources() 649 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_ctxt_cmd_common() local 657 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, iwl_mvm_mac_ctxt_cmd_common() 658 mvmvif->color)); iwl_mvm_mac_ctxt_cmd_common() 684 cmd->tsf_id = cpu_to_le32(mvmvif->tsf_id); iwl_mvm_mac_ctxt_cmd_common() 714 cpu_to_le16(mvmvif->queue_params[i].cw_min); iwl_mvm_mac_ctxt_cmd_common() 716 cpu_to_le16(mvmvif->queue_params[i].cw_max); iwl_mvm_mac_ctxt_cmd_common() 718 cpu_to_le16(mvmvif->queue_params[i].txop * 32); iwl_mvm_mac_ctxt_cmd_common() 719 cmd->ac[txf].aifsn = mvmvif->queue_params[i].aifs; iwl_mvm_mac_ctxt_cmd_common() 864 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_ctxt_cmd_ibss() local 880 cmd.ibss.beacon_template = cpu_to_le32(mvmvif->id); iwl_mvm_mac_ctxt_cmd_ibss() 892 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_go_iterator() local 895 mvmvif->ap_ibss_active) iwl_mvm_go_iterator() 960 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_ctxt_send_beacon() local 977 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); iwl_mvm_mac_ctxt_send_beacon() 982 beacon_cmd.tx.sta_id = mvmvif->bcast_sta.sta_id; iwl_mvm_mac_ctxt_send_beacon() 1075 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_ctxt_cmd_fill_ap() local 1110 mvmvif->ap_beacon_time = data.beacon_device_ts + iwl_mvm_mac_ctxt_cmd_fill_ap() 1114 mvmvif->ap_beacon_time = iwl_mvm_mac_ctxt_cmd_fill_ap() 1120 ctxt_ap->beacon_time = cpu_to_le32(mvmvif->ap_beacon_time); iwl_mvm_mac_ctxt_cmd_fill_ap() 1124 ctxt_ap->beacon_template = cpu_to_le32(mvmvif->id); iwl_mvm_mac_ctxt_cmd_fill_ap() 1215 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_ctxt_add() local 1218 if (WARN_ONCE(mvmvif->uploaded, "Adding active MAC %pM/%d\n", iwl_mvm_mac_ctxt_add() 1230 mvmvif->uploaded = true; iwl_mvm_mac_ctxt_add() 1237 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_ctxt_changed() local 1239 if (WARN_ONCE(!mvmvif->uploaded, "Changing inactive MAC %pM/%d\n", iwl_mvm_mac_ctxt_changed() 1249 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_ctxt_remove() local 1253 if (WARN_ONCE(!mvmvif->uploaded, "Removing inactive MAC %pM/%d\n", iwl_mvm_mac_ctxt_remove() 1259 cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, iwl_mvm_mac_ctxt_remove() 1260 mvmvif->color)); iwl_mvm_mac_ctxt_remove() 1270 mvmvif->uploaded = false; iwl_mvm_mac_ctxt_remove() 1282 struct iwl_mvm_vif *mvmvif = iwl_mvm_csa_count_down() local 1286 if (!tx_success && !mvmvif->csa_countdown) iwl_mvm_csa_count_down() 1289 mvmvif->csa_countdown = true; iwl_mvm_csa_count_down() 1296 !iwl_mvm_te_scheduled(&mvmvif->time_event_data) && gp2 && iwl_mvm_csa_count_down() 1308 } else if (!iwl_mvm_te_scheduled(&mvmvif->time_event_data)) { iwl_mvm_csa_count_down() 1348 struct iwl_mvm_vif *mvmvif = iwl_mvm_rx_beacon_notif() local 1364 iwl_mvm_modify_all_sta_disable_tx(mvm, mvmvif, false); iwl_mvm_rx_beacon_notif() 1376 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_beacon_loss_iterator() local 1377 struct iwl_mvm *mvm = mvmvif->mvm; iwl_mvm_beacon_loss_iterator() 1383 if (mvmvif->id != (u16)le32_to_cpu(missed_beacons->mac_id)) iwl_mvm_beacon_loss_iterator()
|
H A D | quota.c | 85 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_quota_iterator() local 92 if (!mvmvif->phy_ctxt) iwl_mvm_quota_iterator() 96 id = mvmvif->phy_ctxt->id; iwl_mvm_quota_iterator() 111 if (mvmvif->ap_ibss_active) iwl_mvm_quota_iterator() 115 if (mvmvif->monitor_active) iwl_mvm_quota_iterator() 126 data->colors[id] = mvmvif->phy_ctxt->color; iwl_mvm_quota_iterator() 128 WARN_ON_ONCE(data->colors[id] != mvmvif->phy_ctxt->color); iwl_mvm_quota_iterator() 132 if (iwl_mvm_vif_low_latency(mvmvif) && !data->low_latency[id]) { iwl_mvm_quota_iterator() 142 struct iwl_mvm_vif *mvmvif; iwl_mvm_adjust_quota_for_noa() local 148 mvmvif = iwl_mvm_vif_from_mac80211(mvm->noa_vif); iwl_mvm_adjust_quota_for_noa() 149 if (!mvmvif->ap_ibss_active) iwl_mvm_adjust_quota_for_noa() 152 phy_id = mvmvif->phy_ctxt->id; iwl_mvm_adjust_quota_for_noa()
|
H A D | time-event.c | 203 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_te_handle_notify_csa() local 211 mvmvif->csa_failed = true; iwl_mvm_te_handle_notify_csa() 567 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_protect_session() local 568 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; iwl_mvm_protect_session() 599 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); iwl_mvm_protect_session() 681 struct iwl_mvm_vif *mvmvif, iwl_mvm_remove_aux_roc_te() 694 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); iwl_mvm_remove_aux_roc_te() 710 struct iwl_mvm_vif *mvmvif, iwl_mvm_remove_time_event() 724 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); iwl_mvm_remove_time_event() 736 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_stop_session_protection() local 737 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; iwl_mvm_stop_session_protection() 740 iwl_mvm_remove_time_event(mvm, mvmvif, te_data); iwl_mvm_stop_session_protection() 746 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_start_p2p_roc() local 747 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; iwl_mvm_start_p2p_roc() 764 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); iwl_mvm_start_p2p_roc() 800 struct iwl_mvm_vif *mvmvif; iwl_mvm_stop_roc() local 806 mvmvif = NULL; iwl_mvm_stop_roc() 818 mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif); iwl_mvm_stop_roc() 832 mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif); iwl_mvm_stop_roc() 839 if (!mvmvif) { iwl_mvm_stop_roc() 845 iwl_mvm_remove_time_event(mvm, mvmvif, te_data); iwl_mvm_stop_roc() 847 iwl_mvm_remove_aux_roc_te(mvm, mvmvif, te_data); iwl_mvm_stop_roc() 856 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_schedule_csa_period() local 857 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; iwl_mvm_schedule_csa_period() 869 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); iwl_mvm_schedule_csa_period() 680 iwl_mvm_remove_aux_roc_te(struct iwl_mvm *mvm, struct iwl_mvm_vif *mvmvif, struct iwl_mvm_time_event_data *te_data) iwl_mvm_remove_aux_roc_te() argument 709 iwl_mvm_remove_time_event(struct iwl_mvm *mvm, struct iwl_mvm_vif *mvmvif, struct iwl_mvm_time_event_data *te_data) iwl_mvm_remove_time_event() argument
|
H A D | rx.c | 462 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_stat_iterator() local 469 mvmvif->beacon_stats.num_beacons = iwl_mvm_stat_iterator() 470 le32_to_cpu(data->general->beacon_counter[mvmvif->id]); iwl_mvm_stat_iterator() 471 mvmvif->beacon_stats.avg_signal = iwl_mvm_stat_iterator() 472 -data->general->beacon_average_energy[mvmvif->id]; iwl_mvm_stat_iterator() 475 if (mvmvif->id != id) iwl_mvm_stat_iterator() 486 mvmvif->bf_data.ave_beacon_signal = sig; iwl_mvm_stat_iterator() 489 if (mvmvif->bf_data.bt_coex_min_thold != iwl_mvm_stat_iterator() 490 mvmvif->bf_data.bt_coex_max_thold) { iwl_mvm_stat_iterator() 491 last_event = mvmvif->bf_data.last_bt_coex_event; iwl_mvm_stat_iterator() 492 if (sig > mvmvif->bf_data.bt_coex_max_thold && iwl_mvm_stat_iterator() 493 (last_event <= mvmvif->bf_data.bt_coex_min_thold || iwl_mvm_stat_iterator() 495 mvmvif->bf_data.last_bt_coex_event = sig; iwl_mvm_stat_iterator() 499 } else if (sig < mvmvif->bf_data.bt_coex_min_thold && iwl_mvm_stat_iterator() 500 (last_event >= mvmvif->bf_data.bt_coex_max_thold || iwl_mvm_stat_iterator() 502 mvmvif->bf_data.last_bt_coex_event = sig; iwl_mvm_stat_iterator() 513 last_event = mvmvif->bf_data.last_cqm_event; iwl_mvm_stat_iterator() 516 mvmvif->bf_data.last_cqm_event = sig; iwl_mvm_stat_iterator() 525 mvmvif->bf_data.last_cqm_event = sig; iwl_mvm_stat_iterator()
|
H A D | d3.c | 82 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_set_rekey_data() local 89 memcpy(mvmvif->rekey_data.kek, data->kek, NL80211_KEK_LEN); iwl_mvm_set_rekey_data() 90 memcpy(mvmvif->rekey_data.kck, data->kck, NL80211_KCK_LEN); iwl_mvm_set_rekey_data() 91 mvmvif->rekey_data.replay_ctr = iwl_mvm_set_rekey_data() 93 mvmvif->rekey_data.valid = true; iwl_mvm_set_rekey_data() 103 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_ipv6_addr_change() local 109 mvmvif->target_ipv6_addrs[idx] = ifa->addr; iwl_mvm_ipv6_addr_change() 116 mvmvif->num_target_ipv6_addrs = idx; iwl_mvm_ipv6_addr_change() 123 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_set_default_unicast_key() local 125 mvmvif->tx_key_idx = idx; iwl_mvm_set_default_unicast_key() 150 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_wowlan_program_keys() local 171 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, iwl_mvm_wowlan_program_keys() 172 mvmvif->color)), iwl_mvm_wowlan_program_keys() 189 if (key->keyidx == mvmvif->tx_key_idx) { iwl_mvm_wowlan_program_keys() 607 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_d3_reprogram() local 617 if (WARN_ON(!mvmvif->phy_ctxt)) iwl_mvm_d3_reprogram() 631 ret = iwl_mvm_phy_ctxt_add(mvm, mvmvif->phy_ctxt, &chandef, iwl_mvm_d3_reprogram() 637 mvmvif->uploaded = false; iwl_mvm_d3_reprogram() 648 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->phy_ctxt->id, iwl_mvm_d3_reprogram() 649 mvmvif->phy_ctxt->color)); iwl_mvm_d3_reprogram() 652 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->phy_ctxt->id, iwl_mvm_d3_reprogram() 653 mvmvif->phy_ctxt->color)); iwl_mvm_d3_reprogram() 654 binding_cmd.macs[0] = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, iwl_mvm_d3_reprogram() 655 mvmvif->color)); iwl_mvm_d3_reprogram() 676 rcu_assign_pointer(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id], ap_sta); iwl_mvm_d3_reprogram() 684 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->phy_ctxt->id, iwl_mvm_d3_reprogram() 685 mvmvif->phy_ctxt->color)); iwl_mvm_d3_reprogram() 706 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_get_last_nonqos_seq() local 710 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, iwl_mvm_get_last_nonqos_seq() 711 mvmvif->color)), iwl_mvm_get_last_nonqos_seq() 742 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_set_last_nonqos_seq() local 746 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, iwl_mvm_set_last_nonqos_seq() 747 mvmvif->color)), iwl_mvm_set_last_nonqos_seq() 748 .value = cpu_to_le16(mvmvif->seqno), iwl_mvm_set_last_nonqos_seq() 752 if (!mvmvif->seqno_valid) iwl_mvm_set_last_nonqos_seq() 755 mvmvif->seqno_valid = false; iwl_mvm_set_last_nonqos_seq() 795 struct ieee80211_vif *vif, struct iwl_mvm_vif *mvmvif, iwl_mvm_get_wowlan_config() 858 struct ieee80211_vif *vif, struct iwl_mvm_vif *mvmvif, iwl_mvm_wowlan_config() 920 if (mvmvif->rekey_data.valid) { iwl_mvm_wowlan_config() 922 memcpy(kek_kck_cmd.kck, mvmvif->rekey_data.kck, iwl_mvm_wowlan_config() 925 memcpy(kek_kck_cmd.kek, mvmvif->rekey_data.kek, iwl_mvm_wowlan_config() 928 kek_kck_cmd.replay_ctr = mvmvif->rekey_data.replay_ctr; iwl_mvm_wowlan_config() 1028 struct iwl_mvm_vif *mvmvif = NULL; __iwl_mvm_suspend() local 1064 mvmvif = iwl_mvm_vif_from_mac80211(vif); __iwl_mvm_suspend() 1066 if (mvmvif->ap_sta_id == IWL_MVM_STATION_COUNT) { __iwl_mvm_suspend() 1083 mvm->fw_id_to_mac_id[mvmvif->ap_sta_id], __iwl_mvm_suspend() 1091 vif, mvmvif, ap_sta); __iwl_mvm_suspend() 1095 vif, mvmvif, ap_sta); __iwl_mvm_suspend() 1477 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_setup_connection_keep() local 1551 mvmvif->seqno_valid = true; iwl_mvm_setup_connection_keep() 1553 mvmvif->seqno = le16_to_cpu(status->non_qos_seq_ctr) + 0x10; iwl_mvm_setup_connection_keep() 792 iwl_mvm_get_wowlan_config(struct iwl_mvm *mvm, struct cfg80211_wowlan *wowlan, struct iwl_wowlan_config_cmd *wowlan_config_cmd, struct ieee80211_vif *vif, struct iwl_mvm_vif *mvmvif, struct ieee80211_sta *ap_sta) iwl_mvm_get_wowlan_config() argument 855 iwl_mvm_wowlan_config(struct iwl_mvm *mvm, struct cfg80211_wowlan *wowlan, struct iwl_wowlan_config_cmd *wowlan_config_cmd, struct ieee80211_vif *vif, struct iwl_mvm_vif *mvmvif, struct ieee80211_sta *ap_sta) iwl_mvm_wowlan_config() argument
|
H A D | coex.c | 521 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bt_coex_enable_rssi_event() local 523 mvmvif->bf_data.last_bt_coex_event = rssi; iwl_mvm_bt_coex_enable_rssi_event() 524 mvmvif->bf_data.bt_coex_max_thold = iwl_mvm_bt_coex_enable_rssi_event() 526 mvmvif->bf_data.bt_coex_min_thold = iwl_mvm_bt_coex_enable_rssi_event() 534 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bt_notif_iterator() local 549 if (!mvmvif->ap_ibss_active) iwl_mvm_bt_notif_iterator() 565 iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, iwl_mvm_bt_notif_iterator() 582 if (mvmvif->phy_ctxt && iwl_mvm_bt_notif_iterator() 584 mvmvif->phy_ctxt->id)) iwl_mvm_bt_notif_iterator() 589 mvmvif->id, bt_activity_grading, smps_mode); iwl_mvm_bt_notif_iterator() 596 if (iwl_mvm_vif_low_latency(mvmvif)) { iwl_mvm_bt_notif_iterator() 604 if (!mvmvif->ap_ibss_active) iwl_mvm_bt_notif_iterator() 644 iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, false); iwl_mvm_bt_notif_iterator() 650 ave_rssi = mvmvif->bf_data.ave_beacon_signal; iwl_mvm_bt_notif_iterator() 656 if (iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, true)) iwl_mvm_bt_notif_iterator() 659 if (iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, false)) iwl_mvm_bt_notif_iterator() 776 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bt_rssi_iterator() local 796 mvmvif->ap_sta_id == IWL_MVM_STATION_COUNT) iwl_mvm_bt_rssi_iterator() 799 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id], iwl_mvm_bt_rssi_iterator() 812 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bt_rssi_event() local 833 if (mvmvif->ap_sta_id == IWL_MVM_STATION_COUNT) iwl_mvm_bt_rssi_event() 849 ret = iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, iwl_mvm_bt_rssi_event() 852 ret = iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, true); iwl_mvm_bt_rssi_event() 869 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); iwl_mvm_coex_agg_time_limit() local 870 struct iwl_mvm_phy_ctxt *phy_ctxt = mvmvif->phy_ctxt; iwl_mvm_coex_agg_time_limit() 896 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); iwl_mvm_bt_coex_is_mimo_allowed() local 897 struct iwl_mvm_phy_ctxt *phy_ctxt = mvmvif->phy_ctxt; iwl_mvm_bt_coex_is_mimo_allowed()
|
H A D | mac80211.c | 825 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_cleanup_iterator() local 827 mvmvif->uploaded = false; iwl_mvm_cleanup_iterator() 828 mvmvif->ap_sta_id = IWL_MVM_STATION_COUNT; iwl_mvm_cleanup_iterator() 831 iwl_mvm_te_clear_data(mvm, &mvmvif->time_event_data); iwl_mvm_cleanup_iterator() 834 mvmvif->phy_ctxt = NULL; iwl_mvm_cleanup_iterator() 835 memset(&mvmvif->bf_data, 0, sizeof(mvmvif->bf_data)); iwl_mvm_cleanup_iterator() 1512 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_add_interface() local 1515 mvmvif->mvm = mvm; iwl_mvm_mac_add_interface() 1536 mvmvif->beacon_stats.accu_num_beacons += iwl_mvm_mac_add_interface() 1537 mvmvif->beacon_stats.num_beacons; iwl_mvm_mac_add_interface() 1586 mvm->bf_allowed_vif = mvmvif; iwl_mvm_mac_add_interface() 1598 mvmvif->phy_ctxt = iwl_mvm_get_free_phy_ctxt(mvm); iwl_mvm_mac_add_interface() 1599 if (!mvmvif->phy_ctxt) { iwl_mvm_mac_add_interface() 1604 iwl_mvm_phy_ctxt_ref(mvm, mvmvif->phy_ctxt); iwl_mvm_mac_add_interface() 1624 iwl_mvm_phy_ctxt_unref(mvm, mvmvif->phy_ctxt); iwl_mvm_mac_add_interface() 1626 if (mvm->bf_allowed_vif == mvmvif) { iwl_mvm_mac_add_interface() 1632 mvmvif->phy_ctxt = NULL; iwl_mvm_mac_add_interface() 1704 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_remove_interface() local 1710 if (mvm->bf_allowed_vif == mvmvif) { iwl_mvm_mac_remove_interface() 1738 iwl_mvm_phy_ctxt_unref(mvm, mvmvif->phy_ctxt); iwl_mvm_mac_remove_interface() 1739 mvmvif->phy_ctxt = NULL; iwl_mvm_mac_remove_interface() 1913 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bcast_filter_iterator() local 1917 if (WARN_ON(mvmvif->id >= ARRAY_SIZE(cmd->macs))) iwl_mvm_bcast_filter_iterator() 1920 bcast_mac = &cmd->macs[mvmvif->id]; iwl_mvm_bcast_filter_iterator() 2026 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bss_info_changed_station() local 2043 if (changes & BSS_CHANGED_BSSID && !mvmvif->associated) iwl_mvm_bss_info_changed_station() 2044 memcpy(mvmvif->bssid, bss_conf->bssid, ETH_ALEN); iwl_mvm_bss_info_changed_station() 2046 ret = iwl_mvm_mac_ctxt_changed(mvm, vif, false, mvmvif->bssid); iwl_mvm_bss_info_changed_station() 2051 memcpy(mvmvif->bssid, bss_conf->bssid, ETH_ALEN); iwl_mvm_bss_info_changed_station() 2052 mvmvif->associated = bss_conf->assoc; iwl_mvm_bss_info_changed_station() 2058 memset(&mvmvif->beacon_stats, 0, iwl_mvm_bss_info_changed_station() 2059 sizeof(mvmvif->beacon_stats)); iwl_mvm_bss_info_changed_station() 2097 } else if (mvmvif->ap_sta_id != IWL_MVM_STATION_COUNT) { iwl_mvm_bss_info_changed_station() 2106 ret = iwl_mvm_rm_sta_id(mvm, vif, mvmvif->ap_sta_id); iwl_mvm_bss_info_changed_station() 2110 if (mvm->d0i3_ap_sta_id == mvmvif->ap_sta_id) iwl_mvm_bss_info_changed_station() 2112 mvmvif->ap_sta_id = IWL_MVM_STATION_COUNT; iwl_mvm_bss_info_changed_station() 2133 mvmvif->bf_data.ave_beacon_signal = 0; iwl_mvm_bss_info_changed_station() 2143 iwl_mvm_remove_time_event(mvm, mvmvif, iwl_mvm_bss_info_changed_station() 2144 &mvmvif->time_event_data); iwl_mvm_bss_info_changed_station() 2167 mvmvif->bf_data.last_cqm_event = 0; iwl_mvm_bss_info_changed_station() 2168 if (mvmvif->bf_data.bf_enabled) { iwl_mvm_bss_info_changed_station() 2186 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_start_ap_ibss() local 2228 mvmvif->ap_ibss_active = true; iwl_mvm_start_ap_ibss() 2253 mvmvif->ap_ibss_active = false; iwl_mvm_start_ap_ibss() 2269 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_stop_ap_ibss() local 2277 iwl_mvm_remove_time_event(mvm, mvmvif, iwl_mvm_stop_ap_ibss() 2278 &mvmvif->time_event_data); iwl_mvm_stop_ap_ibss() 2280 mvmvif->csa_countdown = false; iwl_mvm_stop_ap_ibss() 2288 mvmvif->ap_ibss_active = false; iwl_mvm_stop_ap_ibss() 2316 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bss_info_changed_ap_ibss() local 2319 if (!mvmvif->ap_ibss_active) iwl_mvm_bss_info_changed_ap_ibss() 2616 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_sta_state() local 2623 if (WARN_ON_ONCE(!mvmvif->phy_ctxt)) iwl_mvm_mac_sta_state() 2675 mvmvif->phy_ctxt->channel->band, iwl_mvm_mac_sta_state() 2746 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_conf_tx() local 2748 mvmvif->queue_params[ac] = *params; iwl_mvm_mac_conf_tx() 3016 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_send_aux_roc_cmd() local 3017 struct iwl_mvm_time_event_data *te_data = &mvmvif->hs_time_event_data; iwl_mvm_send_aux_roc_cmd() 3100 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_roc() local 3135 if (phy_ctxt->ref == 0 || mvmvif->phy_ctxt == phy_ctxt) iwl_mvm_roc() 3147 iwl_mvm_phy_ctxt_unref(mvm, mvmvif->phy_ctxt); iwl_mvm_roc() 3150 mvmvif->phy_ctxt = phy_ctxt; iwl_mvm_roc() 3156 iwl_mvm_phy_ctxt_ref(mvm, mvmvif->phy_ctxt); iwl_mvm_roc() 3162 if (channel == mvmvif->phy_ctxt->channel) iwl_mvm_roc() 3171 if (mvmvif->phy_ctxt->ref == 1) { iwl_mvm_roc() 3172 ret = iwl_mvm_phy_ctxt_changed(mvm, mvmvif->phy_ctxt, iwl_mvm_roc() 3200 iwl_mvm_phy_ctxt_unref(mvm, mvmvif->phy_ctxt); iwl_mvm_roc() 3203 mvmvif->phy_ctxt = phy_ctxt; iwl_mvm_roc() 3209 iwl_mvm_phy_ctxt_ref(mvm, mvmvif->phy_ctxt); iwl_mvm_roc() 3333 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); __iwl_mvm_assign_vif_chanctx() local 3338 mvmvif->phy_ctxt = phy_ctxt; __iwl_mvm_assign_vif_chanctx() 3344 mvmvif->ap_ibss_active = true; __iwl_mvm_assign_vif_chanctx() 3358 mvmvif->ps_disabled = true; __iwl_mvm_assign_vif_chanctx() 3380 mvmvif->monitor_active = true; __iwl_mvm_assign_vif_chanctx() 3422 mvmvif->phy_ctxt = NULL; __iwl_mvm_assign_vif_chanctx() 3444 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); __iwl_mvm_unassign_vif_chanctx() local 3449 iwl_mvm_remove_time_event(mvm, mvmvif, &mvmvif->time_event_data); __iwl_mvm_unassign_vif_chanctx() 3455 mvmvif->monitor_active = false; __iwl_mvm_unassign_vif_chanctx() 3456 mvmvif->ps_disabled = false; __iwl_mvm_unassign_vif_chanctx() 3460 if (!switching_chanctx || !mvmvif->ap_ibss_active) __iwl_mvm_unassign_vif_chanctx() 3463 mvmvif->csa_countdown = false; __iwl_mvm_unassign_vif_chanctx() 3466 iwl_mvm_modify_all_sta_disable_tx(mvm, mvmvif, true); __iwl_mvm_unassign_vif_chanctx() 3471 mvmvif->ap_ibss_active = false; __iwl_mvm_unassign_vif_chanctx() 3489 mvmvif->phy_ctxt = NULL; __iwl_mvm_unassign_vif_chanctx() 3728 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_pre_channel_switch() local 3734 mvmvif->csa_failed = false; iwl_mvm_pre_channel_switch() 3754 if (WARN_ONCE(mvmvif->csa_countdown, iwl_mvm_pre_channel_switch() 3775 if (mvmvif->bf_data.bf_enabled) { iwl_mvm_pre_channel_switch() 3786 mvmvif->ps_disabled = true; iwl_mvm_pre_channel_switch() 3804 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_post_channel_switch() local 3810 if (mvmvif->csa_failed) { iwl_mvm_post_channel_switch() 3811 mvmvif->csa_failed = false; iwl_mvm_post_channel_switch() 3820 mvmvif->ap_sta_id); iwl_mvm_post_channel_switch() 3838 mvmvif->ps_disabled = false; iwl_mvm_post_channel_switch() 3852 struct iwl_mvm_vif *mvmvif; iwl_mvm_mac_flush() local 3862 mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_flush() 3876 WARN_ON(i != mvmvif->ap_sta_id && !sta->tdls); iwl_mvm_mac_flush() 3951 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_mac_sta_statistics() local 3967 if (mvmvif->ap_sta_id != mvmsta->sta_id) iwl_mvm_mac_sta_statistics() 3973 sinfo->rx_beacon = mvmvif->beacon_stats.num_beacons + iwl_mvm_mac_sta_statistics() 3974 mvmvif->beacon_stats.accu_num_beacons; iwl_mvm_mac_sta_statistics() 3976 if (mvmvif->beacon_stats.avg_signal) { iwl_mvm_mac_sta_statistics() 3978 sinfo->rx_beacon_signal_avg = mvmvif->beacon_stats.avg_signal; iwl_mvm_mac_sta_statistics()
|
H A D | sta.c | 263 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_add_sta() local 281 mvm_sta->mac_id_n_color = FW_CMD_ID_AND_COLOR(mvmvif->id, iwl_mvm_add_sta() 282 mvmvif->color); iwl_mvm_add_sta() 318 WARN_ON(mvmvif->ap_sta_id != IWL_MVM_STATION_COUNT); iwl_mvm_add_sta() 319 mvmvif->ap_sta_id = sta_id; iwl_mvm_add_sta() 321 WARN_ON(mvmvif->ap_sta_id == IWL_MVM_STATION_COUNT); iwl_mvm_add_sta() 485 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_rm_sta() local 492 mvmvif->ap_sta_id == mvm_sta->sta_id) { iwl_mvm_rm_sta() 511 mvmvif->ap_sta_id = IWL_MVM_STATION_COUNT; iwl_mvm_rm_sta() 683 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_send_add_bcast_sta() local 684 struct iwl_mvm_int_sta *bsta = &mvmvif->bcast_sta; iwl_mvm_send_add_bcast_sta() 697 mvmvif->id, mvmvif->color); iwl_mvm_send_add_bcast_sta() 704 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_send_rm_bcast_sta() local 709 ret = iwl_mvm_rm_sta_common(mvm, mvmvif->bcast_sta.sta_id); iwl_mvm_send_rm_bcast_sta() 717 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_alloc_bcast_sta() local 732 return iwl_mvm_allocate_int_sta(mvm, &mvmvif->bcast_sta, qmask, iwl_mvm_alloc_bcast_sta() 745 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_add_bcast_sta() local 746 struct iwl_mvm_int_sta *bsta = &mvmvif->bcast_sta; iwl_mvm_add_bcast_sta() 765 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_dealloc_bcast_sta() local 767 iwl_mvm_dealloc_int_sta(mvm, &mvmvif->bcast_sta); iwl_mvm_dealloc_bcast_sta() 1168 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_get_key_sta_id() local 1182 mvmvif->ap_sta_id != IWL_MVM_STATION_COUNT) iwl_mvm_get_key_sta_id() 1183 return mvmvif->ap_sta_id; iwl_mvm_get_key_sta_id() 1305 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_get_mac_addr() local 1311 mvmvif->ap_sta_id != IWL_MVM_STATION_COUNT) { iwl_mvm_get_mac_addr() 1312 u8 sta_id = mvmvif->ap_sta_id; iwl_mvm_get_mac_addr() 1730 struct iwl_mvm_vif *mvmvif, iwl_mvm_modify_all_sta_disable_tx() 1739 /* Block/unblock all the stations of the given mvmvif */ iwl_mvm_modify_all_sta_disable_tx() 1748 FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)) iwl_mvm_modify_all_sta_disable_tx() 1757 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_csa_client_absent() local 1762 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, mvmvif->ap_sta_id); iwl_mvm_csa_client_absent() 1729 iwl_mvm_modify_all_sta_disable_tx(struct iwl_mvm *mvm, struct iwl_mvm_vif *mvmvif, bool disable) iwl_mvm_modify_all_sta_disable_tx() argument
|
H A D | coex_legacy.c | 830 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bt_coex_enable_rssi_event() local 832 mvmvif->bf_data.last_bt_coex_event = rssi; iwl_mvm_bt_coex_enable_rssi_event() 833 mvmvif->bf_data.bt_coex_max_thold = iwl_mvm_bt_coex_enable_rssi_event() 835 mvmvif->bf_data.bt_coex_min_thold = iwl_mvm_bt_coex_enable_rssi_event() 843 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bt_notif_iterator() local 859 if (!mvmvif->ap_ibss_active) iwl_mvm_bt_notif_iterator() 875 iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, iwl_mvm_bt_notif_iterator() 894 if (mvmvif->phy_ctxt && iwl_mvm_bt_notif_iterator() 895 data->notif->rrc_enabled & BIT(mvmvif->phy_ctxt->id)) iwl_mvm_bt_notif_iterator() 900 mvmvif->id, data->notif->bt_status, bt_activity_grading, iwl_mvm_bt_notif_iterator() 908 if (iwl_mvm_vif_low_latency(mvmvif)) { iwl_mvm_bt_notif_iterator() 916 if (!mvmvif->ap_ibss_active) iwl_mvm_bt_notif_iterator() 956 iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, false); iwl_mvm_bt_notif_iterator() 962 ave_rssi = mvmvif->bf_data.ave_beacon_signal; iwl_mvm_bt_notif_iterator() 968 if (iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, true)) iwl_mvm_bt_notif_iterator() 971 if (iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, false)) iwl_mvm_bt_notif_iterator() 1097 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bt_rssi_iterator() local 1117 mvmvif->ap_sta_id == IWL_MVM_STATION_COUNT) iwl_mvm_bt_rssi_iterator() 1120 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id], iwl_mvm_bt_rssi_iterator() 1133 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bt_rssi_event_old() local 1149 if (mvmvif->ap_sta_id == IWL_MVM_STATION_COUNT) iwl_mvm_bt_rssi_event_old() 1165 ret = iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, iwl_mvm_bt_rssi_event_old() 1168 ret = iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, true); iwl_mvm_bt_rssi_event_old()
|
H A D | sf.c | 83 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_bound_iface_iterator() local 85 if (vif == data->ignore_vif || !mvmvif->phy_ctxt || iwl_mvm_bound_iface_iterator() 92 data->sta_vif_ap_sta_id = mvmvif->ap_sta_id; iwl_mvm_bound_iface_iterator() 284 struct iwl_mvm_vif *mvmvif = NULL; iwl_mvm_sf_update() local 327 mvmvif = iwl_mvm_vif_from_mac80211(changed_vif); iwl_mvm_sf_update() 328 sta_id = mvmvif->ap_sta_id; iwl_mvm_sf_update()
|
H A D | utils.c | 751 struct iwl_mvm_vif *mvmvif; iwl_mvm_update_smps() local 766 mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_update_smps() 767 mvmvif->smps_requests[req_type] = smps_request; iwl_mvm_update_smps() 769 if (mvmvif->smps_requests[i] == IEEE80211_SMPS_STATIC) { iwl_mvm_update_smps() 773 if (mvmvif->smps_requests[i] == IEEE80211_SMPS_DYNAMIC) iwl_mvm_update_smps() 817 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_diversity_iter() local 822 if (mvmvif->smps_requests[i] == IEEE80211_SMPS_STATIC || iwl_mvm_diversity_iter() 823 mvmvif->smps_requests[i] == IEEE80211_SMPS_DYNAMIC) iwl_mvm_diversity_iter() 850 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_update_low_latency() local 855 if (mvmvif->low_latency == value) iwl_mvm_update_low_latency() 858 mvmvif->low_latency = value; iwl_mvm_update_low_latency()
|
H A D | phy-ctxt.c | 275 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_binding_iterator() local 277 if (!mvmvif->phy_ctxt) iwl_mvm_binding_iterator() 282 __set_bit(mvmvif->phy_ctxt->id, data); iwl_mvm_binding_iterator()
|
H A D | ops.c | 979 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_disallow_offloading() local 986 mvmvif->ap_sta_id == IWL_MVM_STATION_COUNT)) iwl_mvm_disallow_offloading() 989 ap_sta = rcu_dereference(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id]); iwl_mvm_disallow_offloading() 1032 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_enter_d0i3_iterator() local 1057 data->ap_sta_id = mvmvif->ap_sta_id; iwl_mvm_enter_d0i3_iterator() 1171 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_d0i3_disconnect_iter() local 1174 mvm->d0i3_ap_sta_id == mvmvif->ap_sta_id) iwl_mvm_d0i3_disconnect_iter()
|
H A D | tdls.c | 135 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_tdls_config() local 140 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); iwl_mvm_tdls_config()
|
H A D | rs.c | 164 struct iwl_mvm_vif *mvmvif; rs_mimo_allow() local 179 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); rs_mimo_allow() 180 if (iwl_mvm_vif_low_latency(mvmvif) && mvmsta->vif->p2p) rs_mimo_allow() 3207 struct iwl_mvm_vif *mvmvif; rs_fill_lq_cmd() local 3233 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); rs_fill_lq_cmd() 3245 if (iwl_mvm_vif_low_latency(mvmvif)) { rs_fill_lq_cmd()
|
H A D | scan.c | 198 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_scan_condition_iterator() local 201 if (vif->type != NL80211_IFTYPE_P2P_DEVICE && mvmvif->phy_ctxt && iwl_mvm_scan_condition_iterator() 202 mvmvif->phy_ctxt->id < MAX_PHYS) iwl_mvm_scan_condition_iterator()
|
H A D | time-event.h | 205 struct iwl_mvm_vif *mvmvif,
|
H A D | tx.c | 349 struct iwl_mvm_vif *mvmvif = iwl_mvm_tx_skb_non_sta() local 351 sta_id = mvmvif->bcast_sta.sta_id; iwl_mvm_tx_skb_non_sta()
|
H A D | sta.h | 423 struct iwl_mvm_vif *mvmvif,
|
H A D | mvm.h | 1360 static inline bool iwl_mvm_vif_low_latency(struct iwl_mvm_vif *mvmvif) iwl_mvm_vif_low_latency() argument 1373 return mvmvif->low_latency; iwl_mvm_vif_low_latency()
|