OSDN Git Service

Add tACL_CB::tACL_CONN::remote_version_info
authorChris Manton <cmanton@google.com>
Wed, 4 Nov 2020 16:22:03 +0000 (08:22 -0800)
committerChris Manton <cmanton@google.com>
Sat, 7 Nov 2020 06:37:37 +0000 (22:37 -0800)
Group related data

Bug: 163134718
Tag: #refactor
Test: Paired 2 phones using LE/nRF

Change-Id: I3382d00ae31114fca5a6292514b83c8ef1f5b44c

stack/acl/acl.h

index 9e52296..c8def9a 100644 (file)
@@ -105,6 +105,13 @@ typedef struct {
   uint8_t lmp_version;
   uint8_t switch_role_failed_attempts;
 
+  struct {
+    uint8_t lmp_version{0};
+    uint16_t lmp_subversion{0};
+    uint16_t manufacturer{0};
+    bool valid{false};
+  } remote_version_info;
+
 #define BTM_SEC_RS_NOT_PENDING 0 /* Role Switch not in progress */
 #define BTM_SEC_RS_PENDING 1     /* Role Switch in progress */
 #define BTM_SEC_DISC_PENDING 2   /* Disconnect is pending */