1409 Commits

Author SHA1 Message Date
mila@ringwald.ch
f6ed4ea310 update copyright, add author 2015-02-06 10:45:10 +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
3568d140a5 improve comments 2015-02-05 15:23:48 +00:00
matthias.ringwald@gmail.com
897310e152 don't call l2cap_disconnect_internal on L2CAP_EVENT_CHANNEL_CLOSED event 2015-02-05 15:20:00 +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
f540f3aff0 bump L2CAP Response Timeout from 2 to 10 seconds 2015-01-14 20:25:13 +00:00
matthias.ringwald@gmail.com
9461a321be hand out credits in blocks of 10 (easier debugging) 2015-01-05 21:04:48 +00:00
ole.reinhardt@googlemail.com
70539b1863 Fixed multicast filtering
Replace filters instead of adding new to the list
2015-01-04 00:19:28 +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
ole.reinhardt@googlemail.com
d80db446ec Implemented network protocol and multicast filters.
Added two new API functions:
   bnep_set_net_type_filter()
   bnep_set_multicast_filter()
2015-01-02 01:13:53 +00:00
ole.reinhardt@googlemail.com
988719c2b4 Added definition of ETHERTYPE_VLAN 2015-01-02 01:13:48 +00:00
matthias.ringwald
919da6fe50 fix de_get_uuid32 2014-12-22 16:51:44 +00:00
matthias.ringwald@gmail.com
73bb0a8e18 added option to construct rfcomm packet in outgoing buffer 2014-12-19 21:42:12 +00:00
matthias.ringwald@gmail.com
fc6903a12d added linked_list_count 2014-12-19 21:34:29 +00:00
matthias.ringwald@gmail.com
72628cafee clean up and improve RFCOMM setup logic 2014-12-19 16:25:27 +00:00
matthias.ringwald@gmail.com
cb0ff06b75 improve log messages for l2cap rx timer 2014-12-19 16:21:39 +00:00
matthias.ringwald@gmail.com
c64a10eb40 adde newline to hexdumpf 2014-12-12 11:07:20 +00:00
mila@ringwald.ch
881797bd1b des_iterator moved to sdp_util 2014-12-12 08:42:35 +00:00
matthias.ringwald@gmail.com
bbac2f6fce retry sending bnep control setup msg, required by PTS BNEP test 2014-12-11 22:16:42 +00:00
ole.reinhardt@googlemail.com
43ee6cfed5 All numbers in any BNEP header are in network byte order!
Fixed usage of endianess conversion macros and 16 bit load / store macros
2014-12-10 23:28:03 +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
matthias.ringwald@gmail.com
21cd7d2f9b moved de_get_uint16 into sdp_utils 2014-12-04 09:40:43 +00:00
matthias.ringwald@gmail.com
834f893558 add de_get_uuid32 2014-12-04 09:34:35 +00:00
matthias.ringwald@gmail.com
f61ec82363 fix compile for AVR 2014-12-03 22:39:18 +00:00
matthias.ringwald@gmail.com
20ea11b9fd use PROGMEM on AVR architecture for log_ facilities 2014-12-03 22:33:36 +00:00
matthias.ringwald@gmail.com
21b856f39b add additional cast to generated memory pool code 2014-12-03 20:45:56 +00:00
mila@ringwald.ch
6e2e9a6bab fix crash on connection failure 2014-12-01 22:52:32 +00:00
mila@ringwald.ch
02f4e00d16 finished hci cmds annotation 2014-11-28 11:10:16 +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
5ffcfcf3c5 reset tx state before daemon event hci packet sent - avoids stalls 2014-11-19 22:14:29 +00:00
matthias.ringwald@gmail.com
1fd51e4555 Avoid link error with CCS 2014-11-19 19:30:24 +00:00
ole.reinhardt@googlemail.com
17d9831b7e Fixed buffer overflow in event package assembly in bnep_emit_incoming_connection() 2014-11-19 01:01:22 +00:00
ole.reinhardt@googlemail.com
34e07d98fe Fixed connection request handling, read UUIDs in network byte order
Initialise service struct memory after allocation
2014-11-19 01:01:11 +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
c523d53df2 Initialise l2cap channel struct with 0 after allocating memory (make valgrind happy) 2014-11-18 21:37:34 +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
1df3b67945 fix log_* for embedded hci_dump 2014-11-16 23:34:46 +00:00
matthias.ringwald@gmail.com
8304b81b86 added embedded_get_time_ms(void) 2014-11-16 21:19:23 +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
2b1f4db731 log outgoing packets correctly 2014-11-15 23:40:54 +00:00
matthias.ringwald@gmail.com
4e83d0657a have hci_transport_h4_dma*.c log packets using hci dump 2014-11-15 23:28:32 +00:00
ole.reinhardt@googlemail.com
329f335a47 Implemented bnep connection timeout. Currently set to 10s
Added new event BNEP_EVENT_CHANNEL_TIMEOUT which is emittet as soon
as a the bnep connection establishment times out.
2014-11-13 00:28:01 +00:00
ole.reinhardt@googlemail.com
58729a1bdb Implemented bnep extension header parsing
Modified logging level for lots of log messages (log_info -> log_error)
2014-11-12 22:42:04 +00:00
ole.reinhardt@googlemail.com
4e1b5f9ce9 Removed unused variable from bnep_packet_handler() 2014-11-12 00:12:28 +00:00
ole.reinhardt@googlemail.com
cf7827865f Defined HCI_INCOMING_PRE_BUFFER_SIZE
(14 Bytes = 2 * sizeof(bd_addr_t) + sizeof(uint16_t))
This avoids extra copying of the ethernet frame into a static buffer

bnep.c implements two solutions with and without HCI_INCOMING_PRE_BUFFER_SIZE
defined
2014-11-12 00:12:23 +00:00