Skip to content

Commit b34b4eb

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 a6d033a commit b34b4eb

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
@@ -158,7 +158,7 @@ BT_GATT_SERVICE_DEFINE(BT_GATT_GAP_SVC_DEFAULT_NAME,
158158
#else
159159
BT_GATT_PERM_WRITE,
160160
#endif
161-
read_name, write_name, bt_dev.name),
161+
read_name, write_name, NULL),
162162
#else
163163
BT_GATT_CHARACTERISTIC(BT_UUID_GAP_DEVICE_NAME, BT_GATT_CHRC_READ,
164164
BT_GATT_PERM_READ, read_name, NULL, NULL),

0 commit comments

Comments
 (0)