don't perform remote name requests automatically after inquiry

This commit is contained in:
matthias.ringwald@gmail.com 2014-02-12 06:35:57 +00:00
parent 20c4af341f
commit a78b3d5582

View File

@ -172,12 +172,13 @@ static void inquiry_packet_handler (uint8_t packet_type, uint8_t *packet, uint16
break;
case HCI_EVENT_INQUIRY_COMPLETE:
for (i=0;i<deviceCount;i++) {
// retry remote name request
if (devices[i].state == REMOTE_NAME_INQUIRED)
devices[i].state = REMOTE_NAME_REQUEST;
}
continue_remote_names();
// don't get remote names for testing
// for (i=0;i<deviceCount;i++) {
// // retry remote name request
// if (devices[i].state == REMOTE_NAME_INQUIRED)
// devices[i].state = REMOTE_NAME_REQUEST;
// }
// continue_remote_names();
break;
case BTSTACK_EVENT_REMOTE_NAME_CACHED: