diff options
Diffstat (limited to 'drivers/bluetooth/bt3c_cs.c')
-rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 18b0f3992c5b..39516074636b 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
@@ -303,20 +303,20 @@ static void bt3c_receive(bt3c_info_t *info) | |||
303 | switch (info->rx_state) { | 303 | switch (info->rx_state) { |
304 | 304 | ||
305 | case RECV_WAIT_EVENT_HEADER: | 305 | case RECV_WAIT_EVENT_HEADER: |
306 | eh = (struct hci_event_hdr *)(info->rx_skb->data); | 306 | eh = hci_event_hdr(info->rx_skb); |
307 | info->rx_state = RECV_WAIT_DATA; | 307 | info->rx_state = RECV_WAIT_DATA; |
308 | info->rx_count = eh->plen; | 308 | info->rx_count = eh->plen; |
309 | break; | 309 | break; |
310 | 310 | ||
311 | case RECV_WAIT_ACL_HEADER: | 311 | case RECV_WAIT_ACL_HEADER: |
312 | ah = (struct hci_acl_hdr *)(info->rx_skb->data); | 312 | ah = hci_acl_hdr(info->rx_skb); |
313 | dlen = __le16_to_cpu(ah->dlen); | 313 | dlen = __le16_to_cpu(ah->dlen); |
314 | info->rx_state = RECV_WAIT_DATA; | 314 | info->rx_state = RECV_WAIT_DATA; |
315 | info->rx_count = dlen; | 315 | info->rx_count = dlen; |
316 | break; | 316 | break; |
317 | 317 | ||
318 | case RECV_WAIT_SCO_HEADER: | 318 | case RECV_WAIT_SCO_HEADER: |
319 | sh = (struct hci_sco_hdr *)(info->rx_skb->data); | 319 | sh = hci_sco_hdr(info->rx_skb); |
320 | info->rx_state = RECV_WAIT_DATA; | 320 | info->rx_state = RECV_WAIT_DATA; |
321 | info->rx_count = sh->dlen; | 321 | info->rx_count = sh->dlen; |
322 | break; | 322 | break; |