FreeBSD/usr.sbin/bluetooth/hccontrol/node.c
/* Send Write_Debug_Level command to the node */
Send Write_Debug_Level command to the node
Send Write_Debug_Level command to the node
static int
hci_write_debug_level(int s, int argc, char **argv)
{
	struct ng_btsocket_hci_raw_node_debug	r;
	memset(&r, 0, sizeof(r));
	switch (argc) {
	case 1:
		r.debug = atoi(argv[0]);
		break;
	default:
		return (USAGE);
	}
	if (ioctl(s, SIOC_HCI_RAW_NODE_SET_DEBUG, &r, sizeof(r)) < 0)
		return (ERROR);
	return (OK);
}
static int hci_write_debug_level ( int s , int argc , char * * argv ) { struct ng_btsocket_hci_raw_node_debug r ; memset ( & r , 0 , sizeof ( r ) ) ; switch ( argc ) { case 1 : r . debug = atoi ( argv [ 0 ] ) ; break ; default : return ( USAGE ) ; } if ( ioctl ( s , SIOC_HCI_RAW_NODE_SET_DEBUG , & r , sizeof ( r ) ) < 0 ) return ( ERROR ) ; return ( OK ) ; }
Send Write_Debug_Level command to the node
Send Write_Debug_Level command to the node