FreeBSD/usr.sbin/bluetooth/hccontrol/node.c
/* Send Read_Node_Link_Policy_Settings_Mask command to the node */
Send Read_Node_Link_Policy_Settings_Mask command to the node
Send Read_Node_Link_Policy_Settings_Mask command to the node
int
hci_read_node_link_policy_settings_mask(int s, int argc, char **argv)
{
	struct ng_btsocket_hci_raw_node_link_policy_mask	r;
	memset(&r, 0, sizeof(r));
	if (ioctl(s, SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK, &r, sizeof(r)) < 0)
		return (ERROR);
	fprintf(stdout, "Link Policy Settings mask: %#04x\n", r.policy_mask);
	return (OK);
}
int hci_read_node_link_policy_settings_mask ( int s , int argc , char * * argv ) { struct ng_btsocket_hci_raw_node_link_policy_mask r ; memset ( & r , 0 , sizeof ( r ) ) ; if ( ioctl ( s , SIOC_HCI_RAW_NODE_GET_LINK_POLICY_MASK , & r , sizeof ( r ) ) < 0 ) return ( ERROR ) ; fprintf ( stdout , " \n " , r . policy_mask ) ; return ( OK ) ; }
Send Read_Node_Link_Policy_Settings_Mask command to the node
Send Read_Node_Link_Policy_Settings_Mask command to the node