Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC 00/13] Connection and request handling improvements
@ 2014-06-06 13:46 Jakub Tyszkowski
  2014-06-06 13:46 ` [RFC 01/13] android/gatt: Rename app connection handling function Jakub Tyszkowski
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Jakub Tyszkowski @ 2014-06-06 13:46 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jakub Tyszkowski

Patches from 1 to 9 adds subtle improvements to the existing functionality to
prepare ground for patches 10 to 13, which adds proper handling of server app
connections.

Server app connections should exist for all devices currently connected and for
each server app registered so we properly propagate requests for reads and
writes. Such connections are not owned by server apps so they cannot disconnect
connections owned by other. But they should be notified of any connection state
changes.

For this kind of functionality app_connection received owner flag to control
disconnection permissions. Ownerless connections are created automatically for
every device if server app registers. and for every server app on device
connecting for proper event propagation purpose.

This fixes some issues spotted on the UPF.

Jakub Tyszkowski (13):
  android/gatt: Rename app connection handling function
  android/gatt: Always check for complete response queue
  android/gatt: Dont process pending requests if queue is empty
  android/gatt: Fix double processing of pending responses list
  android/gatt: Improve response filling function
  android/gatt: Move response filling functions up
  android/gatt: Use fill_gatt_response in response processing
  android/gatt: Use common code for server and client apps unregister
  android/gatt: Rename app unregister function
  android/gatt: Factor out device disconn. part from app disconn.
  android/gatt: Create server connections on register
  android/gatt: Verify client and server disconnect callers
  android/gatt: Postpone disconnect notifications sent to server apps

 android/gatt.c | 399 +++++++++++++++++++++++++++++++--------------------------
 1 file changed, 217 insertions(+), 182 deletions(-)

--
2.0.0


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

end of thread, other threads:[~2014-06-10 11:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-06 13:46 [RFC 00/13] Connection and request handling improvements Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 01/13] android/gatt: Rename app connection handling function Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 02/13] android/gatt: Always check for complete response queue Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 03/13] android/gatt: Dont process pending requests if queue is empty Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 04/13] android/gatt: Fix double processing of pending responses list Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 05/13] android/gatt: Improve response filling function Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 06/13] android/gatt: Move response filling functions up Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 07/13] android/gatt: Use fill_gatt_response in response processing Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 08/13] android/gatt: Use common code for server and client apps unregister Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 09/13] android/gatt: Rename app unregister function Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 10/13] android/gatt: Factor out device disconn. part from app disconn Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 11/13] android/gatt: Create server connections on register Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 12/13] android/gatt: Verify client and server disconnect callers Jakub Tyszkowski
2014-06-06 13:46 ` [RFC 13/13] android/gatt: Postpone disconnect notifications sent to server apps Jakub Tyszkowski
2014-06-10 11:45 ` [RFC 00/13] Connection and request handling improvements Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox