From df8f403e00c1954012f8e49b999ab4c27c5d43c9 Mon Sep 17 00:00:00 2001 From: Christopher Collins Date: Mon, 23 Oct 2017 16:08:03 -0700 Subject: [PATCH] BLE socket transport - don't drop large frames. For large incoming ACL packets, the "current offset" field was rolling over, making it look like the packet was being dropped. The fix is to change the offset member from uint8_t to uint16_t. X-Original-Commit: 24da43b88ec78642562c5020386d06a26d497955 --- nimble/transport/socket/src/ble_hci_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/transport/socket/src/ble_hci_socket.c b/nimble/transport/socket/src/ble_hci_socket.c index 0a15a5046..8c12b348e 100755 --- a/nimble/transport/socket/src/ble_hci_socket.c +++ b/nimble/transport/socket/src/ble_hci_socket.c @@ -167,7 +167,7 @@ static struct ble_hci_sock_state { struct os_event ev; struct os_callout timer; - uint8_t rx_off; + uint16_t rx_off; uint8_t rx_data[512]; } ble_hci_sock_state;