]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix return value for btcoex and peer stats debugfs
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Tue, 5 Apr 2016 15:28:26 +0000 (20:58 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 19 Apr 2016 15:10:46 +0000 (18:10 +0300)
commit4b4351299c8d357e23e1b01e6df0e4ca14a791d6
treeb2b085bd8c5c4e376ffdfd07ae77c28e89908371
parent87c7f72345e0ba5ada0363bd2fd5668b77f8748d
ath10k: fix return value for btcoex and peer stats debugfs

Return value is incorrect for btcoex and peer stats debugfs
'write' entries if the user provides a value that matches with
the already available debugfs entry, this results in the debugfs
entry getting stuck and the operation has to be terminated manually.
Fix this by returning the appropriate return 'count' as we do it for
other debugfs entries like pktlog etc.

Fixes: 0b76c537908e ("ath10k: enable debugfs provision to enable Peer Stats feature")
Fixes: 994a95f1e9fd ("ath10k: fix sanity check on enabling btcoex via debugfs")
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/debug.c