Commit 81643292 authored by Hante Meuleman's avatar Hante Meuleman Committed by John W. Linville

brcmfmac: remove unused usb bmac model code.

clean up code.
Reviewed-by: default avatarArend Van Spriel <arend@broadcom.com>
Signed-off-by: default avatarHante Meuleman <meuleman@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3ba81376
...@@ -134,8 +134,6 @@ struct brcmf_usbdev_info { ...@@ -134,8 +134,6 @@ struct brcmf_usbdev_info {
wait_queue_head_t ctrl_wait; wait_queue_head_t ctrl_wait;
ulong ctl_op; ulong ctl_op;
bool rxctl_deferrespok;
struct urb *bulk_urb; /* used for FW download */ struct urb *bulk_urb; /* used for FW download */
struct urb *intr_urb; /* URB for interrupt endpoint */ struct urb *intr_urb; /* URB for interrupt endpoint */
int intr_size; /* Size of interrupt message */ int intr_size; /* Size of interrupt message */
...@@ -301,17 +299,9 @@ brcmf_usb_recv_ctl(struct brcmf_usbdev_info *devinfo, u8 *buf, int len) ...@@ -301,17 +299,9 @@ brcmf_usb_recv_ctl(struct brcmf_usbdev_info *devinfo, u8 *buf, int len)
devinfo->ctl_read.wLength = cpu_to_le16p(&size); devinfo->ctl_read.wLength = cpu_to_le16p(&size);
devinfo->ctl_urb->transfer_buffer_length = size; devinfo->ctl_urb->transfer_buffer_length = size;
if (devinfo->rxctl_deferrespok) { devinfo->ctl_read.bRequestType = USB_DIR_IN
/* BMAC model */ | USB_TYPE_CLASS | USB_RECIP_INTERFACE;
devinfo->ctl_read.bRequestType = USB_DIR_IN devinfo->ctl_read.bRequest = 1;
| USB_TYPE_VENDOR | USB_RECIP_INTERFACE;
devinfo->ctl_read.bRequest = DL_DEFER_RESP_OK;
} else {
/* full dongle model */
devinfo->ctl_read.bRequestType = USB_DIR_IN
| USB_TYPE_CLASS | USB_RECIP_INTERFACE;
devinfo->ctl_read.bRequest = 1;
}
usb_fill_control_urb(devinfo->ctl_urb, usb_fill_control_urb(devinfo->ctl_urb,
devinfo->usbdev, devinfo->usbdev,
...@@ -1312,8 +1302,6 @@ struct brcmf_usbdev *brcmf_usb_attach(struct brcmf_usbdev_info *devinfo, ...@@ -1312,8 +1302,6 @@ struct brcmf_usbdev *brcmf_usb_attach(struct brcmf_usbdev_info *devinfo,
brcmf_dbg(ERROR, "usb_alloc_urb (ctl) failed\n"); brcmf_dbg(ERROR, "usb_alloc_urb (ctl) failed\n");
goto error; goto error;
} }
devinfo->rxctl_deferrespok = 0;
devinfo->bulk_urb = usb_alloc_urb(0, GFP_ATOMIC); devinfo->bulk_urb = usb_alloc_urb(0, GFP_ATOMIC);
if (!devinfo->bulk_urb) { if (!devinfo->bulk_urb) {
brcmf_dbg(ERROR, "usb_alloc_urb (bulk) failed\n"); brcmf_dbg(ERROR, "usb_alloc_urb (bulk) failed\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment