hci.c (6b64433e6a17b046d431031fa3995f31c29aa188) | hci.c (97fdcd42fbc2022b11becd9dd9c0fae044edf736) |
---|---|
1/* 2 * Copyright (C) 2009-2012 by Matthias Ringwald 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 422 unchanged lines hidden (view full) --- 431 if (hci_stack.state == HCI_STATE_INITIALIZING){ 432 // determine usable ACL payload size 433 if (HCI_ACL_PAYLOAD_SIZE < hci_stack.acl_data_packet_length){ 434 hci_stack.acl_data_packet_length = HCI_ACL_PAYLOAD_SIZE; 435 } 436 // determine usable ACL packet types 437 hci_stack.packet_types = hci_acl_packet_types_for_buffer_size(hci_stack.acl_data_packet_length); 438 | 1/* 2 * Copyright (C) 2009-2012 by Matthias Ringwald 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 422 unchanged lines hidden (view full) --- 431 if (hci_stack.state == HCI_STATE_INITIALIZING){ 432 // determine usable ACL payload size 433 if (HCI_ACL_PAYLOAD_SIZE < hci_stack.acl_data_packet_length){ 434 hci_stack.acl_data_packet_length = HCI_ACL_PAYLOAD_SIZE; 435 } 436 // determine usable ACL packet types 437 hci_stack.packet_types = hci_acl_packet_types_for_buffer_size(hci_stack.acl_data_packet_length); 438 |
439 log_error("hci_read_buffer_size: used size %u, count %u, packet types %04x\n", | 439 log_info("hci_read_buffer_size: used size %u, count %u, packet types %04x\n", |
440 hci_stack.acl_data_packet_length, hci_stack.total_num_acl_packets, hci_stack.packet_types); 441 } 442 } 443 // Dump local address 444 if (COMMAND_COMPLETE_EVENT(packet, hci_read_bd_addr)) { 445 bd_addr_t addr; 446 bt_flip_addr(addr, &packet[OFFSET_OF_DATA_IN_COMMAND_COMPLETE + 1]); 447 log_info("Local Address, Status: 0x%02x: Addr: %s\n", --- 962 unchanged lines hidden --- | 440 hci_stack.acl_data_packet_length, hci_stack.total_num_acl_packets, hci_stack.packet_types); 441 } 442 } 443 // Dump local address 444 if (COMMAND_COMPLETE_EVENT(packet, hci_read_bd_addr)) { 445 bd_addr_t addr; 446 bt_flip_addr(addr, &packet[OFFSET_OF_DATA_IN_COMMAND_COMPLETE + 1]); 447 log_info("Local Address, Status: 0x%02x: Addr: %s\n", --- 962 unchanged lines hidden --- |