OSDN Git Service

tools/l2cap-tester: Fix passing correct psm to create_l2cap_sock()
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 24 Sep 2013 12:52:07 +0000 (15:52 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 Oct 2013 11:27:34 +0000 (14:27 +0300)
tools/l2cap-tester.c

index 2661633..3253275 100644 (file)
@@ -660,7 +660,7 @@ static void test_bredr_server(const void *test_data)
        int sk;
 
        if (l2data->server_psm) {
-               sk = create_l2cap_sock(data, 0x0001);
+               sk = create_l2cap_sock(data, l2data->server_psm);
                if (sk < 0) {
                        tester_test_failed();
                        return;