ath10k: fix peer limit enforcement
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 5 Aug 2015 10:15:24 +0000 (12:15 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Aug 2015 11:30:02 +0000 (14:30 +0300)
commite04cafbc38c70af2aad3810ce24ab0eba8114779
tree2fa959a8c7596932d67a1b02a59e8dfcce6ae965
parentadaeed74bc085bc59991cd6e23ee7f720b6c6aab
ath10k: fix peer limit enforcement

Firmware peer entries are involved in internal
firmware vdev structures. This was not accounted
for and could lead firmware to crash due to asking
it to do more than it could.

Fixes: 039a0051ec1a ("ath10k: allocate fw resources for iface combinations")
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c