aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-04-18 14:15:50 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-04-18 14:17:51 +0300
commite61df1600a09334beab122a9580161ae1fabdca5 (patch)
treeae99214c2567228895f560ea3c510e872e43e0e1
parentd07fdd947aac325c73b17e532cab1e69d523a4ce (diff)
downloadbluez-e61df1600a09334beab122a9580161ae1fabdca5.tar.gz
bluez-e61df1600a09334beab122a9580161ae1fabdca5.tar.xz
bluez-e61df1600a09334beab122a9580161ae1fabdca5.zip
audio: Fix AVDTP Reconfigure Reject message
The specification describes a proper reject response to AVDTP_Reconfigure, so the previously used unknown command response is not correct.
-rw-r--r--audio/avdtp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 327b76f4..34d49d20 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1633,7 +1633,13 @@ failed:
static gboolean avdtp_reconf_cmd(struct avdtp *session, uint8_t transaction,
struct seid_req *req, int size)
{
- return avdtp_unknown_cmd(session, transaction, AVDTP_RECONFIGURE);
+ struct conf_rej rej;
+
+ rej.error = AVDTP_NOT_SUPPORTED_COMMAND;
+ rej.category = 0x00;
+
+ return avdtp_send(session, transaction, AVDTP_MSG_TYPE_REJECT,
+ AVDTP_RECONFIGURE, &rej, sizeof(rej));
}
static gboolean avdtp_open_cmd(struct avdtp *session, uint8_t transaction,