diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-01-07 01:41:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-29 02:09:26 +0300 |
commit | dd3193e1c25ffbc66b684edb52273ae10695909d (patch) | |
tree | ec1594e6a992e924e601495fb04374409a71ee3d /drivers/net/wireless/rt2x00/rt2x00dev.c | |
parent | 3c4f2085e5d82639004406795653e1e4dd6720e0 (diff) | |
download | linux-dd3193e1c25ffbc66b684edb52273ae10695909d.tar.xz |
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/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 911060df8037..a95cf531f083 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c @@ -601,7 +601,6 @@ void rt2x00lib_write_tx_desc(struct rt2x00_dev *rt2x00dev, struct txdata_entry_desc desc; struct skb_desc *skbdesc = get_skb_desc(skb); struct ieee80211_hdr *ieee80211hdr = skbdesc->data; - __le32 *txd = skbdesc->desc; int tx_rate; int bitrate; int length; @@ -729,8 +728,7 @@ void rt2x00lib_write_tx_desc(struct rt2x00_dev *rt2x00dev, desc.signal |= 0x08; } - rt2x00dev->ops->lib->write_tx_desc(rt2x00dev, txd, &desc, ieee80211hdr, - skbdesc->data_len, control); + rt2x00dev->ops->lib->write_tx_desc(rt2x00dev, skb, &desc, control); /* * Update ring entry. |