OSDN Git Service

Remove unused #defs stack/btm/btm_ble_int_types::
authorChris Manton <cmanton@google.com>
Fri, 18 Sep 2020 16:12:31 +0000 (09:12 -0700)
committerChris Manton <cmanton@google.com>
Wed, 23 Sep 2020 20:54:12 +0000 (13:54 -0700)
Towards readable code

Bug: 163134718
Tag: #refactor
Test: acts -tc BleCocTest
Test: ble paired 2 phones
Change-Id: I95c3ddce09f0492e1d6026ecba18ee8f44838261

stack/btm/btm_ble_int_types.h

index d4ff12d..2ddd460 100644 (file)
 #define BTM_BLE_ADV_ENABLE 0x01
 #define BTM_BLE_ADV_DISABLE 0x00
 
-/* use the high 4 bits unused by inquiry mode */
-#define BTM_BLE_SELECT_SCAN 0x20
-#define BTM_BLE_NAME_REQUEST 0x40
-#define BTM_BLE_OBSERVE 0x80
-
-#define BTM_BLE_MAX_WL_ENTRY 1
 #define BTM_BLE_AD_DATA_LEN 31
 
-#define BTM_BLE_ENC_MASK 0x03
-
 #define BTM_BLE_DUPLICATE_ENABLE 1
 #define BTM_BLE_DUPLICATE_DISABLE 0
 
@@ -79,14 +71,6 @@ typedef enum : uint8_t {
   BTM_BLE_SEC_REQ_ACT_DISCARD = 3,
 } tBTM_BLE_SEC_REQ_ACT;
 
-/* LE scan activity bit mask, continue with LE inquiry bits */
-/* observe is in progress */
-#define BTM_LE_OBSERVE_ACTIVE 0x80
-
-/* BLE scan activity mask checking */
-#define BTM_BLE_IS_INQ_ACTIVE(x) ((x)&BTM_BLE_INQUIRY_MASK)
-#define BTM_BLE_IS_OBS_ACTIVE(x) ((x)&BTM_LE_OBSERVE_ACTIVE)
-
 #define BTM_VSC_CHIP_CAPABILITY_L_VERSION 55
 #define BTM_VSC_CHIP_CAPABILITY_M_VERSION 95
 
@@ -185,10 +169,6 @@ typedef uint16_t tBTM_BLE_STATE_MASK;
 #define BTM_BLE_STATE_ALL_CONN_MASK \
   (BTM_BLE_STATE_MASTER_BIT | BTM_BLE_STATE_SLAVE_BIT)
 
-#ifndef BTM_LE_RESOLVING_LIST_MAX
-#define BTM_LE_RESOLVING_LIST_MAX 0x20
-#endif
-
 typedef struct {
   RawAddress* resolve_q_random_pseudo;
   uint8_t* resolve_q_action;
@@ -196,13 +176,6 @@ typedef struct {
   uint8_t q_pending;
 } tBTM_BLE_RESOLVE_Q;
 
-typedef struct {
-  bool in_use;
-  bool to_add;
-  RawAddress bd_addr;
-  uint8_t attr;
-} tBTM_BLE_WL_OP;
-
 /* BLE privacy mode */
 #define BTM_PRIVACY_NONE 0 /* BLE no privacy */
 #define BTM_PRIVACY_1_1 1  /* BLE privacy 1.1, do not support privacy 1.0 */