OSDN Git Service

PTS: Read SMP pairing options from bt_stack.conf
authorNitin Arora <niarora@codeaurora.org>
Sat, 12 Mar 2016 00:37:51 +0000 (16:37 -0800)
committerMyles Watson <mylesgw@google.com>
Mon, 9 May 2016 22:56:14 +0000 (15:56 -0700)
commit2aa2b80259612d1a324891c2e036a7bb002b2462
tree209ac326e37c5a74ff8538d369ff98e95742f198
parent4cdb0e547b0dd056e60cc4724efa10c07e45fb96
PTS: Read SMP pairing options from bt_stack.conf

Use Case:
A number of cenrtification test cases require the host
to change the pairing options including auth request,
I/O capabilities, key distribution mask, key length
and Out of band capability.

Test Case: TP/PKE/BV-02-C

Failure:
Host currently only supports fixed SMP options and only
a few test cases involving pairing, are executed due
to that limitation.

Fix:
Added changes to read the SMP options from the bt_stack.conf
file at run time.
The pairing options are entered as a comma separated list eg:
SMPOptions=0xD,0x4,0xf,0xf,0x10
where the included hex values are in the following order:
\#auth, io, ikey, rkey, ksize
If all 5 options are not present, the host falls back to the
default values

Bug: 27852645
Change-Id: I693b05966695cf4660c5da10249c5f7c0663e53a
btif/co/bta_dm_co.cc
btif/include/btif_dm.h
btif/src/btif_dm.cc
conf/bt_stack.conf
include/stack_config.h
main/stack_config.c