mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 16:24:28 +08:00
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:
parent
47821c4731
commit
2e43278165
@ -1051,7 +1051,7 @@ static bool parse_secondary(DBusMessageIter *iter,
|
||||
return false;
|
||||
|
||||
/* Reset secondary channels before parsing */
|
||||
client->flags &= 0xfe00;
|
||||
client->flags &= ~MGMT_ADV_FLAG_SEC_MASK;
|
||||
|
||||
dbus_message_iter_get_basic(iter, &str);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user