Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] android/tester: Fix wrong check
@ 2014-12-22 11:37 Andrei Emeltchenko
  2014-12-22 12:57 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Andrei Emeltchenko @ 2014-12-22 11:37 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

Fixes typo mixing exp_inst with rec_inst.
---
 android/tester-main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/android/tester-main.c b/android/tester-main.c
index 8b6a117..336a9a8 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
@@ -507,14 +507,14 @@ static bool match_mas_inst(btmce_mas_instance_t *exp_inst,
 		return 0;
 	}
 
-	if (exp_inst->scn && (exp_inst->scn != exp_inst->scn)) {
+	if (exp_inst->scn && (exp_inst->scn != rec_inst->scn)) {
 		tester_debug("MAS inst. [%d] scn missmatch %d vs %d", inst_num,
 						rec_inst->scn, exp_inst->scn);
 		return 0;
 	}
 
 	if (exp_inst->msg_types &&
-			(exp_inst->msg_types != exp_inst->msg_types)) {
+			(exp_inst->msg_types != rec_inst->msg_types)) {
 		tester_debug("Mas inst. [%d] mesg type missmatch %d vs %d",
 					inst_num, rec_inst->scn, exp_inst->scn);
 		return 0;
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-22 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-22 11:37 [PATCH] android/tester: Fix wrong check Andrei Emeltchenko
2014-12-22 12:57 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox