summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2015-11-16 12:22:46 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2015-11-16 12:22:46 +0200
commit04f68f5418beb960ee97588437576012ce916e8c (patch)
tree22fec59238755cabc4282614587d0274668d335d /tools
parentdd64e9f908bbb980aea34362bcce0560eaaed58c (diff)
downloadbluez-04f68f5418beb960ee97588437576012ce916e8c.tar.gz
emulator: Return raw LE scan_enable value
This is more future proof (in case other values besides 0x00/0x01 are introduced) and consistent with a similar BR/EDR API that will be added soon.
Diffstat (limited to 'tools')
-rw-r--r--tools/l2cap-tester.c6
-rw-r--r--tools/mgmt-tester.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c
index c16312d5c..945f82caf 100644
--- a/tools/l2cap-tester.c
+++ b/tools/l2cap-tester.c
@@ -1305,7 +1305,7 @@ static gboolean test_close_socket_1_part_3(gpointer arg)
return FALSE;
}
- if (hciemu_is_master_le_scan_enabled(data->hciemu)) {
+ if (hciemu_get_master_le_scan_enable(data->hciemu)) {
tester_print("Delayed check whether scann is off failed");
tester_test_failed();
return FALSE;
@@ -1326,7 +1326,7 @@ static gboolean test_close_socket_1_part_2(gpointer args)
* was added to kernel whitelist, and scan was started. We
* should be still scanning.
*/
- if (!hciemu_is_master_le_scan_enabled(data->hciemu)) {
+ if (!hciemu_get_master_le_scan_enable(data->hciemu)) {
tester_print("Error - should be still scanning");
tester_test_failed();
return FALSE;
@@ -1353,7 +1353,7 @@ static gboolean test_close_socket_2_part_3(gpointer arg)
int err;
/* Scan should be already over, we're trying to create connection */
- if (hciemu_is_master_le_scan_enabled(data->hciemu)) {
+ if (hciemu_get_master_le_scan_enable(data->hciemu)) {
tester_print("Error - should no longer scan");
tester_test_failed();
return FALSE;
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index b22454376..d5917756f 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -5848,7 +5848,7 @@ static void check_scan(void *user_data)
{
struct test_data *data = tester_get_data();
- if (hciemu_is_master_le_scan_enabled(data->hciemu)) {
+ if (hciemu_get_master_le_scan_enable(data->hciemu)) {
tester_warn("LE scan still enabled");
tester_test_failed();
return;