rtl8xxxu: Make device_init kludge 8723au only

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Jes Sorensen 2016-02-03 13:40:01 -05:00 committed by Kalle Valo
parent dc254ca411
commit 4042e61735

View File

@ -4343,14 +4343,17 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
val8 = ((30000 + NAV_UPPER_UNIT - 1) / NAV_UPPER_UNIT); val8 = ((30000 + NAV_UPPER_UNIT - 1) / NAV_UPPER_UNIT);
rtl8xxxu_write8(priv, REG_NAV_UPPER, val8); rtl8xxxu_write8(priv, REG_NAV_UPPER, val8);
/* if (priv->rtlchip == 0x8723a) {
* 2011/03/09 MH debug only, UMC-B cut pass 2500 S5 test, /*
* but we need to fin root cause. * 2011/03/09 MH debug only, UMC-B cut pass 2500 S5 test,
*/ * but we need to find root cause.
val32 = rtl8xxxu_read32(priv, REG_FPGA0_RF_MODE); * This is 8723au only.
if ((val32 & 0xff000000) != 0x83000000) { */
val32 |= FPGA_RF_MODE_CCK; val32 = rtl8xxxu_read32(priv, REG_FPGA0_RF_MODE);
rtl8xxxu_write32(priv, REG_FPGA0_RF_MODE, val32); if ((val32 & 0xff000000) != 0x83000000) {
val32 |= FPGA_RF_MODE_CCK;
rtl8xxxu_write32(priv, REG_FPGA0_RF_MODE, val32);
}
} }
val32 = rtl8xxxu_read32(priv, REG_FWHW_TXQ_CTRL); val32 = rtl8xxxu_read32(priv, REG_FWHW_TXQ_CTRL);