OSDN Git Service

tools/l2cap-tester: Make setup_powered_server() enable LE advertising when necessary
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 24 Sep 2013 13:11:00 +0000 (16:11 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 Oct 2013 11:27:49 +0000 (14:27 +0300)
tools/l2cap-tester.c

index 706da5e..802c0e4 100644 (file)
@@ -400,6 +400,8 @@ static void setup_powered_server(const void *test_data)
        } else {
                mgmt_send(data->mgmt, MGMT_OP_SET_LE, data->mgmt_index,
                                sizeof(param), param, NULL, NULL, NULL);
+               mgmt_send(data->mgmt, MGMT_OP_SET_ADVERTISING, data->mgmt_index,
+                               sizeof(param), param, NULL, NULL, NULL);
        }
 
        mgmt_send(data->mgmt, MGMT_OP_SET_POWERED, data->mgmt_index,