diff options
-rw-r--r-- | drivers/bluetooth/btmrvl_main.c | 8 | ||||
-rw-r--r-- | drivers/bluetooth/btmrvl_sdio.c | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/drivers/bluetooth/btmrvl_main.c b/drivers/bluetooth/btmrvl_main.c index dc304def8400..3a4343b3bd6d 100644 --- a/drivers/bluetooth/btmrvl_main.c +++ b/drivers/bluetooth/btmrvl_main.c | |||
@@ -47,10 +47,11 @@ EXPORT_SYMBOL_GPL(btmrvl_interrupt); | |||
47 | bool btmrvl_check_evtpkt(struct btmrvl_private *priv, struct sk_buff *skb) | 47 | bool btmrvl_check_evtpkt(struct btmrvl_private *priv, struct sk_buff *skb) |
48 | { | 48 | { |
49 | struct hci_event_hdr *hdr = (void *) skb->data; | 49 | struct hci_event_hdr *hdr = (void *) skb->data; |
50 | struct hci_ev_cmd_complete *ec; | ||
51 | u16 opcode, ocf, ogf; | ||
52 | 50 | ||
53 | if (hdr->evt == HCI_EV_CMD_COMPLETE) { | 51 | if (hdr->evt == HCI_EV_CMD_COMPLETE) { |
52 | struct hci_ev_cmd_complete *ec; | ||
53 | u16 opcode, ocf, ogf; | ||
54 | |||
54 | ec = (void *) (skb->data + HCI_EVENT_HDR_SIZE); | 55 | ec = (void *) (skb->data + HCI_EVENT_HDR_SIZE); |
55 | opcode = __le16_to_cpu(ec->opcode); | 56 | opcode = __le16_to_cpu(ec->opcode); |
56 | ocf = hci_opcode_ocf(opcode); | 57 | ocf = hci_opcode_ocf(opcode); |
@@ -64,7 +65,8 @@ bool btmrvl_check_evtpkt(struct btmrvl_private *priv, struct sk_buff *skb) | |||
64 | } | 65 | } |
65 | 66 | ||
66 | if (ogf == OGF) { | 67 | if (ogf == OGF) { |
67 | BT_DBG("vendor event skipped: ogf 0x%4.4x", ogf); | 68 | BT_DBG("vendor event skipped: ogf 0x%4.4x ocf 0x%4.4x", |
69 | ogf, ocf); | ||
68 | kfree_skb(skb); | 70 | kfree_skb(skb); |
69 | return false; | 71 | return false; |
70 | } | 72 | } |
diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index cf7588edba0d..6a9e9717d3ab 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c | |||
@@ -568,8 +568,9 @@ static int btmrvl_sdio_card_to_host(struct btmrvl_private *priv) | |||
568 | if (type == HCI_EVENT_PKT) { | 568 | if (type == HCI_EVENT_PKT) { |
569 | if (btmrvl_check_evtpkt(priv, skb)) | 569 | if (btmrvl_check_evtpkt(priv, skb)) |
570 | hci_recv_frame(skb); | 570 | hci_recv_frame(skb); |
571 | } else | 571 | } else { |
572 | hci_recv_frame(skb); | 572 | hci_recv_frame(skb); |
573 | } | ||
573 | 574 | ||
574 | hdev->stat.byte_rx += buf_len; | 575 | hdev->stat.byte_rx += buf_len; |
575 | break; | 576 | break; |