iwlwifi: keep track of bt coex enable/disable stage
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / iwl-agn-debugfs.c
index a358d4334a1a356f6cecbe2407359c8829792350..a6dbd8983dacb32dda5a2cd15ab8cc0f26bfd2f6 100644 (file)
@@ -856,6 +856,9 @@ ssize_t iwl_ucode_bt_stats_read(struct file *file,
        if (!iwl_is_alive(priv))
                return -EAGAIN;
 
+       if (!priv->bt_enable_flag)
+               return -EINVAL;
+
        /* make request to uCode to retrieve statistics information */
        mutex_lock(&priv->mutex);
        ret = iwl_send_statistics_request(priv, CMD_SYNC, false);
This page took 0.038964 seconds and 5 git commands to generate.