diff options
Diffstat (limited to 'drivers/net/wireless/p54/p54usb.c')
-rw-r--r-- | drivers/net/wireless/p54/p54usb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c index 88fb65046c71..49739c36a449 100644 --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c | |||
@@ -230,7 +230,7 @@ static void p54u_tx_3887(struct ieee80211_hw *dev, struct sk_buff *skb, | |||
230 | 230 | ||
231 | usb_fill_bulk_urb(addr_urb, priv->udev, | 231 | usb_fill_bulk_urb(addr_urb, priv->udev, |
232 | usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), | 232 | usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), |
233 | &((struct p54_control_hdr *)skb->data)->req_id, 4, | 233 | &((struct p54_hdr *)skb->data)->req_id, 4, |
234 | p54u_tx_cb, dev); | 234 | p54u_tx_cb, dev); |
235 | usb_fill_bulk_urb(data_urb, priv->udev, | 235 | usb_fill_bulk_urb(data_urb, priv->udev, |
236 | usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), | 236 | usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), |
@@ -262,7 +262,7 @@ static void p54u_tx_lm87(struct ieee80211_hw *dev, struct sk_buff *skb, | |||
262 | struct urb *data_urb; | 262 | struct urb *data_urb; |
263 | struct lm87_tx_hdr *hdr; | 263 | struct lm87_tx_hdr *hdr; |
264 | __le32 checksum; | 264 | __le32 checksum; |
265 | __le32 addr = ((struct p54_control_hdr *)skb->data)->req_id; | 265 | __le32 addr = ((struct p54_hdr *)skb->data)->req_id; |
266 | 266 | ||
267 | data_urb = usb_alloc_urb(0, GFP_ATOMIC); | 267 | data_urb = usb_alloc_urb(0, GFP_ATOMIC); |
268 | if (!data_urb) | 268 | if (!data_urb) |
@@ -313,8 +313,8 @@ static void p54u_tx_net2280(struct ieee80211_hw *dev, struct sk_buff *skb, | |||
313 | 313 | ||
314 | hdr = (void *)skb_push(skb, sizeof(*hdr)); | 314 | hdr = (void *)skb_push(skb, sizeof(*hdr)); |
315 | memset(hdr, 0, sizeof(*hdr)); | 315 | memset(hdr, 0, sizeof(*hdr)); |
316 | hdr->device_addr = ((struct p54_control_hdr *)skb->data)->req_id; | 316 | hdr->device_addr = ((struct p54_hdr *)skb->data)->req_id; |
317 | hdr->len = cpu_to_le16(skb->len + sizeof(struct p54_control_hdr)); | 317 | hdr->len = cpu_to_le16(skb->len + sizeof(struct p54_hdr)); |
318 | 318 | ||
319 | usb_fill_bulk_urb(int_urb, priv->udev, | 319 | usb_fill_bulk_urb(int_urb, priv->udev, |
320 | usb_sndbulkpipe(priv->udev, P54U_PIPE_DEV), reg, sizeof(*reg), | 320 | usb_sndbulkpipe(priv->udev, P54U_PIPE_DEV), reg, sizeof(*reg), |