Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 0/5] android: Pairing improvements
@ 2014-05-18 11:53 Szymon Janc
  2014-05-18 11:53 ` [PATCH 1/5] android/bluetooth: Track device last connected bearer Szymon Janc
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Szymon Janc @ 2014-05-18 11:53 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

Hi,

This improves (fix) the way dual mode devices are handled. Bearer type is
now tracked and allows to use correct one for dual mode device.

This also adds tracking if remote device was bonded or not. This is in
preparation for fixing no bond pairing. Android HAL does not distinguish
between pairing and bonding and appears to be ignoring bond state change
bonded->no_bond from stack. This leads to situation when device is no longer
paired (after being disconnected) but still being listed as bonded in
Android Framework. Possible solution would be to not call bond_state change
to bonded for no bond case (this seems to be what Bluedroid is doing [1])
but this still needs further analyze and testing.

BR
Szymon Janc


[1] http://androidxref.com/4.4.2_r1/xref/external/bluetooth/bluedroid/btif/src/btif_dm.c#338

Szymon Janc (5):
  android/bluetooth: Track device last connected bearer
  android/bluetooth: Fix pairing of dual mode devices
  android/bluetooth: Fix unpairing dual mode device
  android/bluetooth: Track if paired device is bonded
  android/bluetooth: Simplify check if device type changed

 android/bluetooth.c | 315 ++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 233 insertions(+), 82 deletions(-)

-- 
1.9.0


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

end of thread, other threads:[~2014-05-19  8:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-18 11:53 [PATCH 0/5] android: Pairing improvements Szymon Janc
2014-05-18 11:53 ` [PATCH 1/5] android/bluetooth: Track device last connected bearer Szymon Janc
2014-05-18 11:53 ` [PATCH 2/5] android/bluetooth: Fix pairing of dual mode devices Szymon Janc
2014-05-18 11:53 ` [PATCH 3/5] android/bluetooth: Fix unpairing dual mode device Szymon Janc
2014-05-18 11:53 ` [PATCH 4/5] android/bluetooth: Track if paired device is bonded Szymon Janc
2014-05-18 11:54 ` [PATCH 5/5] android/bluetooth: Simplify check if device type changed Szymon Janc
2014-05-19  8:18 ` [PATCH 0/5] android: Pairing 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