Connection handle has been already assigned few lines earlier. --- emulator/btdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index f3ef1ca..77a83ef 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -1130,8 +1130,6 @@ static void le_conn_complete(struct btdev *btdev, cc->supv_timeout = lecc->supv_timeout; send_event(remote, BT_HCI_EVT_LE_META_EVENT, buf, sizeof(buf)); - - cc->handle = cpu_to_le16(42); } cc->status = status; -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html