diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-09-02 19:03:37 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-09-02 19:03:37 +0300 |
commit | d3eb02475c303a3930cec4b811fe31f38ae7536f (patch) | |
tree | 17a7a9761739961bad6c33be811e050a2c6939e1 /test/avtest.c | |
parent | 386278a53f33279759ada15634ddb2530c17d708 (diff) |
Add avtest support for responding to AVDTP_GET_CONFIGURATION
Diffstat (limited to 'test/avtest.c')
-rw-r--r-- | test/avtest.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/avtest.c b/test/avtest.c index ceaad9499..77e482aca 100644 --- a/test/avtest.c +++ b/test/avtest.c @@ -210,6 +210,19 @@ static void process_sigchan(int sk, unsigned char reject) } break; + case AVDTP_GET_CONFIGURATION: + if (reject == AVDTP_GET_CONFIGURATION) { + hdr->message_type = AVDTP_MSG_TYPE_REJECT; + buf[2] = 0x12; /* Bad ACP SEID */ + printf("Rejecting get configuration command\n"); + len = write(sk, buf, 3); + } else { + hdr->message_type = AVDTP_MSG_TYPE_ACCEPT; + printf("Accepting get configuration command\n"); + len = write(sk, buf, 2); + } + break; + default: buf[1] = 0x00; printf("Unknown command\n"); |