advertising: parse_secondary: fix mask value
authorChristian Eggers <ceggers@arri.de>
Fri, 23 Sep 2022 14:55:55 +0000 (16:55 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
commit8f735183bf44816cb4351a2e6956ff393fd00315
tree9a0def2774546f543ac3a00d4d747759e8ba31de
parent4db18bd233e1bd652c4ff5646d8f8ab5914e552d
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.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/advertising.c