aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt61pci.c
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@gmail.com>2010-06-03 04:51:41 -0400
committerIvo van Doorn <IvDoorn@gmail.com>2010-06-03 04:51:41 -0400
commit5c3b685c79f38ac6b909b3650f3dad3993614cfb (patch)
treec38bba6e0bc1e12fdac4b924de9f00a4bd9dac89 /drivers/net/wireless/rt2x00/rt61pci.c
parented3305b4bb1fadff22e2f254bccfb3301e0b6b4f (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/rt61pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 6a74baf4e934..a7205c1711de 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -1874,6 +1874,16 @@ static void rt61pci_write_beacon(struct queue_entry *entry,
1874 rt2x00pci_register_write(rt2x00dev, TXRX_CSR9, reg); 1874 rt2x00pci_register_write(rt2x00dev, TXRX_CSR9, reg);
1875 1875
1876 /* 1876 /*
1877 * Write the TX descriptor for the beacon.
1878 */
1879 rt61pci_write_tx_desc(rt2x00dev, entry->skb, txdesc);
1880
1881 /*
1882 * Dump beacon to userspace through debugfs.
1883 */
1884 rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb);
1885
1886 /*
1877 * Write entire beacon with descriptor to register. 1887 * Write entire beacon with descriptor to register.
1878 */ 1888 */
1879 beacon_base = HW_BEACON_OFFSET(entry->entry_idx); 1889 beacon_base = HW_BEACON_OFFSET(entry->entry_idx);