aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2400pci.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-01-06 17:41:10 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:26 -0500
commitdd3193e1c25ffbc66b684edb52273ae10695909d (patch)
treeec1594e6a992e924e601495fb04374409a71ee3d /drivers/net/wireless/rt2x00/rt2400pci.c
parent3c4f2085e5d82639004406795653e1e4dd6720e0 (diff)
rt2x00: Cleanup write_tx_desc() arguments
Send the skb structure with write_tx_desc() and use the skbdesc structure to read all information about the frame. This saves several arguments in the function definition and it is easier to send more information later as well. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2400pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2400pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c
index b042eb551cde..ffc7e208f9b2 100644
--- a/drivers/net/wireless/rt2x00/rt2400pci.c
+++ b/drivers/net/wireless/rt2x00/rt2400pci.c
@@ -1012,19 +1012,19 @@ static int rt2400pci_set_device_state(struct rt2x00_dev *rt2x00dev,
1012 * TX descriptor initialization 1012 * TX descriptor initialization
1013 */ 1013 */
1014static void rt2400pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, 1014static void rt2400pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1015 __le32 *txd, 1015 struct sk_buff *skb,
1016 struct txdata_entry_desc *desc, 1016 struct txdata_entry_desc *desc,
1017 struct ieee80211_hdr *ieee80211hdr,
1018 unsigned int length,
1019 struct ieee80211_tx_control *control) 1017 struct ieee80211_tx_control *control)
1020{ 1018{
1019 struct skb_desc *skbdesc = get_skb_desc(skb);
1020 __le32 *txd = skbdesc->desc;
1021 u32 word; 1021 u32 word;
1022 1022
1023 /* 1023 /*
1024 * Start writing the descriptor words. 1024 * Start writing the descriptor words.
1025 */ 1025 */
1026 rt2x00_desc_read(txd, 2, &word); 1026 rt2x00_desc_read(txd, 2, &word);
1027 rt2x00_set_field32(&word, TXD_W2_DATABYTE_COUNT, length); 1027 rt2x00_set_field32(&word, TXD_W2_DATABYTE_COUNT, skbdesc->data_len);
1028 rt2x00_desc_write(txd, 2, word); 1028 rt2x00_desc_write(txd, 2, word);
1029 1029
1030 rt2x00_desc_read(txd, 3, &word); 1030 rt2x00_desc_read(txd, 3, &word);