diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-09-02 18:58:24 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-09-02 18:59:04 +0300 |
commit | 386278a53f33279759ada15634ddb2530c17d708 (patch) | |
tree | 903e8b663a9ddff7772c4de1632d7cfcbaab98aa /test | |
parent | f69f1557190687dd721e47466008b37cb76ea9e5 (diff) | |
download | bluez-386278a53f33279759ada15634ddb2530c17d708.tar.gz |
Add avtest support for responding to AVDTP_SET_CONFIGURATION
Diffstat (limited to 'test')
-rw-r--r-- | test/avtest.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/avtest.c b/test/avtest.c index 52eaebab8..ceaad9499 100644 --- a/test/avtest.c +++ b/test/avtest.c @@ -196,6 +196,20 @@ static void process_sigchan(int sk, unsigned char reject) } break; + case AVDTP_SET_CONFIGURATION: + if (reject == AVDTP_SET_CONFIGURATION) { + hdr->message_type = AVDTP_MSG_TYPE_REJECT; + buf[2] = buf[4]; + buf[3] = 0x13; /* SEP In Use */ + printf("Rejecting set configuration command\n"); + len = write(sk, buf, 4); + } else { + hdr->message_type = AVDTP_MSG_TYPE_ACCEPT; + printf("Accepting set configuration command\n"); + len = write(sk, buf, 2); + } + break; + default: buf[1] = 0x00; printf("Unknown command\n"); |