OSDN Git Service

Resolve Pairing failure with IPhone
authorGanesh Ganapathi Batta <ganeshg@broadcom.com>
Mon, 28 Apr 2014 23:30:55 +0000 (16:30 -0700)
committerGanesh Ganapathi Batta <ganeshg@broadcom.com>
Mon, 5 May 2014 17:23:00 +0000 (10:23 -0700)
commita217ab9a0294a8285641b141efccf7d54b437a33
treed23986f95c303ca09176d146424525392546beb8
parentb6a912833c68aec96222c1db65880b23be88aa44
Resolve Pairing failure with IPhone

When pairing is initiated from the iPhone side, it sets Bonding bit
without MITM. We responded to this with No bonding, No MITM. This resulted
in JustWorks & Unauthenticated link key. After pairing iPhone initiates a
RFCOMM connection. This caused a link key upgrade to be done, which the iPhone
rejected, resulting in pairing failure. To resolve this the following
enhancements were made
1. If locally initiated pairing always set Bonding bit + MITM
2. If remote initiated
a. copy over the bonding bit
b. if peer has DisplayYesNo set MITM
3. As a fallback if remote had MITM, enable MITM in our response
This forces pairing to use Bonding bit+MITM thus resulting in authenticated
combination linkkey

Change-Id: I08f16c80821bc822023180d01868614ba41e6d88
btif/co/bta_dm_co.c
btif/include/btif_dm.h
btif/src/btif_dm.c