aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500usb.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/rt2500usb.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/rt2500usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 3dca09d6e319..86eefb453606 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1024,12 +1024,12 @@ static int rt2500usb_set_device_state(struct rt2x00_dev *rt2x00dev,
1024 * TX descriptor initialization 1024 * TX descriptor initialization
1025 */ 1025 */
1026static void rt2500usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, 1026static void rt2500usb_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1027 __le32 *txd, 1027 struct sk_buff *skb,
1028 struct txdata_entry_desc *desc, 1028 struct txdata_entry_desc *desc,
1029 struct ieee80211_hdr *ieee80211hdr,
1030 unsigned int length,
1031 struct ieee80211_tx_control *control) 1029 struct ieee80211_tx_control *control)
1032{ 1030{
1031 struct skb_desc *skbdesc = get_skb_desc(skb);
1032 __le32 *txd = skbdesc->desc;
1033 u32 word; 1033 u32 word;
1034 1034
1035 /* 1035 /*
@@ -1062,7 +1062,7 @@ static void rt2500usb_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1062 rt2x00_set_field32(&word, TXD_W0_NEW_SEQ, 1062 rt2x00_set_field32(&word, TXD_W0_NEW_SEQ,
1063 !!(control->flags & IEEE80211_TXCTL_FIRST_FRAGMENT)); 1063 !!(control->flags & IEEE80211_TXCTL_FIRST_FRAGMENT));
1064 rt2x00_set_field32(&word, TXD_W0_IFS, desc->ifs); 1064 rt2x00_set_field32(&word, TXD_W0_IFS, desc->ifs);
1065 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, length); 1065 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skbdesc->data_len);
1066 rt2x00_set_field32(&word, TXD_W0_CIPHER, CIPHER_NONE); 1066 rt2x00_set_field32(&word, TXD_W0_CIPHER, CIPHER_NONE);
1067 rt2x00_desc_write(txd, 0, word); 1067 rt2x00_desc_write(txd, 0, word);
1068} 1068}