diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-12-15 13:23:09 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-12-15 13:23:09 -0500 |
commit | a463e9c57ac1f21e40bc8bff77a4de082ebc432e (patch) | |
tree | b6f0ed4bde2227feb29f69d9312c14d528d754a5 /net/bluetooth/l2cap_core.c | |
parent | 67e2c3883828b39548cee2091b36656787775d95 (diff) | |
parent | 9845904fd489288bcf693642c1b31cc463c0b660 (diff) | |
download | op-kernel-dev-a463e9c57ac1f21e40bc8bff77a4de082ebc432e.zip op-kernel-dev-a463e9c57ac1f21e40bc8bff77a4de082ebc432e.tar.gz |
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index a2b6dfa3..d04dc00 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -6966,8 +6966,9 @@ static struct l2cap_conn *l2cap_conn_add(struct hci_conn *hcon) test_bit(HCI_HS_ENABLED, &hcon->hdev->dev_flags)) conn->local_fixed_chan |= L2CAP_FC_A2MP; - if (bredr_sc_enabled(hcon->hdev) && - test_bit(HCI_LE_ENABLED, &hcon->hdev->dev_flags)) + if (test_bit(HCI_LE_ENABLED, &hcon->hdev->dev_flags) && + (bredr_sc_enabled(hcon->hdev) || + test_bit(HCI_FORCE_LESC, &hcon->hdev->dbg_flags))) conn->local_fixed_chan |= L2CAP_FC_SMP_BREDR; mutex_init(&conn->ident_lock); |