zephyr/include/bluetooth
Johan Hedberg df4220b213 Bluetooth: L2CAP: Add support for dynamically allocated PSM values
The Bluetooth core specification splits the valid LE L2CAP PSM range
into two subranges:

 - Standard, SIG-assigned fixed PSM values in the range 0x0001-0x007f
 - Dynamic, allocated at runtime in the range 0x0080-0x00ff

Previously the bt_l2cap_server_register() API was assuming that the
app would always decide the PSM, which effectively made it impossible
to have collision-free dynamic PSMs. This patch extends the
implementation so that if server->psm is 0, then the stack will look
for a free PSM from the dynamic range and take it into use.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2018-05-18 12:39:58 +03:00
..
mesh Bluetooth: Mesh: Expose bt_mesh_is_provisioned() publicly 2018-05-16 18:00:19 +03:00
a2dp-codec.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
a2dp.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
att.h Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
avdtp.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
bluetooth.h Bluetooth: Introduce new bt_set_id_addr() API 2018-05-10 22:39:04 +02:00
buf.h bt: Don't rely on 'enum bt_buf_type' being 1 byte 2018-01-29 06:58:42 -08:00
conn.h doc: fix misspellings in include (API docs) 2017-08-10 12:22:19 -04:00
crypto.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
gatt.h Bluetooth: GATT: Fix documentation of bt_gatt_notify 2018-05-16 18:02:14 +03:00
hci_raw.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
hci_vs.h Bluetooth: VS: Replace IRK with IR 2017-08-17 12:36:51 +02:00
hci.h Bluetooth: Mesh: Switch to using Linux Foundation Company ID 2018-03-05 19:54:21 -05:00
hfp_hf.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
l2cap.h Bluetooth: L2CAP: Add support for dynamically allocated PSM values 2018-05-18 12:39:58 +03:00
mesh.h Bluetooth: Mesh: Remove unnecessary #ifdefs from header file 2018-05-02 15:45:16 +01:00
rfcomm.h Bluetooth: Move common code to common/ 2017-05-12 12:56:14 +03:00
sdp.h Bluetooth: UUID: Remove macros defining 16 bit values 2018-02-13 13:33:48 +02:00
testing.h Bluetooth: btp: Add event indicating expiration of incomp timer 2018-01-03 10:48:13 +01:00
uuid.h Bluetooth: UUID: Remove macros defining 16 bit values 2018-02-13 13:33:48 +02:00