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/rt73usb.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/rt73usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index f2d1810fb3fe..29824701e703 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -1231,12 +1231,12 @@ static int rt73usb_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1231 | * TX descriptor initialization | 1231 | * TX descriptor initialization |
1232 | */ | 1232 | */ |
1233 | static void rt73usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, | 1233 | static void rt73usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, |
1234 | __le32 *txd, | 1234 | struct sk_buff *skb, |
1235 | struct txdata_entry_desc *desc, | 1235 | struct txdata_entry_desc *desc, |
1236 | struct ieee80211_hdr *ieee80211hdr, | 1236 | struct ieee80211_tx_control *control) |
1237 | unsigned int length, | ||
1238 | struct ieee80211_tx_control *control) | ||
1239 | { | 1237 | { |
1238 | struct skb_desc *skbdesc = get_skb_desc(skb); | ||
1239 | __le32 *txd = skbdesc->desc; | ||
1240 | u32 word; | 1240 | u32 word; |
1241 | 1241 | ||
1242 | /* | 1242 | /* |
@@ -1281,7 +1281,7 @@ static void rt73usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, | |||
1281 | !!(control->flags & | 1281 | !!(control->flags & |
1282 | IEEE80211_TXCTL_LONG_RETRY_LIMIT)); | 1282 | IEEE80211_TXCTL_LONG_RETRY_LIMIT)); |
1283 | rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, 0); | 1283 | rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, 0); |
1284 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, length); | 1284 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skbdesc->data_len); |
1285 | rt2x00_set_field32(&word, TXD_W0_BURST2, | 1285 | rt2x00_set_field32(&word, TXD_W0_BURST2, |
1286 | test_bit(ENTRY_TXD_BURST, &desc->flags)); | 1286 | test_bit(ENTRY_TXD_BURST, &desc->flags)); |
1287 | rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); | 1287 | rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); |