diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192ce/trx.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c index f76d406535dc..54b2bd53d36a 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | |||
@@ -36,9 +36,9 @@ | |||
36 | #include "trx.h" | 36 | #include "trx.h" |
37 | #include "led.h" | 37 | #include "led.h" |
38 | 38 | ||
39 | u8 _rtl92ce_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue) | 39 | static u8 _rtl92ce_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue) |
40 | { | 40 | { |
41 | u16 fc = rtl_get_fc(skb); | 41 | __le16 fc = rtl_get_fc(skb); |
42 | 42 | ||
43 | if (unlikely(ieee80211_is_beacon(fc))) | 43 | if (unlikely(ieee80211_is_beacon(fc))) |
44 | return QSLT_BEACON; | 44 | return QSLT_BEACON; |
@@ -795,7 +795,6 @@ void rtl92ce_tx_fill_desc(struct ieee80211_hw *hw, | |||
795 | u8 ampdu_density = sta->ht_cap.ampdu_density; | 795 | u8 ampdu_density = sta->ht_cap.ampdu_density; |
796 | SET_TX_DESC_AMPDU_DENSITY(pdesc, ampdu_density); | 796 | SET_TX_DESC_AMPDU_DENSITY(pdesc, ampdu_density); |
797 | } | 797 | } |
798 | rcu_read_unlock(); | ||
799 | 798 | ||
800 | if (info->control.hw_key) { | 799 | if (info->control.hw_key) { |
801 | struct ieee80211_key_conf *keyconf = | 800 | struct ieee80211_key_conf *keyconf = |
@@ -834,13 +833,14 @@ void rtl92ce_tx_fill_desc(struct ieee80211_hw *hw, | |||
834 | } | 833 | } |
835 | } | 834 | } |
836 | } | 835 | } |
836 | rcu_read_unlock(); | ||
837 | 837 | ||
838 | SET_TX_DESC_FIRST_SEG(pdesc, (firstseg ? 1 : 0)); | 838 | SET_TX_DESC_FIRST_SEG(pdesc, (firstseg ? 1 : 0)); |
839 | SET_TX_DESC_LAST_SEG(pdesc, (lastseg ? 1 : 0)); | 839 | SET_TX_DESC_LAST_SEG(pdesc, (lastseg ? 1 : 0)); |
840 | 840 | ||
841 | SET_TX_DESC_TX_BUFFER_SIZE(pdesc, (u16) skb->len); | 841 | SET_TX_DESC_TX_BUFFER_SIZE(pdesc, (u16) skb->len); |
842 | 842 | ||
843 | SET_TX_DESC_TX_BUFFER_ADDRESS(pdesc, cpu_to_le32(mapping)); | 843 | SET_TX_DESC_TX_BUFFER_ADDRESS(pdesc, mapping); |
844 | 844 | ||
845 | if (rtlpriv->dm.useramask) { | 845 | if (rtlpriv->dm.useramask) { |
846 | SET_TX_DESC_RATE_ID(pdesc, tcb_desc->ratr_index); | 846 | SET_TX_DESC_RATE_ID(pdesc, tcb_desc->ratr_index); |
@@ -901,7 +901,7 @@ void rtl92ce_tx_fill_cmddesc(struct ieee80211_hw *hw, | |||
901 | 901 | ||
902 | SET_TX_DESC_TX_BUFFER_SIZE(pdesc, (u16) (skb->len)); | 902 | SET_TX_DESC_TX_BUFFER_SIZE(pdesc, (u16) (skb->len)); |
903 | 903 | ||
904 | SET_TX_DESC_TX_BUFFER_ADDRESS(pdesc, cpu_to_le32(mapping)); | 904 | SET_TX_DESC_TX_BUFFER_ADDRESS(pdesc, mapping); |
905 | 905 | ||
906 | SET_TX_DESC_RATE_ID(pdesc, 7); | 906 | SET_TX_DESC_RATE_ID(pdesc, 7); |
907 | SET_TX_DESC_MACID(pdesc, 0); | 907 | SET_TX_DESC_MACID(pdesc, 0); |