mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
a2dp-forwarding: allow role switch, try to become master for incoming connections
This commit is contained in:
parent
c7cff81f23
commit
f6b24c1cd3
@ -586,6 +586,12 @@ int btstack_main(int argc, const char * argv[]){
|
||||
// assume Display and Yes/No buttons
|
||||
gap_ssp_set_io_capability(SSP_IO_CAPABILITY_DISPLAY_YES_NO);
|
||||
|
||||
// allow for role switches
|
||||
gap_set_default_link_policy_settings(LM_LINK_POLICY_ENABLE_ROLE_SWITCH);
|
||||
|
||||
// try to become master on incoming connections
|
||||
hci_set_master_slave_policy(0);
|
||||
|
||||
l2cap_init();
|
||||
sdp_init();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user