]> git.baikalelectronics.ru Git - kernel.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)
commit11483afb3eabffb008f17dbee26c3d458d300c48
tree55be333ee15c7bbfa55935af29d1a5a751752a1b
parenta9143c635bab4a2a22ed89152ded0e7914b32024
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