]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.4.83/iwlwifi-dvm-don-t-send-bt_config-on-devices-w-o-bluetooth.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.4.83 / iwlwifi-dvm-don-t-send-bt_config-on-devices-w-o-bluetooth.patch
CommitLineData
6f345252
GKH
1From wujianguo@huawei.com Fri Mar 7 16:59:41 2014
2From: Johannes Berg <johannes.berg@intel.com>
3Date: Thu, 27 Feb 2014 09:53:00 +0800
4Subject: iwlwifi: dvm: don't send BT_CONFIG on devices w/o Bluetooth
5To: <gregkh@linuxfoundation.org>
6Cc: <stable@vger.kernel.org>, <lizefan@huawei.com>, Johannes Berg <johannes.berg@intel.com>, Jianguo Wu <wujianguo@huawei.com>
7Message-ID: <1393465983-10548-7-git-send-email-wujianguo@huawei.com>
8
9
10From: Johannes Berg <johannes.berg@intel.com>
11
12commit 707aee401d2467baa785a697f40a6e2d9ee79ad5 upstream.
13
14The BT_CONFIG command that is sent to the device during
15startup will enable BT coex unless the module parameter
16turns it off, but on devices without Bluetooth this may
17cause problems, as reported in Redhat BZ 885407.
18
19Fix this by sending the BT_CONFIG command only when the
20device has Bluetooth.
21
22Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
23Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
24[bwh: Backported to 3.2:
25 - Adjust filename
26 - s/priv->lib/priv->cfg/]
27Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
28[wujg: Backported to 3.4:
29 - s/priv->cfg/priv->shrd->cfg/]
30Signed-off-by: Jianguo Wu <wujianguo@huawei.com>
31Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32---
33 drivers/net/wireless/iwlwifi/iwl-agn.c | 2 +-
34 1 file changed, 1 insertion(+), 1 deletion(-)
35
36--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
37+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
38@@ -680,7 +680,7 @@ int iwl_alive_start(struct iwl_priv *pri
39 BT_COEX_PRIO_TBL_EVT_INIT_CALIB2);
40 if (ret)
41 return ret;
42- } else {
43+ } else if (priv->shrd->cfg->bt_params) {
44 /*
45 * default is 2-wire BT coexexistence support
46 */