aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index 141b9b8a1997..455d0763503e 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -630,7 +630,7 @@ void rt2x00lib_write_tx_desc(struct rt2x00_dev *rt2x00dev,
630{ 630{
631 struct txentry_desc txdesc; 631 struct txentry_desc txdesc;
632 struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb); 632 struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb);
633 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; 633 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skbdesc->data;
634 const struct rt2x00_rate *rate; 634 const struct rt2x00_rate *rate;
635 int tx_rate; 635 int tx_rate;
636 int length; 636 int length;
@@ -710,7 +710,7 @@ void rt2x00lib_write_tx_desc(struct rt2x00_dev *rt2x00dev,
710 txdesc.signal = rate->plcp; 710 txdesc.signal = rate->plcp;
711 txdesc.service = 0x04; 711 txdesc.service = 0x04;
712 712
713 length = skb->len + FCS_LEN; 713 length = skbdesc->data_len + FCS_LEN;
714 if (rate->flags & DEV_RATE_OFDM) { 714 if (rate->flags & DEV_RATE_OFDM) {
715 __set_bit(ENTRY_TXD_OFDM_RATE, &txdesc.flags); 715 __set_bit(ENTRY_TXD_OFDM_RATE, &txdesc.flags);
716 716