summaryrefslogtreecommitdiff
path: root/test/avtest.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-09-02 18:39:53 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2009-09-02 18:39:53 +0300
commitf69f1557190687dd721e47466008b37cb76ea9e5 (patch)
tree81c3e9ae84298e635839736dd721c1e40e5d66f2 /test/avtest.c
parent998b0976e28cd33cbfd2f71b6f27a162da6fe668 (diff)
Add "Invalid media transport" support to avtest
Diffstat (limited to 'test/avtest.c')
-rw-r--r--test/avtest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/avtest.c b/test/avtest.c
index 9e1ef99ab..52eaebab8 100644
--- a/test/avtest.c
+++ b/test/avtest.c
@@ -318,7 +318,7 @@ static void do_send(int sk, const bdaddr_t *src, const bdaddr_t *dst,
break;
case AVDTP_SET_CONFIGURATION:
- if (invalid)
+ if (preconf)
do_send(sk, src, dst, cmd, 0, 0);
hdr->message_type = AVDTP_MSG_TYPE_COMMAND;
hdr->packet_type = AVDTP_PKT_TYPE_SINGLE;
@@ -326,6 +326,8 @@ static void do_send(int sk, const bdaddr_t *src, const bdaddr_t *dst,
buf[2] = 1 << 2; /* ACP SEID */
buf[3] = 1 << 2; /* INT SEID */
memcpy(&buf[4], media_transport, sizeof(media_transport));
+ if (invalid)
+ buf[5] = 0x01; /* LOSC != 0 */
len = write(sk, buf, 4 + sizeof(media_transport));
break;