106 Commits

Author SHA1 Message Date
matthias.ringwald
0a90cc4090 re-enable inquiry scan after sleep if it was on before 2011-02-03 19:41:43 +00:00
matthias.ringwald
4ddb5bed9e fix deadlock when going from Sleep into Power off 2011-02-02 22:05:11 +00:00
matthias.ringwald
7ec5eeaa74 fix exration of num hci cmds allowed from command status packets 2011-01-30 18:37:02 +00:00
matthias.ringwald
89db417b22 disable page and inquiry scan when entering sleep mode 2011-01-30 17:38:07 +00:00
matthias.ringwald
6ad890d319 use internal hci_send_cmd instead of client bt_send_cmd 2011-01-12 19:35:08 +00:00
matthias.ringwald
67a3e8ec46 hci_shutdown_connection returns void 2011-01-12 19:30:25 +00:00
matthias.ringwald
b429b9b757 don't release UART during SLEEP - fixes problem with BTServer trying to do power management 2011-01-11 21:38:56 +00:00
matthias.ringwald
381fbed89a add, track, and handle btstack_set_disoverable 2011-01-10 21:11:58 +00:00
matthias.ringwald
3144bce463 try using BlueTool wake on/off 2011-01-09 16:19:42 +00:00
matthias.ringwald
72ea52390f call sleep() instead of off() 2011-01-08 23:03:00 +00:00
matthias.ringwald
d661ed1955 log message for power change 2011-01-07 22:20:37 +00:00
matthias.ringwald
b546ac5469 handle transition for HCI_POWER_SLEEP and all HCI state transitions 2011-01-07 20:54:57 +00:00
matthias.ringwald
8d213e1a0d handle HCI_POWER_ON and HCI_POWER_OFF in existing 4 states 2011-01-07 19:36:05 +00:00
matthias.ringwald
c7e0c5f6bb stop all baseband connections on HCI_POWER_OFF 2011-01-06 23:45:57 +00:00
matthias.ringwald
2f89d309d8 send bd addr in correct endianess - thanks to francis for spotting this goof 2010-09-14 20:12:22 +00:00
matthias.ringwald
5250fb9ea0 provide access to size of acl buffers in Bluetooth module 2010-09-03 20:17:04 +00:00
matthias.ringwald
287d19b836 fix warning 2010-09-03 18:40:27 +00:00
matthias.ringwald
bec2a03917 store link key correctly 2010-09-03 18:33:22 +00:00
matthias.ringwald
8ef7394502 delete link key from remote device db on hci_delete_stored_link_key command 2010-09-02 21:56:28 +00:00
matthias.ringwald
f653b6bd93 use structure of HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE for BTSTACK_EVENT_REMOTE_NAME_CACHED to make life easier 2010-09-02 18:39:04 +00:00
matthias.ringwald
74ec757acc store remote names and send to clients on inquiry results 2010-09-01 22:09:58 +00:00
matthias.ringwald
627c2f4552 define BTSTACK_EVENT_REMOTE_NAME_CACHED, and implement event emit code 2010-09-01 21:25:40 +00:00
matthias.ringwald
404843c191 added hci_close() that trigger remote device db close, added remote device db parameter to hci_init(), implemented NSUserDefaults backed link key storage 2010-08-30 20:10:51 +00:00
matthias.ringwald
c12e46e766 drop link key only on authentication error 2010-08-30 19:05:14 +00:00
matthias.ringwald
29d5309818 replace link_key_db_t with a remote_device_db_t that also holds cached remote names 2010-08-30 18:44:50 +00:00
matthias.ringwald
75e651ceb3 remove accidental copy and paste 2010-08-26 20:28:16 +00:00
matthias.ringwald
80ca58a00d keep baseband connection during authentication 2010-08-26 20:26:48 +00:00
matthias.ringwald
7fde4af91d keep track of authentication commands and events 2010-08-26 20:12:05 +00:00
matthias.ringwald
8a485f27d7 set local name to hostname 2010-08-21 22:33:09 +00:00
matthias.ringwald
622d0de9a0 streamline hci_transport interface: only have single send_packet(type,data,size) 2010-08-16 17:23:22 +00:00
matthias.ringwald
fe35119d8a mark hci cmd templates as const to save RAM 2010-08-08 18:10:45 +00:00
matthias.ringwald
2f6c30e14b correct custom init calling code 2010-08-05 20:37:33 +00:00
matthias.ringwald
f9a30166ed removed bt_control_t null_control 2010-08-05 20:23:06 +00:00
matthias.ringwald
9091920332 send custom init code if nececessary 2010-08-05 20:13:02 +00:00
matthias.ringwald
8ea03fa513 flow control working, disable some dbg msgs 2010-07-31 09:07:48 +00:00
matthias.ringwald
6218e6f12b add counters for flow control, channel credits event, return -1 if no space in BT module 2010-07-29 19:35:34 +00:00
matthias.ringwald
998906cd83 track number of outgoing packets in BT module 2010-07-28 19:12:39 +00:00
matthias.ringwald
56cf178b4d keep track of ACL packets in controller 2010-07-25 15:51:03 +00:00
matthias.ringwald
e2edc0c398 read buffer size on hci init 2010-07-25 15:11:33 +00:00
matthias.ringwald
2718e2e7a1 use single packet handler per protocol layer: hci 2010-07-18 16:30:16 +00:00
matthias.ringwald
10e830c982 use single packet handler per protocol layer: hci_transport 2010-07-18 16:14:55 +00:00
matthias.ringwald
cf0b66f05f fix typo, use log_ macros 2010-07-04 19:35:21 +00:00
matthias.ringwald
7f2435e617 use new debug.h 2010-07-04 19:28:21 +00:00
matthias.ringwald
ddce1d8d00 set len in BTSTACK_EVENT_SYSTEM_BLUETOOTH_ENABLED correctly 2010-05-24 15:38:58 +00:00
matthias.ringwald
7856c8184a implement L2CAP packet recombination in hci.c using a max size L2CAP buffer per connection 2010-02-13 15:15:19 +00:00
matthias.ringwald
d55db49ea2 add buffer to hci_connection_t to allow for ACL recombination 2010-02-13 10:49:00 +00:00
matthias.ringwald
169f8b289d auto-accept incoming l2cap 2010-01-26 18:28:21 +00:00
matthias.ringwald
645658c9de added non-working l2cap_handle_connection_request 2010-01-25 22:22:55 +00:00
matthias.ringwald
37eaa4cf13 baseband connection accepted 2010-01-25 20:53:43 +00:00
matthias.ringwald
1f7b95a184 dispatch l2cap commands 2010-01-25 20:25:20 +00:00