Keep local IRK in permanent storage 32/115532/1 accepted/tizen/3.0/common/20170221.125520 accepted/tizen/3.0/ivi/20170221.050915 accepted/tizen/3.0/mobile/20170221.050807 accepted/tizen/3.0/tv/20170221.050830 accepted/tizen/3.0/wearable/20170221.050851 submit/tizen_3.0/20170220.233212
authorSeungyoun Ju <sy39.ju@samsung.com>
Fri, 10 Feb 2017 08:42:11 +0000 (17:42 +0900)
committerSeungyoun Ju <sy39.ju@samsung.com>
Mon, 20 Feb 2017 08:21:48 +0000 (17:21 +0900)
commitc59f23fd14b158efb05478b31171bea0cd09fe0d
tree375f09d7f10c792963c6f5f19cae4d7c0869e72f
parentd1885320f652e14702f496dbd5655109f102a887
Keep local IRK in permanent storage

[Model] COMMON
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] When local IRK is changed, iOS rejects re-pairing request (iOS issue).
 This issue happens in below scenario.
 1. Pair with iOS
 2. Factory-reset DUT
 3. Try to pair with iOS again without unpairing on iOS
 4. iOS sends SMP pairing error with "Unspecified reason". So until user
   unpairs DUT on iOS, re-pairing is not possible.

 And when local IRK is not distributed at BLE pairing with some android
 devices, those devices cannot connect to DUT again via BLE (Android issue).
 1. Pair with Galaxy A5 2016 / Note 4 via BLE
 2. Disconnect
 3. Try to connect again via BLE
 4. A5 2016 / Note 4 try to connect to DUT using 00:00:00:00:00:00
   address. So it is failed.

 To solve these issues, DUT distributes a IRK. And after resetting DUT,
 retain the IRK.
[Cause & Measure] Compatibility issues with other OS's.
[Checking Method]
 ===
 1. Pair with iOS
 2. Factory-reset DUT
 3. Try to pair with iOS again without unpairing on iOS
 4. iOS sends SMP pairing error with "Unspecified reason". So until user
   unpairs DUT on iOS, re-pairing is not possible.
 ===
 1. Pair with Galaxy A5 2016 / Note 4 via BLE
 2. Disconnect
 3. Try to connect again via BLE
 4. A5 2016 / Note 4 try to connect to DUT using 00:00:00:00:00:00
 ===

[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change

Change-Id: Icf0f2899028f13764dd09aec1b6851a5efa4d00b
src/adapter.c