diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-06-03 04:51:41 -0400 |
---|---|---|
committer | Ivo van Doorn <IvDoorn@gmail.com> | 2010-06-03 04:51:41 -0400 |
commit | 5c3b685c79f38ac6b909b3650f3dad3993614cfb (patch) | |
tree | c38bba6e0bc1e12fdac4b924de9f00a4bd9dac89 /drivers/net/wireless/rt2x00/rt73usb.c | |
parent | ed3305b4bb1fadff22e2f254bccfb3301e0b6b4f (diff) |
rt2x00: Push beacon TX descriptor writing to drivers.
Not all the devices require a TX descriptor to be written (i.e. rt2800
device don't require them). Push down the creation of the TX descriptor
to the device drivers so that they can decide for themselves whether
a TX descriptor is to be created.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt73usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 6e0d82efe924..bd9a53e5fd9f 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -1528,6 +1528,16 @@ static void rt73usb_write_beacon(struct queue_entry *entry, | |||
1528 | rt2x00usb_register_write(rt2x00dev, TXRX_CSR9, reg); | 1528 | rt2x00usb_register_write(rt2x00dev, TXRX_CSR9, reg); |
1529 | 1529 | ||
1530 | /* | 1530 | /* |
1531 | * Write the TX descriptor for the beacon. | ||
1532 | */ | ||
1533 | rt73usb_write_tx_desc(rt2x00dev, entry->skb, txdesc); | ||
1534 | |||
1535 | /* | ||
1536 | * Dump beacon to userspace through debugfs. | ||
1537 | */ | ||
1538 | rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb); | ||
1539 | |||
1540 | /* | ||
1531 | * Take the descriptor in front of the skb into account. | 1541 | * Take the descriptor in front of the skb into account. |
1532 | */ | 1542 | */ |
1533 | skb_push(entry->skb, TXD_DESC_SIZE); | 1543 | skb_push(entry->skb, TXD_DESC_SIZE); |