ath10k: change the fw stats access mask
authorYanbo Li <yanbol@qca.qualcomm.com>
Wed, 1 Apr 2015 19:53:21 +0000 (22:53 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 9 Apr 2015 12:06:36 +0000 (15:06 +0300)
commit6274cd410029aadcc4a93589783a9a899cf8befa
treea99e8a980a4a6f5b98b92fdacc1770a7dd8d9c2d
parent15677a7dbe22976a5cb787a7352ac86bbd196cf1
ath10k: change the fw stats access mask

This fix the regerssion introduced after "ath10k_wmi_requests_stats()
call to use more stat bits", both the 10.2.X FW and community FW 10.1.X
will return time out when access the fw_stats with the STAT_VDEV and
STAT_PDEV. Add the condition to use different fw_stats mask for different
FW versions.

Fixes: 7777d8c7ef6f ("ath10k: implement fw stats for wmi-tlv")
Signed-off-by: Yanbo Li <yanbol@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c