Lines Matching refs:arvif
1839 static void ath10k_wmi_tx_beacon_nowait(struct ath10k_vif *arvif) in ath10k_wmi_tx_beacon_nowait() argument
1841 struct ath10k *ar = arvif->ar; in ath10k_wmi_tx_beacon_nowait()
1850 bcn = arvif->beacon; in ath10k_wmi_tx_beacon_nowait()
1857 switch (arvif->beacon_state) { in ath10k_wmi_tx_beacon_nowait()
1862 arvif->beacon_state = ATH10K_BEACON_SENDING; in ath10k_wmi_tx_beacon_nowait()
1867 ret = ath10k_wmi_beacon_send_ref_nowait(arvif->ar, in ath10k_wmi_tx_beacon_nowait()
1868 arvif->vdev_id, in ath10k_wmi_tx_beacon_nowait()
1877 arvif->beacon_state = ATH10K_BEACON_SENT; in ath10k_wmi_tx_beacon_nowait()
1879 arvif->beacon_state = ATH10K_BEACON_SCHEDULED; in ath10k_wmi_tx_beacon_nowait()
1889 struct ath10k_vif *arvif = (void *)vif->drv_priv; in ath10k_wmi_tx_beacons_iter() local
1891 ath10k_wmi_tx_beacon_nowait(arvif); in ath10k_wmi_tx_beacons_iter()
1950 struct ath10k_vif *arvif; in ath10k_wmi_op_gen_mgmt_tx() local
1964 arvif = (void *)cb->vif->drv_priv; in ath10k_wmi_op_gen_mgmt_tx()
1965 vdev_id = arvif->vdev_id; in ath10k_wmi_op_gen_mgmt_tx()
3547 struct ath10k_vif *arvif, in ath10k_wmi_update_tim() argument
3569 if (sizeof(arvif->u.ap.tim_bitmap) < tim_len) { in ath10k_wmi_update_tim()
3571 tim_len, sizeof(arvif->u.ap.tim_bitmap)); in ath10k_wmi_update_tim()
3572 tim_len = sizeof(arvif->u.ap.tim_bitmap); in ath10k_wmi_update_tim()
3578 arvif->u.ap.tim_bitmap[i] = (v >> ((i % 4) * 8)) & 0xFF; in ath10k_wmi_update_tim()
3584 arvif->u.ap.tim_len = 0; in ath10k_wmi_update_tim()
3586 if (arvif->u.ap.tim_bitmap[i]) in ath10k_wmi_update_tim()
3587 arvif->u.ap.tim_len = i; in ath10k_wmi_update_tim()
3589 arvif->u.ap.tim_len++; in ath10k_wmi_update_tim()
3599 if (arvif->vdev_type != WMI_VDEV_TYPE_IBSS) in ath10k_wmi_update_tim()
3608 if (pvm_len < arvif->u.ap.tim_len) { in ath10k_wmi_update_tim()
3630 memcpy(tim->virtual_map, arvif->u.ap.tim_bitmap, pvm_len); in ath10k_wmi_update_tim()
3644 static void ath10k_wmi_update_noa(struct ath10k *ar, struct ath10k_vif *arvif, in ath10k_wmi_update_noa() argument
3648 if (!arvif->vif->p2p) in ath10k_wmi_update_noa()
3654 ath10k_p2p_noa_update(arvif, noa); in ath10k_wmi_update_noa()
3656 if (arvif->u.ap.noa_data) in ath10k_wmi_update_noa()
3657 if (!pskb_expand_head(bcn, 0, arvif->u.ap.noa_len, GFP_ATOMIC)) in ath10k_wmi_update_noa()
3658 skb_put_data(bcn, arvif->u.ap.noa_data, in ath10k_wmi_update_noa()
3659 arvif->u.ap.noa_len); in ath10k_wmi_update_noa()
3820 struct ath10k_vif *arvif; in ath10k_wmi_event_host_swba() local
3866 arvif = ath10k_get_arvif(ar, vdev_id); in ath10k_wmi_event_host_swba()
3867 if (arvif == NULL) { in ath10k_wmi_event_host_swba()
3876 if (!arvif->is_up) in ath10k_wmi_event_host_swba()
3885 if (arvif->vif->bss_conf.csa_active && in ath10k_wmi_event_host_swba()
3886 ieee80211_beacon_cntdwn_is_complete(arvif->vif)) { in ath10k_wmi_event_host_swba()
3887 ieee80211_csa_finish(arvif->vif); in ath10k_wmi_event_host_swba()
3891 bcn = ieee80211_beacon_get(ar->hw, arvif->vif, 0); in ath10k_wmi_event_host_swba()
3897 ath10k_tx_h_seq_no(arvif->vif, bcn); in ath10k_wmi_event_host_swba()
3898 ath10k_wmi_update_tim(ar, arvif, bcn, tim_info); in ath10k_wmi_event_host_swba()
3899 ath10k_wmi_update_noa(ar, arvif, bcn, noa_info); in ath10k_wmi_event_host_swba()
3903 if (arvif->beacon) { in ath10k_wmi_event_host_swba()
3904 switch (arvif->beacon_state) { in ath10k_wmi_event_host_swba()
3909 arvif->vdev_id); in ath10k_wmi_event_host_swba()
3913 arvif->vdev_id); in ath10k_wmi_event_host_swba()
3918 ath10k_mac_vif_beacon_free(arvif); in ath10k_wmi_event_host_swba()
3921 if (!arvif->beacon_buf) { in ath10k_wmi_event_host_swba()
3922 paddr = dma_map_single(arvif->ar->dev, bcn->data, in ath10k_wmi_event_host_swba()
3924 ret = dma_mapping_error(arvif->ar->dev, paddr); in ath10k_wmi_event_host_swba()
3939 memcpy(arvif->beacon_buf, bcn->data, bcn->len); in ath10k_wmi_event_host_swba()
3940 ATH10K_SKB_CB(bcn)->paddr = arvif->beacon_paddr; in ath10k_wmi_event_host_swba()
3943 arvif->beacon = bcn; in ath10k_wmi_event_host_swba()
3944 arvif->beacon_state = ATH10K_BEACON_SCHEDULED; in ath10k_wmi_event_host_swba()
5192 struct ath10k_vif *arvif; in ath10k_wmi_handle_tdls_peer_event() local
5232 arvif = ath10k_get_arvif(ar, vdev_id); in ath10k_wmi_handle_tdls_peer_event()
5233 if (!arvif) { in ath10k_wmi_handle_tdls_peer_event()
5239 ieee80211_tdls_oper_request(arvif->vif, ev->peer_macaddr.addr, in ath10k_wmi_handle_tdls_peer_event()