summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath11k/peer.h
diff options
context:
space:
mode:
authorCarl Huang <cjhuang@codeaurora.org>2020-12-11 00:13:58 -0500
committerKalle Valo <kvalo@codeaurora.org>2020-12-17 08:47:06 +0200
commitaa44b2f3ecd41f90b7e477158036648a49d21a32 (patch)
treec21de8cc156a53aceec4204240a60313b32e4a45 /drivers/net/wireless/ath/ath11k/peer.h
parent3597010630d0aa96f5778901e691c6068bb86318 (diff)
ath11k: start vdev if a bss peer is already created
For QCA6390, bss peer must be created before vdev is to start. This change is to start vdev if a bss peer is created. Otherwise, ath11k delays to start vdev. This fixes an issue in a case where HT/VHT/HE settings change between authentication and association, e.g., due to the user space request to disable HT. Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1 Signed-off-by: Carl Huang <cjhuang@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20201211051358.9191-1-cjhuang@codeaurora.org
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/peer.h')
-rw-r--r--drivers/net/wireless/ath/ath11k/peer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/peer.h b/drivers/net/wireless/ath/ath11k/peer.h
index bba2e00b6944..8553ed061aea 100644
--- a/drivers/net/wireless/ath/ath11k/peer.h
+++ b/drivers/net/wireless/ath/ath11k/peer.h
@@ -43,5 +43,7 @@ int ath11k_peer_create(struct ath11k *ar, struct ath11k_vif *arvif,
struct ieee80211_sta *sta, struct peer_create_params *param);
int ath11k_wait_for_peer_delete_done(struct ath11k *ar, u32 vdev_id,
const u8 *addr);
+struct ath11k_peer *ath11k_peer_find_by_vdev_id(struct ath11k_base *ab,
+ int vdev_id);
#endif /* _PEER_H_ */