Bluetooth: include: Fix wrong docs We can't call function which used by static init veriable. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
diff --git a/include/bluetooth/bluetooth.h b/include/bluetooth/bluetooth.h index bb9cda3..92b67fe 100644 --- a/include/bluetooth/bluetooth.h +++ b/include/bluetooth/bluetooth.h
@@ -386,7 +386,7 @@ * The application can set the device name itself by including the * following in the advertising data. * @code - * BT_DATA(BT_DATA_NAME_COMPLETE, name, strlen(name)) + * BT_DATA(BT_DATA_NAME_COMPLETE, name, sizeof(name) - 1) * @endcode */ BT_LE_ADV_OPT_USE_NAME = BIT(3),