396 Commits

Author SHA1 Message Date
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
7e3e5fabe1 remove hard coded link key prefs key 2010-09-01 22:09:23 +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
04310c5a5c extracted general remote db functions, implemented remote name functions 2010-09-01 21:11:32 +00:00
matthias.ringwald
240a987849 avoid autoreleased stuff 2010-08-30 20:46:23 +00:00
matthias.ringwald
6c923c29a3 uses NSAutoreleasePool for remote_device_db_iphone 2010-08-30 20:24:53 +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
eb920dbead if l2cap connection fails, drop channel immediately. if connection fails due to security block, drop link key, too 2010-08-30 19:06:13 +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
63dfdee5e8 add support for link key db 2010-08-30 17:42:23 +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
3c8915c014 also mkdir -p /bin - thanks rac 2010-08-24 08:37:34 +00:00
matthias.ringwald
811257fe2e use same mode for add/remove runloop source 2010-08-23 22:47:26 +00:00
matthias.ringwald
d50e365c24 try to avoid SIGPIPE 2010-08-23 22:46:53 +00:00
matthias.ringwald
2060cf1463 don't confuse myself 2010-08-23 21:23:17 +00:00
matthias.ringwald
8d408fe22c fix type 2010-08-23 21:05:56 +00:00
matthias.ringwald
15ec09bb89 re-wrote iterate over linked list and delete element code 2010-08-23 21:03:40 +00:00
matthias.ringwald
8a485f27d7 set local name to hostname 2010-08-21 22:33:09 +00:00
matthias.ringwald
2c4a8e6a17 put h4_reader_process into USE_HCI_READER_THREAD part 2010-08-20 18:55:25 +00:00
matthias.ringwald
0c806b9a9e implemented HCI reader thread to handle fd where select doesn't work - work in progress 2010-08-19 22:54:20 +00:00
matthias.ringwald
556c0f73d1 get transport-speed from IORegistry and use it if baudrate == 0 2010-08-19 18:39:17 +00:00
matthias.ringwald
b90ae666ea don't return error when write fails, just wait and try again - kudos to Eric for pointing out this flaw 2010-08-16 17:26:46 +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
4c744e2140 use constant for NR_BUFFERED_ACL_PACKETS and increase to 3 2010-08-16 17:04:39 +00:00
matthias.ringwald
d960624e9e really use l2cap_create_channel_mtu 2010-08-10 21:04:44 +00:00
matthias.ringwald
7af1ca8593 allow for 3- and 5-slot packets 2010-08-10 20:51:51 +00:00
matthias.ringwald
15470d2718 allow specify MTU for outgoing l2cap connections (was 150 before) 2010-08-10 20:43:55 +00:00
matthias.ringwald
fa2b26270d use user specified MTU instead of 150 2010-08-10 19:29:16 +00:00
matthias.ringwald
df33c7a6dc add const to hci_cmd_t for bt_send_cmd, too. Add C++ link protection to public headers 2010-08-08 18:17:48 +00:00
matthias.ringwald
fe35119d8a mark hci cmd templates as const to save RAM 2010-08-08 18:10:45 +00:00
matthias.ringwald
856c7144e5 added bzero for embedded systems 2010-08-08 17:59:59 +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
77c915711e add function to allow custom BT module initialization 2010-08-05 20:04:03 +00:00
matthias.ringwald
866d626ba4 add bzero for embedded targets 2010-08-03 19:57:39 +00:00
matthias.ringwald
65793526c2 fully noop dump timers 2010-08-03 19:47:36 +00:00
matthias.ringwald
b114010b51 send output to correct stream, fix C99 compile problem 2010-08-03 19:46:08 +00:00
matthias.ringwald
91b99603ac grant new credits right after receiving previous packet 2010-08-01 09:18:34 +00:00
matthias.ringwald
a59fb47b50 removed another log statement 2010-07-31 20:38:10 +00:00
matthias.ringwald
8ea03fa513 flow control working, disable some dbg msgs 2010-07-31 09:07:48 +00:00
matthias.ringwald
0e7bc007cb fix compile 2010-07-30 20:23:55 +00:00