advertising: parse_secondary: fix mask value

It looks like a wrong mask value is used here as only the bits mentioned
in adv_secondary::flag can be set again within the loop.

Replace magic number by preprocessor macro.
This commit is contained in:
Christian Eggers 2022-09-23 16:55:55 +02:00 committed by Luiz Augusto von Dentz
parent 47821c4731
commit 2e43278165

View File

@ -1051,7 +1051,7 @@ static bool parse_secondary(DBusMessageIter *iter,
return false; return false;
/* Reset secondary channels before parsing */ /* Reset secondary channels before parsing */
client->flags &= 0xfe00; client->flags &= ~MGMT_ADV_FLAG_SEC_MASK;
dbus_message_iter_get_basic(iter, &str); dbus_message_iter_get_basic(iter, &str);