Skip to content

Commit 47420b3

Browse files
committed
Bluetooth: gap_svc_default: Set user_data for name characteristic to NULL
Set the unused argument of the name characteristic to NULL. This removes the reference from GAP service to the hci_core. Signed-off-by: Radosław Koppel <[email protected]>
1 parent c8662a9 commit 47420b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/services/gap_svc_default.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ BT_GATT_SERVICE_DEFINE(BT_GATT_GAP_SVC_DEFAULT_NAME,
157157
#else
158158
BT_GATT_PERM_WRITE,
159159
#endif
160-
read_name, write_name, bt_dev.name),
160+
read_name, write_name, NULL),
161161
#else
162162
BT_GATT_CHARACTERISTIC(BT_UUID_GAP_DEVICE_NAME, BT_GATT_CHRC_READ,
163163
BT_GATT_PERM_READ, read_name, NULL, NULL),

0 commit comments

Comments
 (0)