diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-01-06 17:41:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:26 -0500 |
commit | dd3193e1c25ffbc66b684edb52273ae10695909d (patch) | |
tree | ec1594e6a992e924e601495fb04374409a71ee3d /drivers/net/wireless/rt2x00/rt2500pci.c | |
parent | 3c4f2085e5d82639004406795653e1e4dd6720e0 (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/rt2500pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index c92163d2d9ab..81a48e88f2a0 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1162,12 +1162,12 @@ static int rt2500pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1162 | * TX descriptor initialization | 1162 | * TX descriptor initialization |
1163 | */ | 1163 | */ |
1164 | static void rt2500pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, | 1164 | static void rt2500pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, |
1165 | __le32 *txd, | 1165 | struct sk_buff *skb, |
1166 | struct txdata_entry_desc *desc, | 1166 | struct txdata_entry_desc *desc, |
1167 | struct ieee80211_hdr *ieee80211hdr, | ||
1168 | unsigned int length, | ||
1169 | struct ieee80211_tx_control *control) | 1167 | struct ieee80211_tx_control *control) |
1170 | { | 1168 | { |
1169 | struct skb_desc *skbdesc = get_skb_desc(skb); | ||
1170 | __le32 *txd = skbdesc->desc; | ||
1171 | u32 word; | 1171 | u32 word; |
1172 | 1172 | ||
1173 | /* | 1173 | /* |
@@ -1208,7 +1208,7 @@ static void rt2500pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, | |||
1208 | rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, | 1208 | rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, |
1209 | !!(control->flags & | 1209 | !!(control->flags & |
1210 | IEEE80211_TXCTL_LONG_RETRY_LIMIT)); | 1210 | IEEE80211_TXCTL_LONG_RETRY_LIMIT)); |
1211 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, length); | 1211 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skbdesc->data_len); |
1212 | rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); | 1212 | rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); |
1213 | rt2x00_desc_write(txd, 0, word); | 1213 | rt2x00_desc_write(txd, 0, word); |
1214 | } | 1214 | } |