diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2014-11-06 02:10:52 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-11-10 19:10:23 +0100 |
commit | fb6eaf2ccca7d3580931bcb4b735101b461f38cf (patch) | |
tree | e13008d30ff7b598d6984f2f7bd646c2fa788128 /drivers | |
parent | Merge tag 'mac80211-for-john-2014-11-10' of git://git.kernel.org/pub/scm/linu... (diff) | |
download | linux-fb6eaf2ccca7d3580931bcb4b735101b461f38cf.tar.xz linux-fb6eaf2ccca7d3580931bcb4b735101b461f38cf.zip |
rtlwifi: Fix setting of tx descriptor for new trx flow
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index 25daa8715219..116f746e7c73 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c @@ -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; } |