Revision 079d0b7f hw/usb-bt.c

b/hw/usb-bt.c
423 423

  
424 424
    switch (p->pid) {
425 425
    case USB_TOKEN_IN:
426
        switch (p->devep & 0xf) {
426
        switch (p->ep->nr) {
427 427
        case USB_EVT_EP:
428 428
            ret = usb_bt_fifo_dequeue(&s->evt, p);
429 429
            break;
......
442 442
        break;
443 443

  
444 444
    case USB_TOKEN_OUT:
445
        switch (p->devep & 0xf) {
445
        switch (p->ep->nr) {
446 446
        case USB_ACL_EP:
447 447
            usb_bt_fifo_out_enqueue(s, &s->outacl, s->hci->acl_send,
448 448
                            usb_bt_hci_acl_complete, p);

Also available in: Unified diff