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/rt73usb.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/rt73usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 51c5575ed02f..d98002cfe091 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -1255,8 +1255,7 @@ static int rt73usb_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1255 | */ | 1255 | */ |
1256 | static void rt73usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, | 1256 | static void rt73usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, |
1257 | struct sk_buff *skb, | 1257 | struct sk_buff *skb, |
1258 | struct txentry_desc *txdesc, | 1258 | struct txentry_desc *txdesc) |
1259 | struct ieee80211_tx_control *control) | ||
1260 | { | 1259 | { |
1261 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb); | 1260 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb); |
1262 | __le32 *txd = skbdesc->desc; | 1261 | __le32 *txd = skbdesc->desc; |
@@ -1301,8 +1300,7 @@ static void rt73usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, | |||
1301 | test_bit(ENTRY_TXD_OFDM_RATE, &txdesc->flags)); | 1300 | test_bit(ENTRY_TXD_OFDM_RATE, &txdesc->flags)); |
1302 | rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->ifs); | 1301 | rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->ifs); |
1303 | rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, | 1302 | rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, |
1304 | !!(control->flags & | 1303 | test_bit(ENTRY_TXD_RETRY_MODE, &txdesc->flags)); |
1305 | IEEE80211_TXCTL_LONG_RETRY_LIMIT)); | ||
1306 | rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, 0); | 1304 | rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, 0); |
1307 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skbdesc->data_len); | 1305 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skbdesc->data_len); |
1308 | rt2x00_set_field32(&word, TXD_W0_BURST2, | 1306 | rt2x00_set_field32(&word, TXD_W0_BURST2, |