link_control.c (162529) | link_control.c (250460) |
---|---|
1/* 2 * link_control.c 3 * 4 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * $Id: link_control.c,v 1.4 2003/08/18 19:19:54 max Exp $ | 1/* 2 * link_control.c 3 * 4 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * $Id: link_control.c,v 1.4 2003/08/18 19:19:54 max Exp $ |
29 * $FreeBSD: head/usr.sbin/bluetooth/hccontrol/link_control.c 162529 2006-09-21 17:16:37Z emax $ | 29 * $FreeBSD: head/usr.sbin/bluetooth/hccontrol/link_control.c 250460 2013-05-10 16:41:26Z eadler $ |
30 */ 31 32#include <bluetooth.h> 33#include <errno.h> 34#include <stdio.h> 35#include <string.h> 36#include "hccontrol.h" 37 --- 314 unchanged lines hidden (view full) --- 352 fprintf(stdout, "Connection handle: %d\n", 353 le16toh(ep->con_handle)); 354 fprintf(stdout, "Reason: %s [%#02x]\n", 355 hci_status2str(ep->reason), ep->reason); 356 } else 357 goto again; 358 359 return (OK); | 30 */ 31 32#include <bluetooth.h> 33#include <errno.h> 34#include <stdio.h> 35#include <string.h> 36#include "hccontrol.h" 37 --- 314 unchanged lines hidden (view full) --- 352 fprintf(stdout, "Connection handle: %d\n", 353 le16toh(ep->con_handle)); 354 fprintf(stdout, "Reason: %s [%#02x]\n", 355 hci_status2str(ep->reason), ep->reason); 356 } else 357 goto again; 358 359 return (OK); |
360} /* hci_diconnect */ | 360} /* hci_disconnect */ |
361 362/* Send Add_SCO_Connection command to the unit */ 363static int 364hci_add_sco_connection(int s, int argc, char **argv) 365{ 366 int n; 367 char b[512]; 368 ng_hci_add_sco_con_cp cp; --- 592 unchanged lines hidden --- | 361 362/* Send Add_SCO_Connection command to the unit */ 363static int 364hci_add_sco_connection(int s, int argc, char **argv) 365{ 366 int n; 367 char b[512]; 368 ng_hci_add_sco_con_cp cp; --- 592 unchanged lines hidden --- |