Skip to content

Commit 59c7796

Browse files
nimble/eatt: Allow connect to use more channels
Previously we established only one channel for EATT. Now we use how many are free for this connection.
1 parent beb081d commit 59c7796

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nimble/host/src/ble_eatt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,8 @@ ble_eatt_setup_cb(struct ble_npl_event *ev)
412412
BLE_EATT_LOG_DEBUG("eatt: connecting eatt on conn_handle 0x%04x\n", eatt->conn_handle);
413413

414414
rc = ble_l2cap_enhanced_connect(eatt->conn_handle, BLE_EATT_PSM,
415-
MYNEWT_VAL(BLE_EATT_MTU), 1, &om,
415+
MYNEWT_VAL(BLE_EATT_MTU),
416+
eatt->chan_num, &om,
416417
ble_eatt_l2cap_event_fn, eatt);
417418
if (rc) {
418419
BLE_EATT_LOG_ERROR("eatt: Failed to connect EATT on conn_handle 0x%04x (status=%d)\n",

0 commit comments

Comments
 (0)