diff --git a/src/adapter.c b/src/adapter.c
index 71de9e8..f119768 100644
--- a/src/adapter.c
+++ b/src/adapter.c
return true;
/* Reset discoverable filter if already set */
- if (enable && (adapter->current_settings & MGMT_OP_SET_DISCOVERABLE))
+ if (enable && (adapter->current_settings & MGMT_SETTING_DISCOVERABLE))
return true;
adapter->discovery_discoverable = enable;
/* Only attempt to overwrite current discoverable setting when not
* discoverable.
*/
- if (!(adapter->current_settings & MGMT_OP_SET_DISCOVERABLE)) {
+ if (!(adapter->current_settings & MGMT_SETTING_DISCOVERABLE)) {
GSList *l;
for (l = adapter->discovery_list; l; l = g_slist_next(l)) {