Commit e43e524
committed
Bluetooth: Host: Deprecate old Bluetooth device name APIs
The following Kconfig APIs are deprecated:
- `CONFIG_BT_DEVICE_NAME`
- `CONFIG_BT_DEVICE_DYNAMIC`
- `CONFIG_BT_DEVICE_NAME_MAX`
The following C APIs are deprecated:
- `bt_get_name()`
- `bt_set_name()`
They are deprecated because the current APIs are not thread safe and can
be confusing.
The Kconfig APIs are replaced by the `BT_GAP_DEVICE_NAME_TYPE` choice.
When selecting `CONFIG_BT_GAP_DEVICE_NAME_STATIC`, the name must be set
using `CONFIG_BT_GAP_DEVICE_NAME`.
When selecting `CONFIG_BT_GAP_DEVICE_NAME_DYNAMIC`, the GAP device name
must be set using `bt_gap_set_device_name()` and retrieved using
`bt_gap_get_device_name()`. The the maximum size of the GAP device name
can now be set using `CONFIG_BT_GAP_DEVICE_NAME_DYNAMIC_MAX`.
Signed-off-by: Théo Battrel <[email protected]>1 parent a6589d4 commit e43e524
File tree
3 files changed
+15
-5
lines changed- doc/releases
- include/zephyr/bluetooth
- subsys/bluetooth/host
3 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
102 | 111 | | |
103 | 112 | | |
104 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
| 865 | + | |
| 866 | + | |
866 | 867 | | |
867 | 868 | | |
868 | 869 | | |
869 | 870 | | |
870 | 871 | | |
871 | | - | |
| 872 | + | |
872 | 873 | | |
873 | 874 | | |
874 | 875 | | |
| |||
877 | 878 | | |
878 | 879 | | |
879 | 880 | | |
880 | | - | |
| 881 | + | |
881 | 882 | | |
882 | 883 | | |
883 | 884 | | |
| |||
0 commit comments