Skip to content

Commit f87e7f9

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 4422aa5 commit f87e7f9

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
@@ -405,7 +405,8 @@ ble_eatt_setup_cb(struct ble_npl_event *ev)
405405
BLE_EATT_LOG_DEBUG("eatt: connecting eatt on conn_handle 0x%04x\n", eatt->conn_handle);
406406

407407
rc = ble_l2cap_enhanced_connect(eatt->conn_handle, BLE_EATT_PSM,
408-
MYNEWT_VAL(BLE_EATT_MTU), 1, &om,
408+
MYNEWT_VAL(BLE_EATT_MTU),
409+
eatt->chan_num, &om,
409410
ble_eatt_l2cap_event_fn, eatt);
410411
if (rc) {
411412
BLE_EATT_LOG_ERROR("eatt: Failed to connect EATT on conn_handle 0x%04x (status=%d)\n",

0 commit comments

Comments
 (0)