Avoid multiple definitions of the same value.
---
attrib/att.h | 2 --
src/device.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/attrib/att.h b/attrib/att.h
index 613a018ba2c6..8d6ca5930859 100644
--- a/attrib/att.h
+++ b/attrib/att.h
@@ -71,8 +71,6 @@
#define ATT_DEFAULT_L2CAP_MTU 48
#define ATT_DEFAULT_LE_MTU 23
-#define ATT_PSM 31
-
/* Flags for Execute Write Request Operation */
#define ATT_CANCEL_ALL_PREP_WRITES 0x00
#define ATT_WRITE_ALL_PREP_WRITES 0x01
diff --git a/src/device.c b/src/device.c
index 2efbc1e148a8..0ef7dcc244d2 100644
--- a/src/device.c
+++ b/src/device.c
@@ -6097,7 +6097,7 @@ static void search_cb(sdp_list_t *recs, int err, gpointer user_data)
primaries = device_services_from_record(device, req->profiles_added);
if (primaries)
- device_register_primaries(device, primaries, ATT_PSM);
+ device_register_primaries(device, primaries, BT_ATT_PSM);
/*
* TODO: The btd_service instances for GATT services need to be
--
2.51.0