ath11k: start vdev if a bss peer is already created
authorCarl Huang <cjhuang@codeaurora.org>
Fri, 11 Dec 2020 05:13:58 +0000 (00:13 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Dec 2020 06:47:06 +0000 (08:47 +0200)
commitaa44b2f3ecd41f90b7e477158036648a49d21a32
treec21de8cc156a53aceec4204240a60313b32e4a45
parent3597010630d0aa96f5778901e691c6068bb86318
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
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/peer.c
drivers/net/wireless/ath/ath11k/peer.h