ng_hci_cmds.c (139823) | ng_hci_cmds.c (243882) |
---|---|
1/* 2 * ng_hci_cmds.c 3 */ 4 5/*- 6 * Copyright (c) Maksim Yevmenkin <m_evmenkin@yahoo.com> 7 * All rights reserved. 8 * --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * $Id: ng_hci_cmds.c,v 1.4 2003/09/08 18:57:51 max Exp $ | 1/* 2 * ng_hci_cmds.c 3 */ 4 5/*- 6 * Copyright (c) Maksim Yevmenkin <m_evmenkin@yahoo.com> 7 * All rights reserved. 8 * --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * $Id: ng_hci_cmds.c,v 1.4 2003/09/08 18:57:51 max Exp $ |
31 * $FreeBSD: head/sys/netgraph/bluetooth/hci/ng_hci_cmds.c 139823 2005-01-07 01:45:51Z imp $ | 31 * $FreeBSD: head/sys/netgraph/bluetooth/hci/ng_hci_cmds.c 243882 2012-12-05 08:04:20Z glebius $ |
32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/kernel.h> 37#include <sys/endian.h> 38#include <sys/malloc.h> 39#include <sys/mbuf.h> --- 73 unchanged lines hidden (view full) --- 113 */ 114 115 m0 = NG_BT_MBUFQ_FIRST(&unit->cmdq); 116 if (m0 == NULL) 117 return (0); 118 119 ng_hci_mtap(unit, m0); 120 | 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/kernel.h> 37#include <sys/endian.h> 38#include <sys/malloc.h> 39#include <sys/mbuf.h> --- 73 unchanged lines hidden (view full) --- 113 */ 114 115 m0 = NG_BT_MBUFQ_FIRST(&unit->cmdq); 116 if (m0 == NULL) 117 return (0); 118 119 ng_hci_mtap(unit, m0); 120 |
121 m = m_dup(m0, M_DONTWAIT); | 121 m = m_dup(m0, M_NOWAIT); |
122 if (m != NULL) 123 NG_SEND_DATA_ONLY(error, unit->drv, m); 124 else 125 error = ENOBUFS; 126 127 if (error != 0) 128 NG_HCI_ERR( 129"%s: %s - could not send HCI command, error=%d\n", --- 771 unchanged lines hidden --- | 122 if (m != NULL) 123 NG_SEND_DATA_ONLY(error, unit->drv, m); 124 else 125 error = ENOBUFS; 126 127 if (error != 0) 128 NG_HCI_ERR( 129"%s: %s - could not send HCI command, error=%d\n", --- 771 unchanged lines hidden --- |