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/rt61pci.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/rt61pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 5c78c4cf80ae..35e7607cf164 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -1533,12 +1533,12 @@ static int rt61pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1533 | * TX descriptor initialization | 1533 | * TX descriptor initialization |
1534 | */ | 1534 | */ |
1535 | static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, | 1535 | static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, |
1536 | __le32 *txd, | 1536 | struct sk_buff *skb, |
1537 | struct txdata_entry_desc *desc, | 1537 | struct txdata_entry_desc *desc, |
1538 | struct ieee80211_hdr *ieee80211hdr, | 1538 | struct ieee80211_tx_control *control) |
1539 | unsigned int length, | ||
1540 | struct ieee80211_tx_control *control) | ||
1541 | { | 1539 | { |
1540 | struct skb_desc *skbdesc = get_skb_desc(skb); | ||
1541 | __le32 *txd = skbdesc->desc; | ||
1542 | u32 word; | 1542 | u32 word; |
1543 | 1543 | ||
1544 | /* | 1544 | /* |
@@ -1567,7 +1567,7 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, | |||
1567 | rt2x00_desc_write(txd, 5, word); | 1567 | rt2x00_desc_write(txd, 5, word); |
1568 | 1568 | ||
1569 | rt2x00_desc_read(txd, 11, &word); | 1569 | rt2x00_desc_read(txd, 11, &word); |
1570 | rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0, length); | 1570 | rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0, skbdesc->data_len); |
1571 | rt2x00_desc_write(txd, 11, word); | 1571 | rt2x00_desc_write(txd, 11, word); |
1572 | 1572 | ||
1573 | rt2x00_desc_read(txd, 0, &word); | 1573 | rt2x00_desc_read(txd, 0, &word); |
@@ -1586,7 +1586,7 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, | |||
1586 | !!(control->flags & | 1586 | !!(control->flags & |
1587 | IEEE80211_TXCTL_LONG_RETRY_LIMIT)); | 1587 | IEEE80211_TXCTL_LONG_RETRY_LIMIT)); |
1588 | rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, 0); | 1588 | rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, 0); |
1589 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, length); | 1589 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skbdesc->data_len); |
1590 | rt2x00_set_field32(&word, TXD_W0_BURST, | 1590 | rt2x00_set_field32(&word, TXD_W0_BURST, |
1591 | test_bit(ENTRY_TXD_BURST, &desc->flags)); | 1591 | test_bit(ENTRY_TXD_BURST, &desc->flags)); |
1592 | rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); | 1592 | rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); |