Lines Matching +full:data +full:- +full:role
1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40 /* Send Role Discovery to the unit */
78 fprintf(stdout, "Role: %s [%#x]\n", in hci_role_discovery()
79 (rp.role == NG_HCI_ROLE_MASTER)? "Master" : "Slave", rp.role); in hci_role_discovery()
84 /* Send Switch Role to the unit */
103 memcpy(&cp.bdaddr, he->h_addr, sizeof(cp.bdaddr)); in hci_switch_role()
106 /* role */ in hci_switch_role()
110 cp.role = n0? NG_HCI_ROLE_SLAVE : NG_HCI_ROLE_MASTER; in hci_switch_role()
137 if (e->event == NG_HCI_EVENT_ROLE_CHANGE) { in hci_switch_role()
140 if (ep->status != 0x00) { in hci_switch_role()
142 hci_status2str(ep->status), ep->status); in hci_switch_role()
146 fprintf(stdout, "BD_ADDR: %s\n", hci_bdaddr2str(&ep->bdaddr)); in hci_switch_role()
147 fprintf(stdout, "Role: %s [%#x]\n", in hci_switch_role()
148 (ep->role == NG_HCI_ROLE_MASTER)? "Master" : "Slave", in hci_switch_role()
149 ep->role); in hci_switch_role()
250 "which role the device is performing for a particular Connection Handle.\n" \
252 "\t<connection_handle> - dddd; connection handle",
256 "switch_role <BD_ADDR> <role>",
258 "current role the device is performing for a particular connection with\n" \
260 "for which connection the role switch is to be performed. The Role indicates\n"\
261 "the requested new role that the local device performs. Note: the BD_ADDR\n" \
264 "\t<BD_ADDR> - xx:xx:xx:xx:xx:xx BD_ADDR or name\n" \
265 "\t<role> - dd; role; 0 - Master, 1 - Slave",
273 "determines itself to change the master-slave role or to enter the hold,\n" \
279 "\t<connection_handle> - dddd; connection handle",
287 "determines itself to change the master-slave role or to enter the hold,\n" \
295 "\t<connection_handle> - dddd; connection handle\n" \
296 "\t<settings> - xxxx; settings\n" \
297 "\t\t0x0000 - Disable All LM Modes (Default)\n" \
298 "\t\t0x0001 - Enable Master Slave Switch\n" \
299 "\t\t0x0002 - Enable Hold Mode\n" \
300 "\t\t0x0004 - Enable Sniff Mode\n" \
301 "\t\t0x0008 - Enable Park Mode\n",