355 Commits

Author SHA1 Message Date
Matthias Ringwald
8d29070e3b Send hci reset after setting bd addr on stlc2500d 2015-05-08 22:19:45 +02:00
Matthias Ringwald
2f48d9200b schedule bd addr change before baud change 2015-05-08 21:58:00 +02:00
Sean Wilson
6da48142ef Fix C99 warnings. 2015-04-28 10:31:53 -04:00
Matthias Ringwald
4696bddb90 support baudrate change on STM STLC2500D chipset 2015-04-17 16:08:51 +02:00
Matthias Ringwald
76fcb19bdb call hci_read_local_version_information after hci reset 2015-04-16 15:38:53 +02:00
Matthias Ringwald
1ebf5f9c83 use last google code svn commit in BTSTACK_EVENT_VERSION 2015-04-11 22:26:35 +02:00
Matthias Ringwald
db8bc6ff3e correct check for baud rate change during hci init 2015-04-10 10:10:41 +02:00
Matthias Ringwald
c0c9aacc37 simplify HCI_INIT_W4_SEND_BAUD_CHANGE, too 2015-04-02 17:45:49 +02:00
Matthias Ringwald
a80162e9a6 correct setting custom baudrate or bd_addr during init 2015-04-02 16:38:59 +02:00
Matthias Ringwald
0d3b00a243 fix init for EM9301 module 2015-03-31 21:47:59 +02:00
Matthias Ringwald
e47e68c797 handle CSR Warm Boot 2015-03-31 12:43:57 +02:00
Matthias Ringwald
7b0d76671f restore num_packets for resend of HCI Reset 2015-03-30 22:26:50 +02:00
Matthias Ringwald
0305bdeab4 resend HCI Reset using timer 2015-03-30 21:38:56 +02:00
Matthias Ringwald
74b323a9b2 rewrote hci initialization to be less clever/more sane 2015-03-30 00:04:53 +02:00
Matthias Ringwald
c4633093a7 removed even/odd calculation on hci init substate 2015-03-29 23:01:27 +02:00
Matthias Ringwald
55975f88a1 use hci_initializing_next_state() instead of direct ++ 2015-03-29 22:58:02 +02:00
Matthias Ringwald
5c3637275c use enumerated hci initialization substates 2015-03-29 22:48:51 +02:00
Matthias Ringwald
556d11b334 enumerate hci initialization substates 2015-03-29 22:24:55 +02:00
matthias.ringwald@gmail.com
690bd0bab8 change hci_local_bd_adr 2015-03-24 08:44:48 +00:00
matthias.ringwald@gmail.com
2e77e513be Stop using pointer to array for bd_addr_t and link_key_t 2015-03-01 20:51:08 +00:00
matthias.ringwald@gmail.com
5293c07213 send accept synchroous connection for SCO connections 2015-02-19 23:14:18 +00:00
matthias.ringwald@gmail.com
1a06f66378 correct setup of hci_connetion for sco connection 2015-02-18 21:09:36 +00:00
matthias.ringwald@gmail.com
e35edcc121 accept connection request for SCO connections, create hci_connection_t for sco, count outgoing packets and free slots, handle num packets completed 2015-02-17 22:47:38 +00:00
matthias.ringwald@gmail.com
44d0e3d556 prepare SCO sending 2015-02-16 22:01:40 +00:00
matthias.ringwald@gmail.com
a8b124471d store num and size of SCO packets 2015-02-16 21:07:50 +00:00
matthias.ringwald@gmail.com
a0aac9c4f8 fix regression in le_handle_advertisement_report II 2015-02-16 20:40:07 +00:00
matthias.ringwald@gmail.com
03fbe9c621 fix regression in le_handle_advertisement_report 2015-02-16 20:38:10 +00:00
matthias.ringwald@gmail.com
c91d150bff add (dummy) sco_handler 2015-02-13 21:58:29 +00:00
matthias.ringwald@gmail.com
bc01039d26 don't log baud rate change or set bd addr twice, fix wait from set bd addr complete event 2015-02-10 22:55:57 +00:00
matthias.ringwald@gmail.com
f456b2d087 send vendor specific command to set bd addr if both set and provided via bt_control_t 2015-02-10 22:16:51 +00:00
matthias.ringwald@gmail.com
a4f30ec095 fix code to set connectio state to RECEIVED_DISCONNECTION_COMPLETE 2015-02-10 18:39:00 +00:00
mila@ringwald.ch
a0c35809ae streamline copyright headers 2015-02-06 16:19:27 +00:00
matthias.ringwald@gmail.com
bdbf1a1bb9 removed deprecated hci functions 2015-02-05 15:47:25 +00:00
matthias.ringwald@gmail.com
ccda6e14d0 avoid sending acl packets for connections where HCI_EVENT_DISCONNECTION_COMPLETE has been received 2015-02-05 15:43:01 +00:00
matthias.ringwald@gmail.com
4fa24b5f10 emit warning for DAEMON_EVENT_HCI_PACKET_SENT from a synchronous HCI Transport implementation 2015-02-05 14:40:16 +00:00
matthias.ringwald@gmail.com
507d06b870 avoid var sized automatic variable in le_handle_advertisement_report 2015-01-30 09:15:30 +00:00
matthias.ringwald@gmail.com
a5a23fc274 with ACL fragmentation working, usable ACL packet types depend on Host ACL buffer size and Controller features 2015-01-02 18:06:01 +00:00
matthias.ringwald@gmail.com
25bf58726a disable attempt to encrypt connection to raise security level as it's not working 2014-12-09 23:34:29 +00:00
mila@ringwald.ch
6e2e9a6bab fix crash on connection failure 2014-12-01 22:52:32 +00:00
matthias.ringwald@gmail.com
23a77e1a6f drop old fragments if new first fragment is received 2014-11-20 15:44:57 +00:00
matthias.ringwald@gmail.com
0ca847af67 add buffer overrun checks to ACL recombination 2014-11-20 15:11:50 +00:00
matthias.ringwald@gmail.com
bb82004450 avoid read after free on disconnect 2014-11-18 22:08:21 +00:00
ole.reinhardt@googlemail.com
f16a69bbd8 Fixed compiler warnings (comparision of signed with unsigned) 2014-11-18 21:37:23 +00:00
matthias.ringwald@gmail.com
b5d8b22b3c send remaining acl fragemnts first as they block the outgoing packet buffer 2014-11-18 14:48:29 +00:00
matthias.ringwald@gmail.com
d051460cdf don't release packet buffer if further fragments 2014-11-18 14:18:08 +00:00
matthias.ringwald@gmail.com
5bb5bc3ed8 removed packet logging functionality (hci_dump, hexdump) from hci transport implementations and use hci_dump in hci.c instead 2014-11-16 20:05:18 +00:00
matthias.ringwald@gmail.com
fe4751381e add winsock2 for gethostname on win32 2014-11-11 20:33:00 +00:00
matthias.ringwald@gmail.com
203bace68e release packet buffer after last acl fragment for synchronous HCI transport implementation 2014-11-10 12:53:34 +00:00
matthias.ringwald@gmail.com
ec6321ee39 reserve buffer in front of incoming hci_packet buffer for h4 (posix, dma, dma+ehcill) and h2 libusb, and acl recombination buffer 2014-11-06 20:09:57 +00:00
matthias.ringwald@gmail.com
3ac2fe5667 fix regression from r2882 2014-10-13 20:54:01 +00:00