diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-09-02 17:44:40 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-09-02 17:44:40 +0300 |
commit | 146188ce10ca20537dacd1c0c61adddb21e6e288 (patch) | |
tree | 6dad21c229433522078866f56e80a90aed85c8c7 /test/avtest.c | |
parent | 58f8fe54f027af0f980848f05534e4f143995c2e (diff) |
Add avtest support for arbitrary commands
This is useful e.g. invalid signal identifier AVDTP tests.
Diffstat (limited to 'test/avtest.c')
-rw-r--r-- | test/avtest.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/avtest.c b/test/avtest.c index fb9d94acc..9e1ef99ab 100644 --- a/test/avtest.c +++ b/test/avtest.c @@ -390,6 +390,13 @@ static void do_send(int sk, const bdaddr_t *src, const bdaddr_t *dst, buf[2] = 1 << 2; /* ACP SEID */ len = write(sk, buf, 3); break; + + default: + hdr->message_type = AVDTP_MSG_TYPE_COMMAND; + hdr->packet_type = AVDTP_PKT_TYPE_SINGLE; + hdr->signal_id = cmd; + len = write(sk, buf, 2); + break; } len = read(sk, buf, sizeof(buf)); |