commit | 9a993cc1ea952b0018f393f7f58fa04f531543ed | [log] [tgz] |
---|---|---|
author | Ryan Hsu <ryanhsu@qti.qualcomm.com> | Wed May 31 14:21:28 2017 +0300 |
committer | Kalle Valo <kvalo@qca.qualcomm.com> | Thu Jun 01 15:59:33 2017 +0300 |
tree | 55be333ee15c7bbfa55935af29d1a5a751752a1b | |
parent | a9f5f287fa1d47d61dfa8b60f94831174b2ea4d0 [diff] |
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>