summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-09-02 15:55:34 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2009-09-02 15:55:34 +0300
commitb23423c119f0f0ee2aeee5f930534f6be3c493f6 (patch)
tree514f42ea0f816e840570c7c5063fc5e4ec01e66b /test
parentf9df9aa5484ad3f61b8ec5bf8bbca1806dba1854 (diff)
Add avtest support for GET_CONFIGURATION
Diffstat (limited to 'test')
-rw-r--r--test/avtest.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/avtest.c b/test/avtest.c
index fabc054c..12763ecf 100644
--- a/test/avtest.c
+++ b/test/avtest.c
@@ -322,6 +322,18 @@ static void do_send(int sk, unsigned char cmd, int invalid)
buf[12] = 0x02;
buf[13] = 0x33;
len = write(sk, buf, 14);
+ break;
+
+ case AVDTP_GET_CONFIGURATION:
+ hdr->message_type = AVDTP_MSG_TYPE_COMMAND;
+ hdr->packet_type = AVDTP_PKT_TYPE_SINGLE;
+ hdr->signal_id = AVDTP_GET_CONFIGURATION;
+ if (invalid)
+ buf[2] = 13 << 2; /* Invalid ACP SEID */
+ else
+ buf[2] = 1 << 2; /* Valid ACP SEID */
+ len = write(sk, buf, 3);
+ break;
}
len = read(sk, buf, sizeof(buf));