diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192cu/trx.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c index 2e6eb356a93e..6e66f04c363f 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | |||
@@ -491,12 +491,14 @@ static void _rtl_tx_desc_checksum(u8 *txdesc) | |||
491 | SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, 0); | 491 | SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, 0); |
492 | for (index = 0; index < 16; index++) | 492 | for (index = 0; index < 16; index++) |
493 | checksum = checksum ^ (*(ptr + index)); | 493 | checksum = checksum ^ (*(ptr + index)); |
494 | SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, cpu_to_le16(checksum)); | 494 | SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, checksum); |
495 | } | 495 | } |
496 | 496 | ||
497 | void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, | 497 | void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, |
498 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, | 498 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, |
499 | struct ieee80211_tx_info *info, struct sk_buff *skb, | 499 | struct ieee80211_tx_info *info, |
500 | struct ieee80211_sta *sta, | ||
501 | struct sk_buff *skb, | ||
500 | u8 queue_index, | 502 | u8 queue_index, |
501 | struct rtl_tcb_desc *tcb_desc) | 503 | struct rtl_tcb_desc *tcb_desc) |
502 | { | 504 | { |
@@ -504,7 +506,6 @@ void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, | |||
504 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); | 506 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); |
505 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); | 507 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); |
506 | bool defaultadapter = true; | 508 | bool defaultadapter = true; |
507 | struct ieee80211_sta *sta = info->control.sta = info->control.sta; | ||
508 | u8 *qc = ieee80211_get_qos_ctl(hdr); | 509 | u8 *qc = ieee80211_get_qos_ctl(hdr); |
509 | u8 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; | 510 | u8 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; |
510 | u16 seq_number; | 511 | u16 seq_number; |