OSDN Git Service

BLE Secuity manager state machine generate wrong pairing success event.
authorZhihai Xu <zhihaixu@google.com>
Sat, 16 Nov 2013 02:57:28 +0000 (18:57 -0800)
committerZhihai Xu <zhihaixu@google.com>
Fri, 6 Dec 2013 01:31:20 +0000 (17:31 -0800)
commit58440603564a1f43ef27b3bf738d9d6177b7b9ee
tree487a590426baa5539f02093da081697fd3e5ee58
parentd3f44782195519d97589f2362e5a8879ee7b62ff
BLE Secuity manager state machine generate wrong pairing success event.

 we call smp_proc_release_delay to setup a timer.
We will send a pair failure message to uplayer after the time expired.
Right before the time expire, the l2cap connection is disconnected
from remote device, we receive L2C_DISC, which will call smp_delay_terminate,
 smp_delay_terminate will send a pair success message to uplayer.
The fix is not to change the status if the remote device disconnect the link

bug:11716967
Change-Id: I8ca63599a170ec86913785aafea552301cec37df
stack/smp/smp_act.c