michal-narajowski commented on a change in pull request #744: [WIP] Add support 
for Enhanced LE CoC as per BT 5.2 
URL: https://github.com/apache/mynewt-nimble/pull/744#discussion_r375386467
 
 

 ##########
 File path: apps/btshell/src/main.c
 ##########
 @@ -2221,14 +2247,15 @@ btshell_l2cap_event(struct ble_l2cap_event *event, 
void *arg)
                 return 0;
             }
 
-            console_printf("LE COC connected, conn: %d, chan: 0x%08lx, scid: 
0x%04x, "
-                           "dcid: 0x%04x, our_mtu: 0x%04x, peer_mtu: 0x%04x\n",
-                           event->connect.conn_handle,
-                           (uint32_t) event->connect.chan,
-                           ble_l2cap_get_scid(event->connect.chan),
-                           ble_l2cap_get_dcid(event->connect.chan),
-                           ble_l2cap_get_our_mtu(event->connect.chan),
-                           ble_l2cap_get_peer_mtu(event->connect.chan));
+            if (ble_l2cap_get_chan_info(event->connect.chan, &chan_info)) {
+                assert(0);
+            }
+
+            console_printf("LE COC connected, conn: %d, chan: 0x%08lx, psm: 
0x%02x, scid: 0x%04x, "
+                           "dcid: 0x%04x, our_mps: %d, our_mtu: %d, peer_mps: 
0x%d, peer_mtu: %d\n",
 
 Review comment:
   peer_mps: 0x%d should be peer_mps: %d

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to