diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-12-08 18:34:52 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-12-13 18:53:38 -0500 |
commit | f21dd005df95e0fc6a578342c61b5333ce2abc2b (patch) | |
tree | 25410d4db56ab4e39443576269a364cb8c91a598 /drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | |
parent | 50619ac9ba48f5ab0c6bcfa10f5d50e4115cdca8 (diff) |
iwlwifi: keep track of bt coex enable/disable stage
For debugging purpose, keep track of the bt coex enable/disable state.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c index a358d4334a1a..a6dbd8983dac 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | |||
@@ -856,6 +856,9 @@ ssize_t iwl_ucode_bt_stats_read(struct file *file, | |||
856 | if (!iwl_is_alive(priv)) | 856 | if (!iwl_is_alive(priv)) |
857 | return -EAGAIN; | 857 | return -EAGAIN; |
858 | 858 | ||
859 | if (!priv->bt_enable_flag) | ||
860 | return -EINVAL; | ||
861 | |||
859 | /* make request to uCode to retrieve statistics information */ | 862 | /* make request to uCode to retrieve statistics information */ |
860 | mutex_lock(&priv->mutex); | 863 | mutex_lock(&priv->mutex); |
861 | ret = iwl_send_statistics_request(priv, CMD_SYNC, false); | 864 | ret = iwl_send_statistics_request(priv, CMD_SYNC, false); |