Lines Matching refs:settings
546 tBTM_PM_PWR_MD settings; in BTM_SwitchRole() local
593 memset((void*)&settings, 0, sizeof(settings)); in BTM_SwitchRole()
594 settings.mode = BTM_PM_MD_ACTIVE; in BTM_SwitchRole()
595 status = BTM_SetPowerMode(BTM_PM_SET_ONLY_ID, p->remote_addr, &settings); in BTM_SwitchRole()
721 void check_link_policy(uint16_t* settings) { in check_link_policy() argument
724 if ((*settings & HCI_ENABLE_MASTER_SLAVE_SWITCH) && in check_link_policy()
726 *settings &= (~HCI_ENABLE_MASTER_SLAVE_SWITCH); in check_link_policy()
727 BTM_TRACE_API("switch not supported (settings: 0x%04x)", *settings); in check_link_policy()
729 if ((*settings & HCI_ENABLE_HOLD_MODE) && in check_link_policy()
731 *settings &= (~HCI_ENABLE_HOLD_MODE); in check_link_policy()
732 BTM_TRACE_API("hold not supported (settings: 0x%04x)", *settings); in check_link_policy()
734 if ((*settings & HCI_ENABLE_SNIFF_MODE) && in check_link_policy()
736 *settings &= (~HCI_ENABLE_SNIFF_MODE); in check_link_policy()
737 BTM_TRACE_API("sniff not supported (settings: 0x%04x)", *settings); in check_link_policy()
739 if ((*settings & HCI_ENABLE_PARK_MODE) && in check_link_policy()
741 *settings &= (~HCI_ENABLE_PARK_MODE); in check_link_policy()
742 BTM_TRACE_API("park not supported (settings: 0x%04x)", *settings); in check_link_policy()
755 uint16_t* settings) { in BTM_SetLinkPolicy() argument
760 if (*settings != HCI_DISABLE_ALL_LM_MODES) { in BTM_SetLinkPolicy()
761 check_link_policy(settings); in BTM_SetLinkPolicy()
766 btsnd_hcic_write_policy_set(p->hci_handle, *settings); in BTM_SetLinkPolicy()
784 void BTM_SetDefaultLinkPolicy(uint16_t settings) { in BTM_SetDefaultLinkPolicy() argument
785 BTM_TRACE_DEBUG("BTM_SetDefaultLinkPolicy setting:0x%04x", settings); in BTM_SetDefaultLinkPolicy()
787 check_link_policy(&settings); in BTM_SetDefaultLinkPolicy()
788 btm_cb.btm_def_link_policy = settings; in BTM_SetDefaultLinkPolicy()
789 BTM_TRACE_DEBUG("Set DefaultLinkPolicy:0x%04x", settings); in BTM_SetDefaultLinkPolicy()
792 btsnd_hcic_write_def_policy_set(settings); in BTM_SetDefaultLinkPolicy()