patacongo edited a comment on pull request #1661: URL: https://github.com/apache/incubator-nuttx/pull/1661#issuecomment-690773190
> bluetooth_send -> bluetooth_l2cap_send -> psock_bluetooth_sendto -> netdev TX queue (bluetooth_sendto_eventhandler) -> radio->r_req_data (btnet_req_data) -> bt_l2cap_send -> bt_conn_send > > whereas the ATT layer calls directly into `bt_l2cap_send`. You cannot call bt_l2cap_send() directory, the network design requires that you notify the network device and wait for a TX poll event. This part of the logic must be common to all TX actions: bluetooth_send -> bluetooth_l2cap_send -> psock_bluetooth_sendto -> netdev TX queue (bluetooth_sendto_eventhandler) The just gets the packet to the bluetooth network driver. The following logic then just gets the packet from the network driver to the radio driver: radio->r_req_data (btnet_req_data) Which just calls bt_l2cap_send(). That is the absolute shortest path do do that. But I don't understand. That is the absolute shortest patch and just calls bt_l2cap_send(). There is no shorter way to get get there. You CANNOT call bt_l2cap_send() directly. ---------------------------------------------------------------- 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