projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
157029b
)
Bluetooth: Don't register any SMP channel if LE is not supported
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 14 Jan 2015 23:43:10 +0000
(15:43 -0800)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 15 Jan 2015 10:54:30 +0000
(12:54 +0200)
When LE features are not supported, then do not bother registering any
kind of SMP channel.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/smp.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/smp.c
b/net/bluetooth/smp.c
index 3e4de935f667ae3228f1d54a686498bd5623ac4c..08a9314f3ca7f9d19bef0c98105545f839509d7e 100644
(file)
--- a/
net/bluetooth/smp.c
+++ b/
net/bluetooth/smp.c
@@
-3066,6
+3066,12
@@
int smp_register(struct hci_dev *hdev)
BT_DBG("%s", hdev->name);
+ /* If the controller does not support Low Energy operation, then
+ * there is also no need to register any SMP channel.
+ */
+ if (!lmp_le_capable(hdev))
+ return 0;
+
chan = smp_add_cid(hdev, L2CAP_CID_SMP);
if (IS_ERR(chan))
return PTR_ERR(chan);
This page took
0.025752 seconds
and
5
git commands to generate.