Deleted Added
full compact
ng_hci_cmds.c (107120) ng_hci_cmds.c (109623)
1/*
2 * ng_hci_cmds.c
3 *
4 * Copyright (c) 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: ng_hci_cmds.c,v 1.22 2002/10/30 00:18:18 max Exp $
1/*
2 * ng_hci_cmds.c
3 *
4 * Copyright (c) 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: ng_hci_cmds.c,v 1.22 2002/10/30 00:18:18 max Exp $
29 * $FreeBSD: head/sys/netgraph/bluetooth/hci/ng_hci_cmds.c 107120 2002-11-20 23:01:59Z julian $
29 * $FreeBSD: head/sys/netgraph/bluetooth/hci/ng_hci_cmds.c 109623 2003-01-21 08:56:16Z alfred $
30 */
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/endian.h>
36#include <sys/malloc.h>
37#include <sys/mbuf.h>

--- 73 unchanged lines hidden (view full) ---

111 */
112
113 m0 = NG_BT_MBUFQ_FIRST(&unit->cmdq);
114 if (m0 == NULL)
115 return (0);
116
117 ng_hci_mtap(unit, m0);
118
30 */
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/endian.h>
36#include <sys/malloc.h>
37#include <sys/mbuf.h>

--- 73 unchanged lines hidden (view full) ---

111 */
112
113 m0 = NG_BT_MBUFQ_FIRST(&unit->cmdq);
114 if (m0 == NULL)
115 return (0);
116
117 ng_hci_mtap(unit, m0);
118
119 m = m_dup(m0, M_DONTWAIT);
119 m = m_dup(m0, M_NOWAIT);
120 if (m != NULL)
121 NG_SEND_DATA_ONLY(error, unit->drv, m);
122 else
123 error = ENOBUFS;
124
125 if (error != 0)
126 NG_HCI_ERR(
127"%s: %s - could not send HCI command, error=%d\n",

--- 760 unchanged lines hidden ---
120 if (m != NULL)
121 NG_SEND_DATA_ONLY(error, unit->drv, m);
122 else
123 error = ENOBUFS;
124
125 if (error != 0)
126 NG_HCI_ERR(
127"%s: %s - could not send HCI command, error=%d\n",

--- 760 unchanged lines hidden ---