projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff71411
)
Bluetooth: Fix correct nesting for 6lowpan server channel
author
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 13 Nov 2014 07:46:05 +0000
(09:46 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 13 Nov 2014 08:11:37 +0000
(09:11 +0100)
Server channels in BT_LISTEN state should use L2CAP_NESTING_PARENT. This
patch fixes the nesting value for the 6lowpan channel.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/6lowpan.c
b/net/bluetooth/6lowpan.c
index 3d8ceb251d75f9ea54e2331ac0907525e5de1a85..bdcaefd2db127c97b6d0e4556dd3494835f01d89 100644
(file)
--- a/
net/bluetooth/6lowpan.c
+++ b/
net/bluetooth/6lowpan.c
@@
-1130,6
+1130,8
@@
static struct l2cap_chan *bt_6lowpan_listen(void)
pchan->state = BT_LISTEN;
pchan->src_type = BDADDR_LE_PUBLIC;
+ atomic_set(&pchan->nesting, L2CAP_NESTING_PARENT);
+
BT_DBG("psm 0x%04x chan %p src type %d", psm_6lowpan, pchan,
pchan->src_type);