rename central_device_db_index into le_device_db_index

This commit is contained in:
matthias.ringwald@gmail.com 2015-03-02 21:44:16 +00:00
parent 3a3e1c9119
commit b9b968bb23
3 changed files with 5 additions and 5 deletions

View File

@ -162,7 +162,7 @@ static void att_event_packet_handler (uint8_t packet_type, uint16_t channel, uin
break;
case SM_IDENTITY_RESOLVING_SUCCEEDED:
att_ir_lookup_active = 0;
att_ir_le_device_db_index = ((sm_event_t*) packet)->central_device_db_index;
att_ir_le_device_db_index = ((sm_event_t*) packet)->le_device_db_index;
log_info("SM_IDENTITY_RESOLVING_SUCCEEDED id %u", att_ir_le_device_db_index);
att_run();
break;

View File

@ -454,9 +454,9 @@ static void sm_notify_client(uint8_t type, uint8_t addr_type, bd_addr_t address,
event.addr_type = addr_type;
BD_ADDR_COPY(event.address, address);
event.passkey = passkey;
event.central_device_db_index = index;
event.le_device_db_index = index;
log_info("sm_notify_client %02x, addres_type %u, address %s, num '%06u', index %u", event.type, event.addr_type, bd_addr_to_str(event.address), event.passkey, event.central_device_db_index);
log_info("sm_notify_client %02x, addres_type %u, address %s, num '%06u', index %u", event.type, event.addr_type, bd_addr_to_str(event.address), event.passkey, event.le_device_db_index);
if (!sm_client_packet_handler) return;
sm_client_packet_handler(HCI_EVENT_PACKET, 0, (uint8_t*) &event, sizeof(event));

View File

@ -113,8 +113,8 @@ typedef struct sm_event {
uint8_t type; // see <btstack/hci_cmds.h> SM_...
uint8_t addr_type;
bd_addr_t address;
uint32_t passkey; // only used for SM_PASSKEY_DISPLAY_NUMBER
uint16_t central_device_db_index; // only used for SM_IDENTITY_RESOLVING_..
uint32_t passkey; // only used for SM_PASSKEY_DISPLAY_NUMBER
uint16_t le_device_db_index; // only used for SM_IDENTITY_RESOLVING_..
uint8_t authorization_result; // only use for SM_AUTHORIZATION_RESULT
} sm_event_t;