1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */
3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
12 struct ppdu_user_delayba {
23 struct list_head list;
24 struct ieee80211_sta *sta;
32 /* protected by ab->data_lock */
33 struct ieee80211_key_conf *keys[WMI_MAX_KEY_INDEX + 1];
34 struct ath12k_dp_rx_tid rx_tid[IEEE80211_NUM_TIDS + 1];
36 /* Info used in MMIC verification of
39 struct crypto_shash *tfm_mmic;
44 struct ppdu_user_delayba ppdu_stats_delayba;
49 void ath12k_peer_unmap_event(struct ath12k_base *ab, u16 peer_id);
50 void ath12k_peer_map_event(struct ath12k_base *ab, u8 vdev_id, u16 peer_id,
51 u8 *mac_addr, u16 ast_hash, u16 hw_peer_id);
52 struct ath12k_peer *ath12k_peer_find(struct ath12k_base *ab, int vdev_id,
54 struct ath12k_peer *ath12k_peer_find_by_addr(struct ath12k_base *ab,
56 struct ath12k_peer *ath12k_peer_find_by_id(struct ath12k_base *ab, int peer_id);
57 void ath12k_peer_cleanup(struct ath12k *ar, u32 vdev_id);
58 int ath12k_peer_delete(struct ath12k *ar, u32 vdev_id, u8 *addr);
59 int ath12k_peer_create(struct ath12k *ar, struct ath12k_vif *arvif,
60 struct ieee80211_sta *sta,
61 struct ath12k_wmi_peer_create_arg *arg);
62 int ath12k_wait_for_peer_delete_done(struct ath12k *ar, u32 vdev_id,
64 bool ath12k_peer_exist_by_vdev_id(struct ath12k_base *ab, int vdev_id);
65 struct ath12k_peer *ath12k_peer_find_by_ast(struct ath12k_base *ab, int ast_hash);