]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ath10k: fix the logic of limiting tdls peer counts
authorRyan Hsu <ryanhsu@qti.qualcomm.com>
Wed, 31 May 2017 11:21:28 +0000 (14:21 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 1 Jun 2017 12:59:33 +0000 (15:59 +0300)
commit9a993cc1ea952b0018f393f7f58fa04f531543ed
tree55be333ee15c7bbfa55935af29d1a5a751752a1b
parenta9f5f287fa1d47d61dfa8b60f94831174b2ea4d0
ath10k: fix the logic of limiting tdls peer counts

The original idea is to limit the maximum TDLS peer link, but the logic
is always false, and never be able to restrict the number of TDLS peer
creation.

Fix the logic here and also move the checking earlier, so that it could
avoid to handle the failure case, e.g disable the tdls peer, delete the
peer and also vdev count cleanup.

Signed-off-by: Ryan Hsu <ryanhsu@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c