]>
Commit | Line | Data |
---|---|---|
6f345252 GKH |
1 | From wujianguo@huawei.com Fri Mar 7 16:59:41 2014 |
2 | From: Johannes Berg <johannes.berg@intel.com> | |
3 | Date: Thu, 27 Feb 2014 09:53:00 +0800 | |
4 | Subject: iwlwifi: dvm: don't send BT_CONFIG on devices w/o Bluetooth | |
5 | To: <gregkh@linuxfoundation.org> | |
6 | Cc: <stable@vger.kernel.org>, <lizefan@huawei.com>, Johannes Berg <johannes.berg@intel.com>, Jianguo Wu <wujianguo@huawei.com> | |
7 | Message-ID: <1393465983-10548-7-git-send-email-wujianguo@huawei.com> | |
8 | ||
9 | ||
10 | From: Johannes Berg <johannes.berg@intel.com> | |
11 | ||
12 | commit 707aee401d2467baa785a697f40a6e2d9ee79ad5 upstream. | |
13 | ||
14 | The BT_CONFIG command that is sent to the device during | |
15 | startup will enable BT coex unless the module parameter | |
16 | turns it off, but on devices without Bluetooth this may | |
17 | cause problems, as reported in Redhat BZ 885407. | |
18 | ||
19 | Fix this by sending the BT_CONFIG command only when the | |
20 | device has Bluetooth. | |
21 | ||
22 | Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> | |
23 | Signed-off-by: Johannes Berg <johannes@sipsolutions.net> | |
24 | [bwh: Backported to 3.2: | |
25 | - Adjust filename | |
26 | - s/priv->lib/priv->cfg/] | |
27 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | |
28 | [wujg: Backported to 3.4: | |
29 | - s/priv->cfg/priv->shrd->cfg/] | |
30 | Signed-off-by: Jianguo Wu <wujianguo@huawei.com> | |
31 | Signed-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 | */ |