ath10k: fix sanity check on enabling btcoex via debugfs
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Tue, 23 Feb 2016 07:28:36 +0000 (12:58 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 3 Mar 2016 17:27:17 +0000 (19:27 +0200)
commitc28e6f06ff401ce8f37d58ff6d8123664cd65a51
tree26191125a430dffef0418e6421d198e0a169a4a3
parentaf9a6a3ad04cb042fe1b723335c411c1ab9b7959
ath10k: fix sanity check on enabling btcoex via debugfs

First check for the device state before enabling / disabling
btcoex, also return a proper error value. Enabling / disabling
btcoex ideally does a f/w + ath10k_core_restart so the checks
that are applicable for 'simulate_fw_crash' shall be applicable
for this as well

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