Bluetooth: controller: Ignore connections from same peer
Ignore connection indications from peers that are already connected. This is to bring the behavior of the controller in accordance with [5.2, Vol 6, Part B, 4.5 Connection state]: "If an advertiser receives a connection request from an initiator it is already connected to, it shall ignore that request." Signed-off-by: Wolfgang Puffitsch <wopu@demant.com>
This commit is contained in:
parent
1161c1dca9
commit
010c5c2f20
9 changed files with 160 additions and 26 deletions
|
@ -475,6 +475,18 @@ config BT_CTLR_CONN_RSSI_EVENT
|
|||
help
|
||||
Generate events for connection RSSI measurement.
|
||||
|
||||
config BT_CTLR_ALLOW_SAME_PEER_CONN
|
||||
bool "Allow connection requests from same peer"
|
||||
depends on BT_MAX_CONN > 1
|
||||
help
|
||||
Allow connection requests from the same peer. While the
|
||||
Bluetooth specification does not allow multiple connections
|
||||
with the same peer, allowing such connections is useful
|
||||
while debugging multiple connections.
|
||||
|
||||
WARNING: This option enables behavior that violates the Bluetooth
|
||||
specification.
|
||||
|
||||
endif # BT_CONN
|
||||
|
||||
config BT_CTLR_ADV_INDICATION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue