]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/bluetooth/bluecard_cs.c
Bluetooth: Provide hdev parameter to hci_recv_frame() driver callback
[mirror_ubuntu-zesty-kernel.git] / drivers / bluetooth / bluecard_cs.c
index aa872c9b3fc20c064292cd5d48de292b43a9f583..395acde99d7863d13c5016a0ee7b14ac53e67a57 100644 (file)
@@ -399,7 +399,6 @@ static void bluecard_receive(bluecard_info_t *info, unsigned int offset)
 
                if (info->rx_state == RECV_WAIT_PACKET_TYPE) {
 
-                       info->rx_skb->dev = (void *) info->hdev;
                        bt_cb(info->rx_skb)->pkt_type = buf[i];
 
                        switch (bt_cb(info->rx_skb)->pkt_type) {
@@ -477,7 +476,7 @@ static void bluecard_receive(bluecard_info_t *info, unsigned int offset)
                                        break;
 
                                case RECV_WAIT_DATA:
-                                       hci_recv_frame(info->rx_skb);
+                                       hci_recv_frame(info->hdev, info->rx_skb);
                                        info->rx_skb = NULL;
                                        break;