OSDN Git Service

Move def BLE_ADDR_TYPE_ID_BIT closer to relatives
authorChris Manton <cmanton@google.com>
Fri, 28 Aug 2020 22:24:00 +0000 (15:24 -0700)
committerChris Manton <cmanton@google.com>
Fri, 28 Aug 2020 23:49:05 +0000 (16:49 -0700)
Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ib4f9f1a670b9a029f54eebc97035a33d79539bee

stack/btm/btm_ble_int_types.h
stack/include/bt_types.h

index a1ae62c..7f0fb95 100644 (file)
@@ -86,9 +86,6 @@ typedef uint8_t tBTM_BLE_SEC_REQ_ACT;
 #define BTM_BLE_IS_INQ_ACTIVE(x) ((x)&BTM_BLE_INQUIRY_MASK)
 #define BTM_BLE_IS_OBS_ACTIVE(x) ((x)&BTM_LE_OBSERVE_ACTIVE)
 
-/* BLE ADDR type ID bit */
-#define BLE_ADDR_TYPE_ID_BIT 0x02
-
 #define BTM_VSC_CHIP_CAPABILITY_L_VERSION 55
 #define BTM_VSC_CHIP_CAPABILITY_M_VERSION 95
 
index 245b675..3699b0a 100644 (file)
@@ -754,6 +754,9 @@ typedef struct {
 #define BLE_ADDR_ANONYMOUS 0xFF
 typedef uint8_t tBLE_ADDR_TYPE;
 
+/* BLE ADDR type ID bit */
+#define BLE_ADDR_TYPE_ID_BIT 0x02
+
 #ifdef __cplusplus
 struct tBLE_BD_ADDR {
   tBLE_ADDR_TYPE type;