hci_ath.c (13df5000d39a1570a88daa44855ebe0b0f966b14) | hci_ath.c (2064ee332e4c1b7495cf68b84355c213d8fe71fd) |
---|---|
1/* 2 * Atheros Communication Bluetooth HCIATH3K UART protocol 3 * 4 * HCIATH3K (HCI Atheros AR300x Protocol) is a Atheros Communication's 5 * power management protocol extension to H4 to support AR300x Bluetooth Chip. 6 * 7 * Copyright (c) 2009-2010 Atheros Communications Inc. 8 * --- 192 unchanged lines hidden (view full) --- 201static int ath_recv(struct hci_uart *hu, const void *data, int count) 202{ 203 struct ath_struct *ath = hu->priv; 204 205 ath->rx_skb = h4_recv_buf(hu->hdev, ath->rx_skb, data, count, 206 ath_recv_pkts, ARRAY_SIZE(ath_recv_pkts)); 207 if (IS_ERR(ath->rx_skb)) { 208 int err = PTR_ERR(ath->rx_skb); | 1/* 2 * Atheros Communication Bluetooth HCIATH3K UART protocol 3 * 4 * HCIATH3K (HCI Atheros AR300x Protocol) is a Atheros Communication's 5 * power management protocol extension to H4 to support AR300x Bluetooth Chip. 6 * 7 * Copyright (c) 2009-2010 Atheros Communications Inc. 8 * --- 192 unchanged lines hidden (view full) --- 201static int ath_recv(struct hci_uart *hu, const void *data, int count) 202{ 203 struct ath_struct *ath = hu->priv; 204 205 ath->rx_skb = h4_recv_buf(hu->hdev, ath->rx_skb, data, count, 206 ath_recv_pkts, ARRAY_SIZE(ath_recv_pkts)); 207 if (IS_ERR(ath->rx_skb)) { 208 int err = PTR_ERR(ath->rx_skb); |
209 BT_ERR("%s: Frame reassembly failed (%d)", hu->hdev->name, err); | 209 bt_dev_err(hu->hdev, "Frame reassembly failed (%d)", err); |
210 ath->rx_skb = NULL; 211 return err; 212 } 213 214 return count; 215} 216 217#define HCI_OP_ATH_SLEEP 0xFC04 --- 62 unchanged lines hidden --- | 210 ath->rx_skb = NULL; 211 return err; 212 } 213 214 return count; 215} 216 217#define HCI_OP_ATH_SLEEP 0xFC04 --- 62 unchanged lines hidden --- |