9ded3b71deeb06a6de8bdba36dca198d481ca34c |
|
15-Mar-2016 |
Nitin Arora <niarora@codeaurora.org> |
Remote device changes for SMP certification Use Case: Certification test cases for SMP require various scenarios where the remote device needs to show a specific behavior where it fails the pairing in a certain way, and the DUT is required to abort the pairing properly. In abcense of a proper PTS suite to execute these test cases, we can use another device running the same host by configuring certain run time property. Test Cases: TP/SCJW/BI-02-C TP/SCJW/BV-02-C TP/SCPK/BI-03-C TP/SCPK/BI-04-C TP/SCPK/BV-02-C TP/SCPK/BV-03-C TP/SCJW/BI-01-C TP/SCCT/BV-01-C TP/SCCT/BV-02-C TP/SCPK/BI-01-C TP/SCPK/BI-02-C TP/SCPK/BV-04-C TP/SCPK/BV-01-C Fix: Added a property in the bt_stack.conf file. The property name is "SmpFailureCase". The values 2 to 6(inclusive), are forcausing SMP failures with various failure reasons. Failure case 1 and 9 are for producing error "Confirm value failure". Cases 7 and 8 are for generating specific errors at pair cancel. Note: The default use of this feature is controlled using a compile time flag BTM_BLE_SMP_CERTIFICATION. The BTM_BLE_SMP_CERTIFICATION = TRUE is needed only while we wait for the PTS support for the LE Secure connections. Bug: 27852645 Change-Id: I1f7a8ff2659d85b5978b75870c57162a34d394d0 (cherry picked from commit 0bd0c8fc88a7141691a7ca839b11cb711945ee33)
/system/bt/include/stack_config.h
|
807268aca9eb541fbca9b11b4220ec706025c040 |
|
12-Mar-2016 |
Nitin Arora <niarora@codeaurora.org> |
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
/system/bt/include/stack_config.h
|
f4cb73aeb0878b7b49c7e60298ec004150cc3b91 |
|
11-Mar-2016 |
Nitin Arora <niarora@codeaurora.org> |
PTS: Avoid BR SDP after LE pairing Use Case: Certification test case requiring LE secure pairing with PTS. Test Case: TP/SCJW/BV-01-C Failure: While pairing with PTS for certification test cases, LE secure pairing followed by BR/EDR cross key derivation results in the host initiating the SDP to gather the remote BR/EDR services. PTS considers it as a test failure. Fix: Added run time flag in bt_stack.conf file "PTS_DisableSDPOnLEPair" to disable the SDP immidiately after LE pairing followed by cross key derivation. Bug: 27852645 Change-Id: Ib5a05c47b99c2ef8256967a608ae9ebbdfba60ee
/system/bt/include/stack_config.h
|
d129b9430042a81c20cb21ad54657695b77dfb9e |
|
11-Jun-2015 |
Nitin Arora <niarora@codeaurora.org> |
PTS: Allow disabling connection updates Use Case: Certification test case requiring LE secure pairing with PTS. Failure: LE pairing test cases follow the host behavior where connection parameters are switched to fast parameters for SMP and service discovery and switched back to the default values after SMP/LE discovery is complete. PTS disconnects to these series of connection updates. Fix: This change disables connection updates based on run time flag "PTS_DisableConnUpdates" fetched from bt_stack.conf Bug: 27852645 Change-Id: I1da213fd143ccfcb0ac82c7049a94094d2716ff1
/system/bt/include/stack_config.h
|
9e44d4c3b73a28dfd635a5d45b8b552025feb7a6 |
|
11-Mar-2016 |
Nitin Arora <niarora@codeaurora.org> |
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
/system/bt/include/stack_config.h
|
7d3b077d19eab0a95b2566fa343560dd896ad7f3 |
|
05-May-2016 |
Myles Watson <mylesgw@google.com> |
Allow C++ code to check bt_stack_config options Stack configuration options are parsed in C. Bug: 28485365 Change-Id: I046ef5c676256a8da23bf8c0a7d1eeb1e9603c05
/system/bt/include/stack_config.h
|
b19b7b6ce5bd492671086568fef06ccef446cd6e |
|
24-Sep-2015 |
Pavlin Radoslavov <pavlin@google.com> |
GKI cleanup - Moved GKI_get_os_tick_count() to OSI * Renamed function GKI_get_os_tick_count() to time_get_os_boottime_ms() and moved it to the OSI module: to the new file osi/src/time.c . The corresponding header file is osi/include/time.h * Added unit tests for function time_get_os_boottime_ms() in file osi/test/time_test.cpp * Removed "osi/include" from the list of paths to search for include files. This is needed, because file name collision of "time.h" in osi/include and the system <time.h> Change-Id: I934be0c8f392150a352947326546bcf8aa070f97
/system/bt/include/stack_config.h
|
04bb236d873005ccb5950cb8e8f1f348499e032e |
|
04-Mar-2015 |
Zach Johnson <zachoverflow@google.com> |
Reinstate btsnoop last log saving Waited for the merge to complete before reworking the feature into the stack.
/system/bt/include/stack_config.h
|
06ef205ebcb0d3f0fe2b88ddcea73e646981940e |
|
07-Nov-2014 |
Sharvil Nanavati <sharvil@google.com> |
Update module names to not use C preprocessor and to be at top of headers.
/system/bt/include/stack_config.h
|
9891f32471b5c01cf58e4d7dadb04cb3024a9a88 |
|
23-Sep-2014 |
Zach Johnson <zachoverflow@google.com> |
Refactor btsnoop and stack config into modules Moves stack config out of the combined bte_config, and into its own module. Makes btsnoop more self sufficient and removes uneccessary levels of indirection. Refactor logging slightly into a (temporary) module to disassociate from the direct calls from config. Eliminates some useless stuff in the module as well.
/system/bt/include/stack_config.h
|