This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 129a0703c4 bluetooth: Fix the Unexpected ACL flags error
129a0703c4 is described below
commit 129a0703c4e5859dcfe123a88f9001aecf886800
Author: Lwazi Dube <[email protected]>
AuthorDate: Sat Apr 22 21:46:46 2023 -0400
bluetooth: Fix the Unexpected ACL flags error
This change fixes a bug that was introduced when a 16 bit handle was
changed into a 12 bit bitfield without adapting the rest of the stack.
---
include/nuttx/wireless/bluetooth/bt_hci.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/nuttx/wireless/bluetooth/bt_hci.h
b/include/nuttx/wireless/bluetooth/bt_hci.h
index e999b63c38..bbf45fb504 100644
--- a/include/nuttx/wireless/bluetooth/bt_hci.h
+++ b/include/nuttx/wireless/bluetooth/bt_hci.h
@@ -289,9 +289,7 @@ begin_packed_struct struct bt_hci_evt_hdr_s
begin_packed_struct struct bt_hci_acl_hdr_s
{
- uint16_t handle : 12;
- uint16_t packet_boundary : 2;
- uint16_t broadcast : 2;
+ uint16_t handle;
uint16_t len;
} end_packed_struct;