ath10k: track number of existing peers
authorBartosz Markowski <bartosz.markowski@tieto.com>
Thu, 2 Jan 2014 13:38:33 +0000 (14:38 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 10 Jan 2014 09:46:47 +0000 (11:46 +0200)
commit0e759f363e9f2f1b1a7a640b15ca613e5e27dfc0
tree74378f5d827d4f9b70ab43a66e48fe833f717587
parentcdf074099babdda9dccae7d421bd5566d70e75e3
ath10k: track number of existing peers

To not exceed number of allowed clients (AP mode), make sure to
check how many of them are already on the peers list.

10.X firmware support up to 127 peers, non-AP centric firmwares 16.

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/hw.h
drivers/net/wireless/ath/ath10k/mac.c