33 Commits

Author SHA1 Message Date
Matthias Ringwald
0f489073ef bnep: emit open channel complete event, discard incoming connection event 2015-08-03 12:59:25 +02:00
Matthias Ringwald
f761755944 bnep: accept extensions after connections response was received 2015-08-03 10:59:51 +02:00
Matthias Ringwald
30c4d0ef9b bnep: extract bnep_can_handle_extension 2015-08-03 10:51:41 +02:00
Matthias Ringwald
72956c7420 bnep: handle l2cap open for incoming connections properly 2015-08-03 10:39:10 +02:00
Matthias Ringwald
99ecc4c71e pass src and dest uuid for bnep_connect 2015-07-10 17:02:25 +02:00
Matthias Ringwald
1a6180181a no break after return 2015-05-13 10:33:00 +02:00
Matthias Ringwald
288f84bdbd avoid warning about uninitialized code 2015-05-07 20:53:22 +02:00
Matthias Ringwald
f391359984 update use of hci_local_address 2015-03-29 22:13:51 +02: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
mila@ringwald.ch
ff34c5fd2d defined new SDP Sevice Class and Protocol constants 2015-02-13 09:28:39 +00:00
mila@ringwald.ch
f6ed4ea310 update copyright, add author 2015-02-06 10:45:10 +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
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
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
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
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
ole.reinhardt@googlemail.com
feb9b63cc4 Fixed not freed packet buffer bug, when packet size exceeds MTU in bnep_send()
Fixed max frame size calculation
2014-11-12 00:12:13 +00:00
ole.reinhardt@googlemail.com
98f09fd9b8 Allways call bnep_run() in bnep_hci_event_handler(). Even if the incomming event
if unknown. Otherwise package handling could stop
2014-11-11 21:08:29 +00:00
matthias.ringwald@gmail.com
9a9c32e4a1 remove additional incorrect check 2014-10-29 12:06:51 +00:00
ole.reinhardt@googlemail.com
69b6ff0287 Reworked bnep_send().
Some smaller fixes.
2014-10-28 01:16:50 +00:00
ole.reinhardt@googlemail.com
900ff4aa27 Use correct endianess when storing the network protocol type in a received
ethernet packet
2014-10-28 01:16:39 +00:00
ole.reinhardt@googlemail.com
82e76094c7 Added ethernet packet type handling 2014-10-27 11:49:47 +00:00
ole.reinhardt@googlemail.com
54da7742d6 Some fixes in event generation and added further parameter to bnep_connect() 2014-10-20 10:06:38 +00:00
ole.reinhardt@googlemail.com
982736b649 Further code cleanup 2014-10-20 10:06:07 +00:00
ole.reinhardt@googlemail.com
c9801c0af7 Further code rework and cleanup 2014-10-16 22:58:52 +00:00
ole.reinhardt@googlemail.com
d57175bae7 Fixed typo and some function namings 2014-10-16 12:27:27 +00:00
ole.reinhardt@googlemail.com
67385654ba Some code rework, start implementing benp_run routine and statemachine to
handle async package sending
2014-10-16 09:45:36 +00:00
ole.reinhardt@googlemail.com
66b319ed3a Added bnep.c bnep.h, still under development, may not yet compile 2014-10-08 13:21:40 +00:00