linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 00/16] Socket HAL
@ 2013-11-15 14:37 Andrei Emeltchenko
  2013-11-15 14:37 ` [PATCHv2 01/16] android/hal-sock: Add debug flag printing Andrei Emeltchenko
                   ` (15 more replies)
  0 siblings, 16 replies; 19+ messages in thread
From: Andrei Emeltchenko @ 2013-11-15 14:37 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

This is initial code implementing socket HAL. OPP currently works with send/receive files. Probaly
other profiles works as well, not tested yet.

Changes:
	* v2: Following Marcel comments changed way copying between file descriptors works, added SDP record
	for OPP and now it is possible to send files through GUI. Merged one patch with structures with actual user.
	* v1: Rebased and use static src address, hal_fd removed from structure and closed after sent to framework,
	added connect calls and SDP parsing, added cleanup_rfcomm function, minor fixes.
	* RFC Initial

TODO:
	* Add SDP record for PBAP and other profiles
	* Use splice() (requires bionic change first)

For tracking rfcomm sockets I use structure rfslot which has following
fields:
 - real_sock - real RFCOMM socket
 - fd - fd to communicate with Android framework

create_rfslot sets hal_fd which is fd passed to Android framework with CMSG

Andrei Emeltchenko (16):
  android/hal-sock: Add debug flag printing
  android/hal-sock: Use static local adapter address
  android/hal-sock: Add connect signal to socket
  android/hal-sock: Define structs and implement listen
  android/hal-sock: Implement socket accepted event
  android/hal-sock: Implement Android RFCOMM stack events
  android/hal-sock: Implement RFCOMM events
  android/hal-sock: Implement accept signal over Android fd
  android/hal-sock: Write channel to Android fd
  android/hal-sock: Implement socket connect HAL method
  android/hal-sock: Parse SDP response and connect
  android/hal-sock: Implement HAL connect call
  android/hal-sock: Send RFCOMM channel to framework
  android/hal-sock: Send connect signal on connect
  android/hal-sock: Close file descriptor after sending
  android/hal-sock: Add SDP record for OPP profile

 android/hal-msg.h  |    2 +
 android/hal-sock.c |    8 +-
 android/socket.c   |  600 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 android/socket.h   |    7 +
 4 files changed, 609 insertions(+), 8 deletions(-)

-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-11-15 14:53 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15 14:37 [PATCHv2 00/16] Socket HAL Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 01/16] android/hal-sock: Add debug flag printing Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 02/16] android/hal-sock: Use static local adapter address Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 03/16] android/hal-sock: Add connect signal to socket Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 04/16] android/hal-sock: Define structs and implement listen Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 05/16] android/hal-sock: Implement socket accepted event Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 06/16] android/hal-sock: Implement Android RFCOMM stack events Andrei Emeltchenko
2013-11-15 14:53   ` Marcel Holtmann
2013-11-15 14:37 ` [PATCHv2 07/16] android/hal-sock: Implement RFCOMM events Andrei Emeltchenko
2013-11-15 14:49   ` Marcel Holtmann
2013-11-15 14:37 ` [PATCHv2 08/16] android/hal-sock: Implement accept signal over Android fd Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 09/16] android/hal-sock: Write channel to " Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 10/16] android/hal-sock: Implement socket connect HAL method Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 11/16] android/hal-sock: Parse SDP response and connect Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 12/16] android/hal-sock: Implement HAL connect call Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 13/16] android/hal-sock: Send RFCOMM channel to framework Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 14/16] android/hal-sock: Send connect signal on connect Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 15/16] android/hal-sock: Close file descriptor after sending Andrei Emeltchenko
2013-11-15 14:37 ` [PATCHv2 16/16] android/hal-sock: Add SDP record for OPP profile Andrei Emeltchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).