diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt73usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index ee59b4e35cdc..37a782dc8080 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -1508,8 +1508,7 @@ static void rt73usb_write_beacon(struct queue_entry *entry) | |||
1508 | entry->skb = NULL; | 1508 | entry->skb = NULL; |
1509 | } | 1509 | } |
1510 | 1510 | ||
1511 | static int rt73usb_get_tx_data_len(struct rt2x00_dev *rt2x00dev, | 1511 | static int rt73usb_get_tx_data_len(struct queue_entry *entry) |
1512 | struct sk_buff *skb) | ||
1513 | { | 1512 | { |
1514 | int length; | 1513 | int length; |
1515 | 1514 | ||
@@ -1517,8 +1516,8 @@ static int rt73usb_get_tx_data_len(struct rt2x00_dev *rt2x00dev, | |||
1517 | * The length _must_ be a multiple of 4, | 1516 | * The length _must_ be a multiple of 4, |
1518 | * but it must _not_ be a multiple of the USB packet size. | 1517 | * but it must _not_ be a multiple of the USB packet size. |
1519 | */ | 1518 | */ |
1520 | length = roundup(skb->len, 4); | 1519 | length = roundup(entry->skb->len, 4); |
1521 | length += (4 * !(length % rt2x00dev->usb_maxpacket)); | 1520 | length += (4 * !(length % entry->queue->usb_maxpacket)); |
1522 | 1521 | ||
1523 | return length; | 1522 | return length; |
1524 | } | 1523 | } |