OSDN Git Service

android/android-tester: Remove not necessary bthost_set_server_psm
authorMarcin Kraglak <marcin.kraglak@tieto.com>
Fri, 20 Dec 2013 10:53:46 +0000 (11:53 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 20 Dec 2013 11:02:32 +0000 (13:02 +0200)
Replace this function with bthost_add_l2cap_server().

android/android-tester.c

index aa0c155..5e60397 100644 (file)
@@ -1404,7 +1404,7 @@ static void test_socket_real_connect(const void *test_data)
 
        bdaddr2android((bdaddr_t *) client_bdaddr, &emu_bdaddr);
 
-       bthost_set_server_psm(bthost, 0x0003);
+       bthost_add_l2cap_server(bthost, 0x0003, NULL, NULL);
 
        status = data->if_sock->connect(&emu_bdaddr, test->sock_type,
                                        test->service_uuid, test->channel,