Skip to content

Commit 06fb033

Browse files
nimble/eatt: Allow connect to use more channels
Previously we established only one channel for EATT. Now application can define this number.
1 parent 151a9ab commit 06fb033

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

357357
rc = ble_l2cap_enhanced_connect(eatt->conn_handle, BLE_EATT_PSM,
358-
MYNEWT_VAL(BLE_EATT_MTU), 1, &om,
358+
MYNEWT_VAL(BLE_EATT_MTU),
359+
eatt->chan_num, &om,
359360
ble_eatt_l2cap_event_fn, eatt);
360361
if (rc) {
361362
BLE_EATT_LOG_ERROR("eatt: Failed to connect EATT on conn_handle 0x%04x (status=%d)\n",

0 commit comments

Comments
 (0)