]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix fw stats processing
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 25 Sep 2014 10:33:50 +0000 (12:33 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 29 Sep 2014 11:30:56 +0000 (14:30 +0300)
commit9014543a56346787c3a0050937d1183533aceee8
treede96499b001c957b6c7ee8ad49360ac6130ca393
parente0a3c2f67ab8b7ced1f29cd88eb526c25adf745d
ath10k: fix fw stats processing

If stat data exceeds wmi-htc buffer limits
firmware splits it into many wmi stats update
events which are delivered in a ping-pong fashion
triggered by wmi stats request command.

Since there's only an implicit start-of-data and
no end-of-data indications the driver has to
perform some trickery to get complete stat data.

kvalo: use %zu to fix a compiler warning and fix a typo in a comment

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/wmi.c