OSDN Git Service

PTS: Add a Secure Only mode.
authorNitin Arora <niarora@codeaurora.org>
Fri, 11 Mar 2016 20:26:51 +0000 (12:26 -0800)
committerMyles Watson <mylesgw@google.com>
Wed, 11 May 2016 15:57:16 +0000 (08:57 -0700)
commit9e44d4c3b73a28dfd635a5d45b8b552025feb7a6
tree57f2056677dd90976aec0971ee170d2afc1f3bce
parent3e2ab979958a851fdf8b623b552525da9dac88b6
PTS: Add a Secure Only mode.

Use Case:
Certification test cases require BLE to be in secure only
mode and reject legacy pairing requests.

Test Case: TP/SEC/SEM/BV-28-C

Failure:
Currently the host doesn't have a method of putting host into
a mode where it can only perform secure pairing.
This prevents execution of certification test cases
requiring Secure Only mode.

Fix:
Made changes to read the value of a tag "PTS_SecurePairOnly"
at runtime from the file "bt_stack.conf".

Bug: 27852645
Change-Id: I32cd6412621efeed2cb31c760a031762d9f369f9
conf/bt_stack.conf
include/stack_config.h
main/stack_config.c
stack/btm/btm_main.c