Lines Matching refs:vdev_id
457 if (arvif->vdev_id == arvif_iter->vdev_id) in ath11k_get_arvif_iter()
461 struct ath11k_vif *ath11k_mac_get_arvif(struct ath11k *ar, u32 vdev_id) in ath11k_mac_get_arvif() argument
467 arvif_iter.vdev_id = vdev_id; in ath11k_mac_get_arvif()
475 ath11k_warn(ar->ab, "No VIF found for vdev %d\n", vdev_id); in ath11k_mac_get_arvif()
483 u32 vdev_id) in ath11k_mac_get_arvif_by_vdev_id() argument
492 arvif = ath11k_mac_get_arvif(pdev->ar, vdev_id); in ath11k_mac_get_arvif_by_vdev_id()
501 struct ath11k *ath11k_mac_get_ar_by_vdev_id(struct ath11k_base *ab, u32 vdev_id) in ath11k_mac_get_ar_by_vdev_id() argument
509 if (pdev->ar->allocated_vdev_map & (1LL << vdev_id)) in ath11k_mac_get_ar_by_vdev_id()
643 arvif->vdev_id, rts_cts); in ath11k_recalc_rtscts_prot()
645 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_recalc_rtscts_prot()
649 arvif->vdev_id, ret); in ath11k_recalc_rtscts_prot()
665 arvif->vdev_id, ret); in ath11k_mac_set_kickout()
670 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, param, in ath11k_mac_set_kickout()
674 arvif->vdev_id, ret); in ath11k_mac_set_kickout()
679 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, param, in ath11k_mac_set_kickout()
683 arvif->vdev_id, ret); in ath11k_mac_set_kickout()
688 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, param, in ath11k_mac_set_kickout()
692 arvif->vdev_id, ret); in ath11k_mac_set_kickout()
718 static int ath11k_monitor_vdev_up(struct ath11k *ar, int vdev_id) in ath11k_monitor_vdev_up() argument
722 ret = ath11k_wmi_vdev_up(ar, vdev_id, 0, ar->mac_addr); in ath11k_monitor_vdev_up()
725 vdev_id, ret); in ath11k_monitor_vdev_up()
730 vdev_id); in ath11k_monitor_vdev_up()
776 ret = ath11k_wmi_bcn_tmpl(ar, arvif->vdev_id, &offs, bcn); in ath11k_mac_setup_bcn_tmpl()
796 ret = ath11k_wmi_vdev_down(ar, arvif->vdev_id); in ath11k_control_beaconing()
799 arvif->vdev_id, ret); in ath11k_control_beaconing()
819 ret = ath11k_wmi_vdev_up(arvif->ar, arvif->vdev_id, arvif->aid, in ath11k_control_beaconing()
823 arvif->vdev_id, ret); in ath11k_control_beaconing()
829 ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "mac vdev %d up\n", arvif->vdev_id); in ath11k_control_beaconing()
859 u32 *vdev_id = data; in ath11k_mac_handle_beacon_miss_iter() local
864 if (arvif->vdev_id != *vdev_id) in ath11k_mac_handle_beacon_miss_iter()
881 void ath11k_mac_handle_beacon_miss(struct ath11k *ar, u32 vdev_id) in ath11k_mac_handle_beacon_miss() argument
886 &vdev_id); in ath11k_mac_handle_beacon_miss()
917 arg->vdev_id = arvif->vdev_id; in ath11k_peer_assoc_h_basic()
1498 params.vdev_id = arvif->vdev_id; in ath11k_peer_assoc_qos_ap()
1550 params.param, arvif->vdev_id, ret); in ath11k_peer_assoc_qos_ap()
1730 return ath11k_wmi_set_peer_param(ar, addr, arvif->vdev_id, in ath11k_setup_peer_smps()
1748 arvif->vdev_id, arvif->bssid, arvif->aid); in ath11k_bss_assoc()
1755 bss_conf->bssid, arvif->vdev_id); in ath11k_bss_assoc()
1767 bss_conf->bssid, arvif->vdev_id, ret); in ath11k_bss_assoc()
1773 bss_conf->bssid, arvif->vdev_id); in ath11k_bss_assoc()
1781 arvif->vdev_id, ret); in ath11k_bss_assoc()
1790 ret = ath11k_wmi_vdev_up(ar, arvif->vdev_id, arvif->aid, arvif->bssid); in ath11k_bss_assoc()
1793 arvif->vdev_id, ret); in ath11k_bss_assoc()
1801 arvif->vdev_id, bss_conf->bssid, bss_conf->aid); in ath11k_bss_assoc()
1805 arvif->vdev_id, in ath11k_bss_assoc()
1811 ret = ath11k_wmi_send_obss_spr_cmd(ar, arvif->vdev_id, in ath11k_bss_assoc()
1815 arvif->vdev_id, ret); in ath11k_bss_assoc()
1828 arvif->vdev_id, arvif->bssid); in ath11k_bss_disassoc()
1830 ret = ath11k_wmi_vdev_down(ar, arvif->vdev_id); in ath11k_bss_disassoc()
1833 arvif->vdev_id, ret); in ath11k_bss_disassoc()
1890 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, vdev_param, in ath11k_recalculate_mgmt_rate()
1896 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, vdev_param, in ath11k_recalculate_mgmt_rate()
1916 ret = ath11k_wmi_fils_discovery_tmpl(ar, arvif->vdev_id, in ath11k_mac_fils_discovery()
1925 ret = ath11k_wmi_probe_resp_tmpl(ar, arvif->vdev_id, in ath11k_mac_fils_discovery()
1928 return ath11k_wmi_fils_discovery(ar, arvif->vdev_id, 0, false); in ath11k_mac_fils_discovery()
1934 arvif->vdev_id, (unsol_bcast_probe_resp_enabled ? in ath11k_mac_fils_discovery()
1942 ret = ath11k_wmi_fils_discovery(ar, arvif->vdev_id, interval, in ath11k_mac_fils_discovery()
2125 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2130 arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2134 arvif->beacon_interval, arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2144 arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2148 arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2160 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2166 arvif->vdev_id, ret); in ath11k_mac_op_bss_info_changed()
2170 arvif->dtim_period, arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2189 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2195 arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2199 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2203 param_value, arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2207 param_value, arvif->vdev_id, ret); in ath11k_mac_op_bss_info_changed()
2218 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2222 arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2225 cts_prot, arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2241 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2245 arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2249 slottime, arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2261 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2265 arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2269 preamble, arvif->vdev_id); in ath11k_mac_op_bss_info_changed()
2281 arvif->vdev_id, info->txpower); in ath11k_mac_op_bss_info_changed()
2312 arvif->vdev_id, rate); in ath11k_mac_op_bss_info_changed()
2315 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2320 arvif->vdev_id, ret); in ath11k_mac_op_bss_info_changed()
2323 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2328 arvif->vdev_id, ret); in ath11k_mac_op_bss_info_changed()
2348 ar, arvif->vdev_id, info->he_bss_color.color, in ath11k_mac_op_bss_info_changed()
2353 arvif->vdev_id, ret); in ath11k_mac_op_bss_info_changed()
2356 arvif->vdev_id, in ath11k_mac_op_bss_info_changed()
2360 arvif->vdev_id, ret); in ath11k_mac_op_bss_info_changed()
2362 ar, arvif->vdev_id, 0, in ath11k_mac_op_bss_info_changed()
2366 arvif->vdev_id, ret); in ath11k_mac_op_bss_info_changed()
2559 ar->scan.vdev_id = arvif->vdev_id; in ath11k_mac_op_hw_scan()
2575 arg.vdev_id = arvif->vdev_id; in ath11k_mac_op_hw_scan()
2642 .vdev_id = arvif->vdev_id, in ath11k_install_key()
2718 peer = ath11k_peer_find(ab, arvif->vdev_id, addr); in ath11k_clear_peer_keys()
2787 peer = ath11k_peer_find(ab, arvif->vdev_id, peer_addr); in ath11k_mac_op_set_key()
2828 peer = ath11k_peer_find(ab, arvif->vdev_id, peer_addr); in ath11k_mac_op_set_key()
2924 arvif->vdev_id, in ath11k_mac_set_peer_vht_fixed_rate()
2961 sta->addr, arvif->vdev_id, ret); in ath11k_station_assoc()
2967 sta->addr, arvif->vdev_id); in ath11k_station_assoc()
2995 arvif->vdev_id, ret); in ath11k_station_assoc()
3010 sta->addr, arvif->vdev_id, ret); in ath11k_station_assoc()
3037 arvif->vdev_id, ret); in ath11k_station_disassoc()
3088 err = ath11k_wmi_set_peer_param(ar, sta->addr, arvif->vdev_id, in ath11k_sta_rc_update_wk()
3099 err = ath11k_wmi_set_peer_param(ar, sta->addr, arvif->vdev_id, in ath11k_sta_rc_update_wk()
3110 err = ath11k_wmi_set_peer_param(ar, sta->addr, arvif->vdev_id, in ath11k_sta_rc_update_wk()
3147 sta->addr, arvif->vdev_id, err); in ath11k_sta_rc_update_wk()
3151 sta->addr, arvif->vdev_id); in ath11k_sta_rc_update_wk()
3214 peer_param.vdev_id = arvif->vdev_id; in ath11k_mac_station_add()
3221 sta->addr, arvif->vdev_id); in ath11k_mac_station_add()
3226 sta->addr, arvif->vdev_id); in ath11k_mac_station_add()
3238 arvif->vdev_id, in ath11k_mac_station_add()
3247 ret = ath11k_dp_peer_setup(ar, arvif->vdev_id, sta->addr); in ath11k_mac_station_add()
3250 sta->addr, arvif->vdev_id, ret); in ath11k_mac_station_add()
3270 ath11k_peer_delete(ar, arvif->vdev_id, sta->addr); in ath11k_mac_station_add()
3308 sta->addr, arvif->vdev_id); in ath11k_mac_op_sta_state()
3311 ath11k_dp_peer_cleanup(ar, arvif->vdev_id, sta->addr); in ath11k_mac_op_sta_state()
3313 ret = ath11k_peer_delete(ar, arvif->vdev_id, sta->addr); in ath11k_mac_op_sta_state()
3316 sta->addr, arvif->vdev_id); in ath11k_mac_op_sta_state()
3319 sta->addr, arvif->vdev_id); in ath11k_mac_op_sta_state()
3323 peer = ath11k_peer_find(ar->ab, arvif->vdev_id, sta->addr); in ath11k_mac_op_sta_state()
3326 vif->addr, arvif->vdev_id); in ath11k_mac_op_sta_state()
3385 ret = ath11k_wmi_set_peer_param(ar, sta->addr, arvif->vdev_id, in ath11k_mac_op_sta_set_txpwr()
3411 peer = ath11k_peer_find(ar->ab, arvif->vdev_id, sta->addr); in ath11k_mac_op_sta_rc_update()
3415 sta->addr, arvif->vdev_id); in ath11k_mac_op_sta_rc_update()
3522 ret = ath11k_wmi_set_sta_ps_param(ar, arvif->vdev_id, in ath11k_conf_tx_uapsd()
3535 ret = ath11k_wmi_set_sta_ps_param(ar, arvif->vdev_id, in ath11k_conf_tx_uapsd()
3581 ret = ath11k_wmi_send_wmm_update_cmd_tlv(ar, arvif->vdev_id, in ath11k_mac_op_conf_tx()
3709 return ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_set_txbf_conf()
4210 ret = ath11k_wmi_mgmt_send(ar, arvif->vdev_id, buf_id, skb); in ath11k_mac_mgmt_tx_wmi()
4254 if (ar->allocated_vdev_map & (1LL << arvif->vdev_id) && in ath11k_mgmt_over_wmi_tx_work()
4259 arvif->vdev_id, ret); in ath11k_mgmt_over_wmi_tx_work()
4267 arvif->vdev_id, in ath11k_mgmt_over_wmi_tx_work()
4546 params->if_id = arvif->vdev_id; in ath11k_mac_setup_vdev_create_params()
4607 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_set_he_mu_sounding_mode()
4611 arvif->vdev_id, ret, param_value); in ath11k_set_he_mu_sounding_mode()
4619 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_set_he_mu_sounding_mode()
4623 arvif->vdev_id, ret); in ath11k_set_he_mu_sounding_mode()
4651 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_update_vif_offload()
4655 arvif->vdev_id, ret); in ath11k_mac_op_update_vif_offload()
4711 arvif->vdev_id = bit; in ath11k_mac_op_add_interface()
4734 arvif->vdev_id, arvif->vdev_type, arvif->vdev_subtype, in ath11k_mac_op_add_interface()
4737 vif->cab_queue = arvif->vdev_id % (ATH11K_HW_MAX_QUEUES - 1); in ath11k_mac_op_add_interface()
4746 arvif->vdev_id, ret); in ath11k_mac_op_add_interface()
4752 vif->addr, arvif->vdev_id); in ath11k_mac_op_add_interface()
4753 ar->allocated_vdev_map |= 1LL << arvif->vdev_id; in ath11k_mac_op_add_interface()
4754 ab->free_vdev_map &= ~(1LL << arvif->vdev_id); in ath11k_mac_op_add_interface()
4763 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_add_interface()
4767 arvif->vdev_id, ar->cfg_tx_chainmask, nss, ret); in ath11k_mac_op_add_interface()
4773 peer_param.vdev_id = arvif->vdev_id; in ath11k_mac_op_add_interface()
4779 arvif->vdev_id, ret); in ath11k_mac_op_add_interface()
4786 arvif->vdev_id, ret); in ath11k_mac_op_add_interface()
4793 ret = ath11k_wmi_set_sta_ps_param(ar, arvif->vdev_id, in ath11k_mac_op_add_interface()
4797 arvif->vdev_id, ret); in ath11k_mac_op_add_interface()
4803 ret = ath11k_wmi_set_sta_ps_param(ar, arvif->vdev_id, in ath11k_mac_op_add_interface()
4807 arvif->vdev_id, ret); in ath11k_mac_op_add_interface()
4813 ret = ath11k_wmi_set_sta_ps_param(ar, arvif->vdev_id, in ath11k_mac_op_add_interface()
4817 arvif->vdev_id, ret); in ath11k_mac_op_add_interface()
4821 ret = ath11k_wmi_pdev_set_ps_mode(ar, arvif->vdev_id, false); in ath11k_mac_op_add_interface()
4824 arvif->vdev_id, ret); in ath11k_mac_op_add_interface()
4839 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_op_add_interface()
4843 arvif->vdev_id, ret); in ath11k_mac_op_add_interface()
4857 arvif->vdev_id); in ath11k_mac_op_add_interface()
4860 arvif->vdev_id, vif->addr); in ath11k_mac_op_add_interface()
4864 ret = ath11k_wait_for_peer_delete_done(ar, arvif->vdev_id, in ath11k_mac_op_add_interface()
4873 ath11k_wmi_vdev_delete(ar, arvif->vdev_id); in ath11k_mac_op_add_interface()
4875 ar->allocated_vdev_map &= ~(1LL << arvif->vdev_id); in ath11k_mac_op_add_interface()
4876 ab->free_vdev_map |= 1LL << arvif->vdev_id; in ath11k_mac_op_add_interface()
4913 arvif->vdev_id); in ath11k_mac_op_remove_interface()
4916 ret = ath11k_peer_delete(ar, arvif->vdev_id, vif->addr); in ath11k_mac_op_remove_interface()
4919 arvif->vdev_id, ret); in ath11k_mac_op_remove_interface()
4924 ret = ath11k_wmi_vdev_delete(ar, arvif->vdev_id); in ath11k_mac_op_remove_interface()
4927 arvif->vdev_id, ret); in ath11k_mac_op_remove_interface()
4938 ab->free_vdev_map |= 1LL << (arvif->vdev_id); in ath11k_mac_op_remove_interface()
4939 ar->allocated_vdev_map &= ~(1LL << arvif->vdev_id); in ath11k_mac_op_remove_interface()
4943 vif->addr, arvif->vdev_id); in ath11k_mac_op_remove_interface()
4950 ath11k_peer_cleanup(ar, arvif->vdev_id); in ath11k_mac_op_remove_interface()
5150 arg.vdev_id = arvif->vdev_id; in ath11k_mac_vdev_start_restart()
5190 arg.vdev_id); in ath11k_mac_vdev_start_restart()
5200 arg.vdev_id, arg.channel.freq, in ath11k_mac_vdev_start_restart()
5206 restart ? "restart" : "start", arg.vdev_id); in ath11k_mac_vdev_start_restart()
5213 arg.vdev_id, restart ? "restart" : "start", ret); in ath11k_mac_vdev_start_restart()
5219 arvif->vif->addr, arvif->vdev_id); in ath11k_mac_vdev_start_restart()
5234 arg.channel.freq, arg.vdev_id); in ath11k_mac_vdev_start_restart()
5240 arvif->vdev_id, ret); in ath11k_mac_vdev_start_restart()
5254 ret = ath11k_wmi_vdev_stop(ar, arvif->vdev_id); in ath11k_mac_vdev_stop()
5257 arvif->vdev_id, ret); in ath11k_mac_vdev_stop()
5264 arvif->vdev_id, ret); in ath11k_mac_vdev_stop()
5272 arvif->vif->addr, arvif->vdev_id); in ath11k_mac_vdev_stop()
5277 arvif->vdev_id); in ath11k_mac_vdev_stop()
5353 arvif->vdev_id, in ath11k_mac_update_vif_chan()
5365 ret = ath11k_wmi_vdev_down(ar, arvif->vdev_id); in ath11k_mac_update_vif_chan()
5368 arvif->vdev_id, ret); in ath11k_mac_update_vif_chan()
5391 arvif->vdev_id, ret); in ath11k_mac_update_vif_chan()
5400 ret = ath11k_wmi_vdev_up(arvif->ar, arvif->vdev_id, arvif->aid, in ath11k_mac_update_vif_chan()
5404 arvif->vdev_id, ret); in ath11k_mac_update_vif_chan()
5481 arvif->vdev_id, vif->addr, in ath11k_start_vdev_delay()
5487 ret = ath11k_monitor_vdev_up(ar, arvif->vdev_id); in ath11k_start_vdev_delay()
5515 ctx, arvif->vdev_id); in ath11k_mac_op_assign_vif_chanctx()
5521 !ath11k_peer_find_by_vdev_id(ab, arvif->vdev_id)) { in ath11k_mac_op_assign_vif_chanctx()
5535 param.vdev_id = arvif->vdev_id; in ath11k_mac_op_assign_vif_chanctx()
5550 arvif->vdev_id, vif->addr, in ath11k_mac_op_assign_vif_chanctx()
5555 ret = ath11k_monitor_vdev_up(ar, arvif->vdev_id); in ath11k_mac_op_assign_vif_chanctx()
5586 ctx, arvif->vdev_id); in ath11k_mac_op_unassign_vif_chanctx()
5593 ath11k_peer_delete(ar, arvif->vdev_id, ar->mac_addr); in ath11k_mac_op_unassign_vif_chanctx()
5598 arvif->vdev_id, ret); in ath11k_mac_op_unassign_vif_chanctx()
5604 ath11k_wmi_vdev_down(ar, arvif->vdev_id); in ath11k_mac_op_unassign_vif_chanctx()
5638 param, arvif->vdev_id, value); in ath11k_set_vdev_param_to_all_vifs()
5640 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_set_vdev_param_to_all_vifs()
5644 param, arvif->vdev_id, ret); in ath11k_set_vdev_param_to_all_vifs()
5819 arvif->vdev_id, rate, nss, sgi); in ath11k_mac_set_fixed_rate_params()
5822 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_set_fixed_rate_params()
5831 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_set_fixed_rate_params()
5840 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_set_fixed_rate_params()
5849 ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, in ath11k_mac_set_fixed_rate_params()
5907 arvif->vdev_id, in ath11k_mac_disable_peer_fixed_rate()
5960 arvif->vdev_id, ret); in ath11k_mac_op_set_bitrate_mask()
6028 arvif->vdev_id, ret); in ath11k_mac_op_set_bitrate_mask()