6c78bc0
From 7b29fdb8cd8f92e31f550611a8c031986dba2e8f Mon Sep 17 00:00:00 2001
6c78bc0
From: Johannes Berg <johannes.berg@intel.com>
6c78bc0
Date: Fri, 03 May 2013 16:58:16 +0000
6c78bc0
Subject: iwlwifi: dvm: don't send BT_CONFIG on devices w/o Bluetooth
6c78bc0
6c78bc0
The BT_CONFIG command that is sent to the device during
6c78bc0
startup will enable BT coex unless the module parameter
6c78bc0
turns it off, but on devices without Bluetooth this may
6c78bc0
cause problems, as reported in Redhat BZ 885407.
6c78bc0
6c78bc0
Fix this by sending the BT_CONFIG command only when the
6c78bc0
device has Bluetooth.
6c78bc0
6c78bc0
Cc: stable@vger.kernel.org
6c78bc0
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
6c78bc0
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
6c78bc0
---
6c78bc0
diff --git a/drivers/net/wireless/iwlwifi/dvm/main.c b/drivers/net/wireless/iwlwifi/dvm/main.c
6c78bc0
index 3952ddf..1531a4f 100644
6c78bc0
--- a/drivers/net/wireless/iwlwifi/dvm/main.c
6c78bc0
+++ b/drivers/net/wireless/iwlwifi/dvm/main.c
6c78bc0
@@ -758,7 +758,7 @@ int iwl_alive_start(struct iwl_priv *priv)
6c78bc0
 					 BT_COEX_PRIO_TBL_EVT_INIT_CALIB2);
6c78bc0
 		if (ret)
6c78bc0
 			return ret;
6c78bc0
-	} else {
72ed366
+	} else if (priv->cfg->bt_params) {
6c78bc0
 		/*
6c78bc0
 		 * default is 2-wire BT coexexistence support
6c78bc0
 		 */
6c78bc0
--
6c78bc0
cgit v0.9.2