aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00dev.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-01-06 17:41:10 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:26 -0500
commitdd3193e1c25ffbc66b684edb52273ae10695909d (patch)
treeec1594e6a992e924e601495fb04374409a71ee3d /drivers/net/wireless/rt2x00/rt2x00dev.c
parent3c4f2085e5d82639004406795653e1e4dd6720e0 (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/rt2x00dev.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c4
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,
601 struct txdata_entry_desc desc; 601 struct txdata_entry_desc desc;
602 struct skb_desc *skbdesc = get_skb_desc(skb); 602 struct skb_desc *skbdesc = get_skb_desc(skb);
603 struct ieee80211_hdr *ieee80211hdr = skbdesc->data; 603 struct ieee80211_hdr *ieee80211hdr = skbdesc->data;
604 __le32 *txd = skbdesc->desc;
605 int tx_rate; 604 int tx_rate;
606 int bitrate; 605 int bitrate;
607 int length; 606 int length;
@@ -729,8 +728,7 @@ void rt2x00lib_write_tx_desc(struct rt2x00_dev *rt2x00dev,
729 desc.signal |= 0x08; 728 desc.signal |= 0x08;
730 } 729 }
731 730
732 rt2x00dev->ops->lib->write_tx_desc(rt2x00dev, txd, &desc, ieee80211hdr, 731 rt2x00dev->ops->lib->write_tx_desc(rt2x00dev, skb, &desc, control);
733 skbdesc->data_len, control);
734 732
735 /* 733 /*
736 * Update ring entry. 734 * Update ring entry.