rtlwifi: Fix setting of tx descriptor for new trx flow
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 6 Nov 2014 01:10:52 +0000 (19:10 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Nov 2014 18:10:23 +0000 (13:10 -0500)
Device RTL8192EE uses a new form of trx flow. This fix sets up the descriptors
correctly.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c

index 25daa8715219c6b89f110bb048cace12e3414159..116f746e7c73d1a1c8c2a6377a1c8b897afc5caf 100644 (file)
@@ -1127,9 +1127,14 @@ static void _rtl_pci_prepare_bcn_tasklet(struct ieee80211_hw *hw)
 
        __skb_queue_tail(&ring->queue, pskb);
 
-       rtlpriv->cfg->ops->set_desc(hw, (u8 *)pdesc, true, HW_DESC_OWN,
-                                   &temp_one);
-
+       if (rtlpriv->use_new_trx_flow) {
+               temp_one = 4;
+               rtlpriv->cfg->ops->set_desc(hw, (u8 *)pbuffer_desc, true,
+                                           HW_DESC_OWN, (u8 *)&temp_one);
+       } else {
+               rtlpriv->cfg->ops->set_desc(hw, (u8 *)pdesc, true, HW_DESC_OWN,
+                                           &temp_one);
+       }
        return;
 }