BluePad32 refuses to connect gamepads if CONFIG_BLUEPAD32_MAX_DEVICES=1 and CONFIG_BTDM_CTRL_BR_EDR_MAX_ACL_CONN=1
When building BluePad32 with
(1) BR/EDR ACL Max Connections
(0) BR/EDR Sync(SCO/eSCO) Max Connections
(1) Maximum of connected gamepads
it is unable to connect any gamepads with following debug output:
Device found: 70:20:84:48:DE:4D with COD: 0x002508, pageScan 1, clock offset 0x3c41, rssi 204 dBm, name 'Wireless Controller'
uni_bluetooth_process_fsm, bd addr:70:20:84:48:DE:4D, state: 4, incoming:0
uni_bluetooth_process_fsm: gamepad is 'Wireless Controller', starting SDP query
-----------> sdp_query_start()
Starting SDP VID/PID query for 70:20:84:48:DE:4D
Vendor ID: 0x0000 - Product ID: 0x0000
Device not detected (0x1f). Using generic driver.
uni_bluetooth_process_fsm, bd addr:70:20:84:48:DE:4D, state: 6, incoming:0
uni_bluetooth_process_fsm: querying HID descriptor
Starting SDP HID-descriptor query for 70:20:84:48:DE:4D
<----------- sdp_query_end()
uni_bluetooth_process_fsm, bd addr:70:20:84:48:DE:4D, state: 8, incoming:0
uni_bluetooth_process_fsm: Starting L2CAP connection
L2CAP_EVENT_CHANNEL_OPENED (channel=0x0043)
L2CAP Connection failed: 0x09.
Disconnecting/removing device: 70:20:84:48:DE:4D.
Device found: 70:20:84:48:DE:4D with COD: 0x002508, pageScan 1, clock offset 0x3c41, rssi 207 dBm, name 'Wireless Controller'
uni_bluetooth_process_fsm, bd addr:70:20:84:48:DE:4D, state: 4, incoming:0
uni_bluetooth_process_fsm: gamepad is 'Wireless Controller', starting SDP query
-----------> sdp_query_start()
Starting SDP VID/PID query for 70:20:84:48:DE:4D
Vendor ID: 0x0000 - Product ID: 0x0000
Device not detected (0x1f). Using generic driver.
uni_bluetooth_process_fsm, bd addr:70:20:84:48:DE:4D, state: 6, incoming:0
uni_bluetooth_process_fsm: querying HID descriptor
Starting SDP HID-descriptor query for 70:20:84:48:DE:4D
<----------- sdp_query_end()
uni_bluetooth_process_fsm, bd addr:70:20:84:48:DE:4D, state: 8, incoming:0
uni_bluetooth_process_fsm: Starting L2CAP connection
L2CAP_EVENT_CHANNEL_OPENED (channel=0x0046)
L2CAP Connection failed: 0x09.
Edited by BBsan