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>
return false;
/* Reset secondary channels before parsing */
- client->flags &= 0xfe00;
+ client->flags &= ~MGMT_ADV_FLAG_SEC_MASK;
dbus_message_iter_get_basic(iter, &str);