avs_mtk_voice/meta/meta-mediatek-aud/recipes-connectivity/dibbler/dibbler/0001-DNSQ.patch

46 lines
1.4 KiB
Diff

From a17aebef759971761b4bb5796f3766dd3b704890 Mon Sep 17 00:00:00 2001
From: ruibin zhang <ruibin.zhang@mediatek.com>
Date: Thu, 30 Aug 2018 17:34:23 +0800
Subject: [PATCH] DNSQ
---
ClntMessages/ClntMsg.cpp | 4 +++-
Messages/Msg.cpp | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ClntMessages/ClntMsg.cpp b/ClntMessages/ClntMsg.cpp
index 84c9c5de..c4dd630e 100644
--- a/ClntMessages/ClntMsg.cpp
+++ b/ClntMessages/ClntMsg.cpp
@@ -805,7 +805,9 @@ bool TClntMsg::check(bool clntIDmandatory, bool srvIDmandatory) {
*/
void TClntMsg::answer(SPtr<TClntMsg> reply)
{
- SPtr<TOptDUID> ptrDUID = getServerID();
+ Log(Warning) << "ZRB answer." << LogEnd;
+
+ SPtr<TOptDUID> ptrDUID = reply->getServerID();
if (!ptrDUID) {
Log(Warning) << "Received REPLY message without SERVER ID option. Message ignored." << LogEnd;
return;
diff --git a/Messages/Msg.cpp b/Messages/Msg.cpp
index 00f887a7..95650b95 100644
--- a/Messages/Msg.cpp
+++ b/Messages/Msg.cpp
@@ -212,9 +212,11 @@ void TMsg::calculateDigests(char* buffer, size_t len) {
SPtr<TOpt> TMsg::getOption(int type) const {
TOptList::const_iterator opt;
- for (opt = Options.begin(); opt!=Options.end(); ++opt)
+ for (opt = Options.begin(); opt!=Options.end(); ++opt) {
+ Log(Warning) << (*opt)->getOptType() << LogEnd;
if ( (*opt)->getOptType()==type)
return *opt;
+ }
return SPtr<TOpt>();
}
--
2.12.5