aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/6lowpan.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-11-13 02:46:05 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-13 03:11:37 -0500
commit2773b024229bab23ef36e198e0555630f74f23ef (patch)
treeb7e36896a3ce394ade69bbf6bcc4db94971e262b /net/bluetooth/6lowpan.c
parentff714119a6d2e2fc3c2e046d77801afa83a9ace2 (diff)
Bluetooth: Fix correct nesting for 6lowpan server channel
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>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r--net/bluetooth/6lowpan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index 3d8ceb251d75..bdcaefd2db12 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -1130,6 +1130,8 @@ static struct l2cap_chan *bt_6lowpan_listen(void)
1130 pchan->state = BT_LISTEN; 1130 pchan->state = BT_LISTEN;
1131 pchan->src_type = BDADDR_LE_PUBLIC; 1131 pchan->src_type = BDADDR_LE_PUBLIC;
1132 1132
1133 atomic_set(&pchan->nesting, L2CAP_NESTING_PARENT);
1134
1133 BT_DBG("psm 0x%04x chan %p src type %d", psm_6lowpan, pchan, 1135 BT_DBG("psm 0x%04x chan %p src type %d", psm_6lowpan, pchan,
1134 pchan->src_type); 1136 pchan->src_type);
1135 1137