diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-05-10 07:42:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:47:31 -0400 |
commit | 61486e0f68d1f8966c09b734566a187d42d65c54 (patch) | |
tree | ba683a5dfe736f0b9754da2b2a67d799f3ff5594 /drivers/net/wireless/rt2x00/rt2500pci.c | |
parent | fb55f4d1fa252ba1e479284b79da1049d658c371 (diff) |
rt2x00: Remove ieee80211_tx_control argument from write_tx_desc()
Move the last remaining information details read from ieee80211_tx_control
in the drivers to the txentry_desc structure. After this we can
remove ieee80211_tx_control from the argument list for the callback function,
which makes it easier when the control information is moved into skb->cb
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 | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index aa195dab1554..1724ce90f8b1 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1155,8 +1155,7 @@ static int rt2500pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1155 | */ | 1155 | */ |
1156 | static void rt2500pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, | 1156 | static void rt2500pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, |
1157 | struct sk_buff *skb, | 1157 | struct sk_buff *skb, |
1158 | struct txentry_desc *txdesc, | 1158 | struct txentry_desc *txdesc) |
1159 | struct ieee80211_tx_control *control) | ||
1160 | { | 1159 | { |
1161 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb); | 1160 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb); |
1162 | __le32 *txd = skbdesc->desc; | 1161 | __le32 *txd = skbdesc->desc; |
@@ -1198,9 +1197,7 @@ static void rt2500pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, | |||
1198 | rt2x00_set_field32(&word, TXD_W0_CIPHER_OWNER, 1); | 1197 | rt2x00_set_field32(&word, TXD_W0_CIPHER_OWNER, 1); |
1199 | rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->ifs); | 1198 | rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->ifs); |
1200 | rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, | 1199 | rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, |
1201 | !!(control->flags & | 1200 | test_bit(ENTRY_TXD_RETRY_MODE, &txdesc->flags)); |
1202 | IEEE80211_TXCTL_LONG_RETRY_LIMIT)); | ||
1203 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skbdesc->data_len); | ||
1204 | rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); | 1201 | rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); |
1205 | rt2x00_desc_write(txd, 0, word); | 1202 | rt2x00_desc_write(txd, 0, word); |
1206 | } | 1203 | } |