From b224aaf26ae97570f811f5105dc7de2046f72ab3 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 16 Jan 2013 16:51:30 +0200 Subject: [PATCH] tools: Fix test for unset settings in mgmt-tester --- tools/mgmt-tester.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index dbf1e1202..abd840c3f 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -888,7 +888,7 @@ static void command_generic_new_settings_alt(uint16_t index, uint16_t length, tester_print("New settings 0x%08x received", settings); if (test->expect_settings_unset) { - if ((settings & ~test->expect_settings_unset) != 0) + if ((settings & test->expect_settings_unset) != 0) return; goto done; } -- 2.47.3