In rtl8188eu, read R92C_HSSI_PARAM2(0)) register to detect whether it needs

to enable CCK high power feature or not.

Reviewed by:	avos
This commit is contained in:
kevlo 2017-01-05 02:04:53 +00:00
parent d0b3c7cb46
commit 81c934a456
3 changed files with 3 additions and 8 deletions

View File

@ -105,10 +105,6 @@ r92ce_init_bb(struct rtwn_softc *sc)
rtwn_setbits_4(sc, R92C_LEDCFG0, 0, 0x00800000);
r92c_init_bb_common(sc);
if (rtwn_bb_read(sc, R92C_HSSI_PARAM2(0)) &
R92C_HSSI_PARAM2_CCK_HIPWR)
sc->sc_flags |= RTWN_FLAG_CCK_HIPWR;
}
int

View File

@ -159,6 +159,9 @@ r92c_init_bb_common(struct rtwn_softc *sc)
rtwn_delay(sc, 1);
}
}
if (rtwn_bb_read(sc, R92C_HSSI_PARAM2(0)) & R92C_HSSI_PARAM2_CCK_HIPWR)
sc->sc_flags |= RTWN_FLAG_CCK_HIPWR;
}
int

View File

@ -78,10 +78,6 @@ r92cu_init_bb(struct rtwn_softc *sc)
rtwn_write_1(sc, R92C_AFE_XTAL_CTRL + 1, 0x80);
r92c_init_bb_common(sc);
if (rtwn_bb_read(sc, R92C_HSSI_PARAM2(0)) &
R92C_HSSI_PARAM2_CCK_HIPWR)
sc->sc_flags |= RTWN_FLAG_CCK_HIPWR;
}
int