Home
last modified time | relevance | path

Searched refs:arvif (Results 1 – 25 of 37) sorted by relevance

12

/linux/drivers/net/wireless/ath/ath10k/
H A Dmac.c239 static int ath10k_send_key(struct ath10k_vif *arvif, in ath10k_send_key() argument
244 struct ath10k *ar = arvif->ar; in ath10k_send_key()
246 .vdev_id = arvif->vdev_id, in ath10k_send_key()
254 lockdep_assert_held(&arvif->ar->conf_mutex); in ath10k_send_key()
304 return ath10k_wmi_vdev_install_key(arvif->ar, &arg); in ath10k_send_key()
307 static int ath10k_install_key(struct ath10k_vif *arvif, in ath10k_install_key() argument
312 struct ath10k *ar = arvif->ar; in ath10k_install_key()
320 if (arvif->nohwcrypt) in ath10k_install_key()
323 ret = ath10k_send_key(arvif, key, cmd, macaddr, flags); in ath10k_install_key()
334 static int ath10k_install_peer_wep_keys(struct ath10k_vif *arvif, in ath10k_install_peer_wep_keys() argument
[all …]
H A Dp2p.c70 static void ath10k_p2p_noa_ie_assign(struct ath10k_vif *arvif, void *ie, in ath10k_p2p_noa_ie_assign() argument
73 struct ath10k *ar = arvif->ar; in ath10k_p2p_noa_ie_assign()
77 kfree(arvif->u.ap.noa_data); in ath10k_p2p_noa_ie_assign()
79 arvif->u.ap.noa_data = ie; in ath10k_p2p_noa_ie_assign()
80 arvif->u.ap.noa_len = len; in ath10k_p2p_noa_ie_assign()
83 static void __ath10k_p2p_noa_update(struct ath10k_vif *arvif, in __ath10k_p2p_noa_update() argument
86 struct ath10k *ar = arvif->ar; in __ath10k_p2p_noa_update()
92 ath10k_p2p_noa_ie_assign(arvif, NULL, 0); in __ath10k_p2p_noa_update()
103 ath10k_p2p_noa_ie_assign(arvif, ie, len); in __ath10k_p2p_noa_update()
106 void ath10k_p2p_noa_update(struct ath10k_vif *arvif, in ath10k_p2p_noa_update() argument
[all …]
H A Dwow.c25 static int ath10k_wow_vif_cleanup(struct ath10k_vif *arvif) in ath10k_wow_vif_cleanup() argument
27 struct ath10k *ar = arvif->ar; in ath10k_wow_vif_cleanup()
31 ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); in ath10k_wow_vif_cleanup()
34 wow_wakeup_event(i), arvif->vdev_id, ret); in ath10k_wow_vif_cleanup()
40 ret = ath10k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); in ath10k_wow_vif_cleanup()
43 i, arvif->vdev_id, ret); in ath10k_wow_vif_cleanup()
53 struct ath10k_vif *arvif; in ath10k_wow_cleanup() local
58 list_for_each_entry(arvif, &ar->arvifs, list) { in ath10k_wow_cleanup()
59 ret = ath10k_wow_vif_cleanup(arvif); in ath10k_wow_cleanup()
62 arvif->vdev_id, ret); in ath10k_wow_cleanup()
[all …]
H A Dspectral.c163 struct ath10k_vif *arvif; in ath10k_get_spectral_vdev() local
171 list_for_each_entry(arvif, &ar->arvifs, list) in ath10k_get_spectral_vdev()
172 if (arvif->spectral_enabled) in ath10k_get_spectral_vdev()
173 return arvif; in ath10k_get_spectral_vdev()
176 return list_first_entry(&ar->arvifs, typeof(*arvif), list); in ath10k_get_spectral_vdev()
181 struct ath10k_vif *arvif; in ath10k_spectral_scan_trigger() local
187 arvif = ath10k_get_spectral_vdev(ar); in ath10k_spectral_scan_trigger()
188 if (!arvif) in ath10k_spectral_scan_trigger()
190 vdev_id = arvif->vdev_id; in ath10k_spectral_scan_trigger()
214 struct ath10k_vif *arvif; in ath10k_spectral_scan_config() local
[all …]
H A Dmac.h44 void ath10k_mac_vif_beacon_free(struct ath10k_vif *arvif);
64 void ath10k_mac_vif_tx_lock(struct ath10k_vif *arvif, int reason);
65 void ath10k_mac_vif_tx_unlock(struct ath10k_vif *arvif, int reason);
82 struct ath10k_vif *arvif = (void *)vif->drv_priv; in ath10k_tx_h_seq_no() local
85 if (arvif->tx_seq_no == 0) in ath10k_tx_h_seq_no()
86 arvif->tx_seq_no = 0x1000; in ath10k_tx_h_seq_no()
89 arvif->tx_seq_no += 0x10; in ath10k_tx_h_seq_no()
91 hdr->seq_ctrl |= cpu_to_le16(arvif->tx_seq_no); in ath10k_tx_h_seq_no()
H A Ddebugfs_sta.c183 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_read_aggr_mode()
202 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_write_aggr_mode()
219 ret = ath10k_wmi_addba_clear_resp(ar, arsta->arvif->vdev_id, sta->addr); in ath10k_dbg_sta_write_aggr_mode()
245 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_write_addba()
270 ret = ath10k_wmi_addba_send(ar, arsta->arvif->vdev_id, sta->addr, in ath10k_dbg_sta_write_addba()
274 arsta->arvif->vdev_id, sta->addr, tid, buf_size); in ath10k_dbg_sta_write_addba()
296 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_write_addba_resp()
321 ret = ath10k_wmi_addba_set_resp(ar, arsta->arvif->vdev_id, sta->addr, in ath10k_dbg_sta_write_addba_resp()
325 arsta->arvif->vdev_id, sta->addr, tid, status); in ath10k_dbg_sta_write_addba_resp()
346 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_write_delba()
[all …]
H A Dspectral.h43 int ath10k_spectral_vif_stop(struct ath10k_vif *arvif);
63 static inline int ath10k_spectral_vif_stop(struct ath10k_vif *arvif) in ath10k_spectral_vif_stop() argument
H A Dp2p.h12 void ath10k_p2p_noa_update(struct ath10k_vif *arvif,
H A Dwmi.c1861 static void ath10k_wmi_tx_beacon_nowait(struct ath10k_vif *arvif) in ath10k_wmi_tx_beacon_nowait() argument
1863 struct ath10k *ar = arvif->ar; in ath10k_wmi_tx_beacon_nowait()
1872 bcn = arvif->beacon; in ath10k_wmi_tx_beacon_nowait()
1879 switch (arvif->beacon_state) { in ath10k_wmi_tx_beacon_nowait()
1884 arvif->beacon_state = ATH10K_BEACON_SENDING; in ath10k_wmi_tx_beacon_nowait()
1889 ret = ath10k_wmi_beacon_send_ref_nowait(arvif->ar, in ath10k_wmi_tx_beacon_nowait()
1890 arvif->vdev_id, in ath10k_wmi_tx_beacon_nowait()
1899 arvif->beacon_state = ATH10K_BEACON_SENT; in ath10k_wmi_tx_beacon_nowait()
1901 arvif->beacon_state = ATH10K_BEACON_SCHEDULED; in ath10k_wmi_tx_beacon_nowait()
1911 struct ath10k_vif *arvif = (void *)vif->drv_priv; in ath10k_wmi_tx_beacons_iter() local
[all …]
/linux/drivers/net/wireless/ath/ath12k/
H A Dmac.c259 struct ath12k_link_vif *arvif);
261 static int ath12k_mac_vdev_create(struct ath12k *ar, struct ath12k_link_vif *arvif);
262 static int ath12k_mac_vdev_delete(struct ath12k *ar, struct ath12k_link_vif *arvif);
628 ath12k_mac_get_tx_arvif(struct ath12k_link_vif *arvif, in ath12k_mac_get_tx_arvif() argument
632 struct ath12k *ar = arvif->ar; in ath12k_mac_get_tx_arvif()
648 static const u8 *ath12k_mac_get_tx_bssid(struct ath12k_link_vif *arvif) in ath12k_mac_get_tx_bssid() argument
652 struct ath12k *ar = arvif->ar; in ath12k_mac_get_tx_bssid()
656 link_conf = ath12k_mac_get_link_bss_conf(arvif); in ath12k_mac_get_tx_bssid()
660 arvif->link_id); in ath12k_mac_get_tx_bssid()
667 tx_arvif = ath12k_mac_get_tx_arvif(arvif, link_conf); in ath12k_mac_get_tx_bssid()
[all …]
H A Dwow.c104 static int ath12k_wow_vif_cleanup(struct ath12k_link_vif *arvif) in ath12k_wow_vif_cleanup() argument
106 struct ath12k *ar = arvif->ar; in ath12k_wow_vif_cleanup()
110 ret = ath12k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); in ath12k_wow_vif_cleanup()
113 wow_wakeup_event(i), arvif->vdev_id, ret); in ath12k_wow_vif_cleanup()
119 ret = ath12k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); in ath12k_wow_vif_cleanup()
122 i, arvif->vdev_id, ret); in ath12k_wow_vif_cleanup()
132 struct ath12k_link_vif *arvif; in ath12k_wow_cleanup() local
137 list_for_each_entry(arvif, &ar->arvifs, list) { in ath12k_wow_cleanup()
138 if (arvif != &arvif->ahvif->deflink) in ath12k_wow_cleanup()
141 ret = ath12k_wow_vif_cleanup(arvif); in ath12k_wow_cleanup()
[all …]
H A Dp2p.c73 static void ath12k_p2p_noa_ie_assign(struct ath12k_link_vif *arvif, void *ie, in ath12k_p2p_noa_ie_assign() argument
76 struct ath12k *ar = arvif->ar; in ath12k_p2p_noa_ie_assign()
80 kfree(arvif->ahvif->u.ap.noa_data); in ath12k_p2p_noa_ie_assign()
82 arvif->ahvif->u.ap.noa_data = ie; in ath12k_p2p_noa_ie_assign()
83 arvif->ahvif->u.ap.noa_len = len; in ath12k_p2p_noa_ie_assign()
86 static void __ath12k_p2p_noa_update(struct ath12k_link_vif *arvif, in __ath12k_p2p_noa_update() argument
89 struct ath12k *ar = arvif->ar; in __ath12k_p2p_noa_update()
95 ath12k_p2p_noa_ie_assign(arvif, NULL, 0); in __ath12k_p2p_noa_update()
106 ath12k_p2p_noa_ie_assign(arvif, ie, len); in __ath12k_p2p_noa_update()
109 void ath12k_p2p_noa_update(struct ath12k_link_vif *arvif, in ath12k_p2p_noa_update() argument
[all …]
H A Dpeer.c135 int ath12k_peer_create(struct ath12k *ar, struct ath12k_link_vif *arvif, in ath12k_peer_create() argument
139 struct ieee80211_vif *vif = ath12k_ahvif_to_vif(arvif->ahvif); in ath12k_peer_create()
140 struct ath12k_vif *ahvif = arvif->ahvif; in ath12k_peer_create()
143 u8 link_id = arvif->link_id; in ath12k_peer_create()
244 if (arvif->link_id < IEEE80211_MLD_MAX_NUM_LINKS) { in ath12k_peer_create()
247 arvif->vdev_id, sta, in ath12k_peer_create()
279 struct ath12k_link_vif *arvif; in ath12k_peer_mlo_link_peers_delete() local
296 arvif = wiphy_dereference(ah->hw->wiphy, ahvif->link[link_id]); in ath12k_peer_mlo_link_peers_delete()
298 if (!arvif || !arsta) in ath12k_peer_mlo_link_peers_delete()
301 ar = arvif->ar; in ath12k_peer_mlo_link_peers_delete()
[all …]
H A Dwmi.c713 int ath12k_wmi_mgmt_send(struct ath12k_link_vif *arvif, u32 buf_id, in ath12k_wmi_mgmt_send() argument
716 struct ath12k *ar = arvif->ar; in ath12k_wmi_mgmt_send()
721 struct ieee80211_vif *vif = ath12k_ahvif_to_vif(arvif->ahvif); in ath12k_wmi_mgmt_send()
729 u32 vdev_id = arvif->vdev_id; in ath12k_wmi_mgmt_send()
745 ab->hw_params->hw_ops->is_frame_link_agnostic(arvif, mgmt)) { in ath12k_wmi_mgmt_send()
1931 int ath12k_wmi_bcn_tmpl(struct ath12k_link_vif *arvif, in ath12k_wmi_bcn_tmpl() argument
1936 struct ath12k *ar = arvif->ar; in ath12k_wmi_bcn_tmpl()
1941 struct ath12k_vif *ahvif = arvif->ahvif; in ath12k_wmi_bcn_tmpl()
1943 u32 vdev_id = arvif->vdev_id; in ath12k_wmi_bcn_tmpl()
1951 conf = ath12k_mac_get_link_bss_conf(arvif); in ath12k_wmi_bcn_tmpl()
[all …]
H A Ddp.c337 struct ath12k_link_vif *arvif, in ath12k_dp_tx_get_bank_profile() argument
346 bank_config = ath12k_dp_arch_tx_get_vdev_bank_config(dp, arvif); in ath12k_dp_tx_get_bank_profile()
914 static void ath12k_dp_update_vdev_search(struct ath12k_link_vif *arvif) in ath12k_dp_update_vdev_search() argument
916 u8 link_id = arvif->link_id; in ath12k_dp_update_vdev_search()
917 struct ath12k_vif *ahvif = arvif->ahvif; in ath12k_dp_update_vdev_search()
922 switch (arvif->ahvif->vdev_type) { in ath12k_dp_update_vdev_search()
938 void ath12k_dp_vdev_tx_attach(struct ath12k *ar, struct ath12k_link_vif *arvif) in ath12k_dp_vdev_tx_attach() argument
941 struct ath12k_vif *ahvif = arvif->ahvif; in ath12k_dp_vdev_tx_attach()
942 u8 link_id = arvif->link_id; in ath12k_dp_vdev_tx_attach()
949 u32_encode_bits(arvif->vdev_id, in ath12k_dp_vdev_tx_attach()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dmac.c567 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif); in ath11k_get_arvif_iter() local
569 if (arvif->vdev_id == arvif_iter->vdev_id) in ath11k_get_arvif_iter()
570 arvif_iter->arvif = arvif; in ath11k_get_arvif_iter()
586 if (!arvif_iter.arvif) { in ath11k_mac_get_arvif()
591 return arvif_iter.arvif; in ath11k_mac_get_arvif()
599 struct ath11k_vif *arvif; in ath11k_mac_get_arvif_by_vdev_id() local
605 arvif = ath11k_mac_get_arvif(pdev->ar, vdev_id); in ath11k_mac_get_arvif_by_vdev_id()
606 if (arvif) in ath11k_mac_get_arvif_by_vdev_id()
607 return arvif; in ath11k_mac_get_arvif_by_vdev_id()
660 struct ath11k_vif *arvif; in ath11k_mac_get_vif_up() local
[all …]
H A Dwow.c96 static int ath11k_wow_vif_cleanup(struct ath11k_vif *arvif) in ath11k_wow_vif_cleanup() argument
98 struct ath11k *ar = arvif->ar; in ath11k_wow_vif_cleanup()
102 ret = ath11k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); in ath11k_wow_vif_cleanup()
105 wow_wakeup_event(i), arvif->vdev_id, ret); in ath11k_wow_vif_cleanup()
111 ret = ath11k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); in ath11k_wow_vif_cleanup()
114 i, arvif->vdev_id, ret); in ath11k_wow_vif_cleanup()
124 struct ath11k_vif *arvif; in ath11k_wow_cleanup() local
129 list_for_each_entry(arvif, &ar->arvifs, list) { in ath11k_wow_cleanup()
130 ret = ath11k_wow_vif_cleanup(arvif); in ath11k_wow_cleanup()
133 arvif->vdev_id, ret); in ath11k_wow_cleanup()
[all …]
H A Dp2p.c80 static void ath11k_p2p_noa_ie_assign(struct ath11k_vif *arvif, void *ie, in ath11k_p2p_noa_ie_assign() argument
83 struct ath11k *ar = arvif->ar; in ath11k_p2p_noa_ie_assign()
87 kfree(arvif->u.ap.noa_data); in ath11k_p2p_noa_ie_assign()
89 arvif->u.ap.noa_data = ie; in ath11k_p2p_noa_ie_assign()
90 arvif->u.ap.noa_len = len; in ath11k_p2p_noa_ie_assign()
93 static void __ath11k_p2p_noa_update(struct ath11k_vif *arvif, in __ath11k_p2p_noa_update() argument
96 struct ath11k *ar = arvif->ar; in __ath11k_p2p_noa_update()
102 ath11k_p2p_noa_ie_assign(arvif, NULL, 0); in __ath11k_p2p_noa_update()
113 ath11k_p2p_noa_ie_assign(arvif, ie, len); } in __ath11k_p2p_noa_update()
115 void ath11k_p2p_noa_update(struct ath11k_vif *arvif, in ath11k_p2p_noa_update() argument
[all …]
H A Ddebugfs.c271 struct ath11k_vif *arvif; in ath11k_open_bcn_stats() local
293 list_for_each_entry(arvif, &ar->arvifs, list) { in ath11k_open_bcn_stats()
294 if (!arvif->is_up) in ath11k_open_bcn_stats()
297 req_param.vdev_id = arvif->vdev_id; in ath11k_open_bcn_stats()
1556 struct ath11k_vif *arvif = file->private_data; in ath11k_write_twt_add_dialog() local
1559 struct ath11k *ar = arvif->ar; in ath11k_write_twt_add_dialog()
1601 if (arvif->vif->type == NL80211_IFTYPE_STATION) { in ath11k_write_twt_add_dialog()
1610 params.vdev_id = arvif->vdev_id; in ath11k_write_twt_add_dialog()
1612 ret = ath11k_wmi_send_twt_add_dialog_cmd(arvif->ar, &params); in ath11k_write_twt_add_dialog()
1619 if (arvif->vif->type == NL80211_IFTYPE_STATION) { in ath11k_write_twt_add_dialog()
[all …]
H A Dspectral.c159 struct ath11k_vif *arvif; in ath11k_spectral_get_vdev() local
167 list_for_each_entry(arvif, &ar->arvifs, list) in ath11k_spectral_get_vdev()
168 if (arvif->spectral_enabled) in ath11k_spectral_get_vdev()
169 return arvif; in ath11k_spectral_get_vdev()
172 return list_first_entry(&ar->arvifs, typeof(*arvif), list); in ath11k_spectral_get_vdev()
177 struct ath11k_vif *arvif; in ath11k_spectral_scan_trigger() local
182 arvif = ath11k_spectral_get_vdev(ar); in ath11k_spectral_scan_trigger()
183 if (!arvif) in ath11k_spectral_scan_trigger()
191 ret = ath11k_wmi_vdev_spectral_enable(ar, arvif->vdev_id, in ath11k_spectral_scan_trigger()
197 ret = ath11k_wmi_vdev_spectral_enable(ar, arvif->vdev_id, in ath11k_spectral_scan_trigger()
[all …]
H A Dspectral.h46 int ath11k_spectral_vif_stop(struct ath11k_vif *arvif);
62 static inline int ath11k_spectral_vif_stop(struct ath11k_vif *arvif) in ath11k_spectral_vif_stop() argument
H A Dmac.h157 u8 ath11k_mac_get_target_pdev_id_from_vif(struct ath11k_vif *arvif);
174 void ath11k_mac_bcn_tx_event(struct ath11k_vif *arvif);
176 int ath11k_mac_vif_set_keepalive(struct ath11k_vif *arvif,
H A Ddp_tx.c17 ath11k_dp_tx_get_encap_type(struct ath11k_vif *arvif, struct sk_buff *skb) in ath11k_dp_tx_get_encap_type() argument
20 struct ath11k_base *ab = arvif->ar->ab; in ath11k_dp_tx_get_encap_type()
83 int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif, in ath11k_dp_tx() argument
144 ti.encap_type = ath11k_dp_tx_get_encap_type(arvif, skb); in ath11k_dp_tx()
152 ti.meta_data_flags = arvif->tcl_metadata; in ath11k_dp_tx()
167 ti.addr_search_flags = arvif->hal_addr_search_flags; in ath11k_dp_tx()
168 ti.search_type = arvif->search_type; in ath11k_dp_tx()
172 ti.bss_ast_hash = arvif->ast_hash; in ath11k_dp_tx()
173 ti.bss_ast_idx = arvif->ast_idx; in ath11k_dp_tx()
185 if (ieee80211_vif_is_mesh(arvif->vif)) in ath11k_dp_tx()
[all …]
H A Dp2p.h18 void ath11k_p2p_noa_update(struct ath11k_vif *arvif,
H A Dwmi.c1031 struct ath11k_vif *arvif; in ath11k_wmi_vdev_up() local
1035 arvif = ath11k_mac_get_arvif(ar, vdev_id); in ath11k_wmi_vdev_up()
1055 if (arvif && arvif->vif->type == NL80211_IFTYPE_STATION) { in ath11k_wmi_vdev_up()
1056 bss_conf = &arvif->vif->bss_conf; in ath11k_wmi_vdev_up()
1776 struct ath11k_vif *arvif = ath11k_mac_get_arvif(ar, vdev_id); in ath11k_wmi_bcn_tmpl() local
1778 if (!arvif) { in ath11k_wmi_bcn_tmpl()
1783 vif = arvif->vif; in ath11k_wmi_bcn_tmpl()
4098 struct ath11k_vif *arvif; in ath11k_wmi_obss_color_collision_event() local
4118 arvif = ath11k_mac_get_arvif_by_vdev_id(ab, ev->vdev_id); in ath11k_wmi_obss_color_collision_event()
4119 if (!arvif) { in ath11k_wmi_obss_color_collision_event()
[all …]

12