mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-22 16:14:20 +00:00
Update rtl8188e_hal_init.c
Hi! Can I get your help? Is channel range starts from 0 or 1? Why channel #14 has special case in Hal_ReadTxPowerInfo88E?
This commit is contained in:
parent
396d6c1752
commit
3e8119475d
1 changed files with 4 additions and 9 deletions
|
@ -2120,10 +2120,8 @@ static u8 Hal_GetChnlGroup88E(u8 chnl, u8 *pGroup)
|
||||||
*pGroup = 2;
|
*pGroup = 2;
|
||||||
else if (chnl < 12) /* Channel 9-11 */
|
else if (chnl < 12) /* Channel 9-11 */
|
||||||
*pGroup = 3;
|
*pGroup = 3;
|
||||||
else if (chnl < 14) /* Channel 12-13 */
|
else if (chnl < 15) /* Channel 12-14 */
|
||||||
*pGroup = 4;
|
*pGroup = 4;
|
||||||
else if (chnl == 14) /* Channel 14 */
|
|
||||||
*pGroup = 5;
|
|
||||||
} else {
|
} else {
|
||||||
bIn24G = false;
|
bIn24G = false;
|
||||||
|
|
||||||
|
@ -2194,14 +2192,11 @@ void Hal_ReadTxPowerInfo88E(struct adapter *padapter, u8 *PROMContent, bool Auto
|
||||||
pHalData->bTXPowerDataReadFromEEPORM = true;
|
pHalData->bTXPowerDataReadFromEEPORM = true;
|
||||||
|
|
||||||
for (rfPath = 0; rfPath < pHalData->NumTotalRFPath; rfPath++) {
|
for (rfPath = 0; rfPath < pHalData->NumTotalRFPath; rfPath++) {
|
||||||
for (ch = 0; ch < CHANNEL_MAX_NUMBER; ch++) {
|
for (ch = 1; ch < CHANNEL_MAX_NUMBER + 1; ch++) {
|
||||||
bIn24G = Hal_GetChnlGroup88E(ch, &group);
|
bIn24G = Hal_GetChnlGroup88E(ch, &group);
|
||||||
if (bIn24G) {
|
if (bIn24G) {
|
||||||
pHalData->Index24G_CCK_Base[rfPath][ch] = pwrInfo24G.IndexCCK_Base[rfPath][group];
|
pHalData->Index24G_CCK_Base[rfPath][ch - 1] = pwrInfo24G.IndexCCK_Base[rfPath][group];
|
||||||
if (ch == 14)
|
pHalData->Index24G_BW40_Base[rfPath][ch - 1] = pwrInfo24G.IndexBW40_Base[rfPath][group];
|
||||||
pHalData->Index24G_BW40_Base[rfPath][ch] = pwrInfo24G.IndexBW40_Base[rfPath][4];
|
|
||||||
else
|
|
||||||
pHalData->Index24G_BW40_Base[rfPath][ch] = pwrInfo24G.IndexBW40_Base[rfPath][group];
|
|
||||||
}
|
}
|
||||||
if (bIn24G) {
|
if (bIn24G) {
|
||||||
DBG_88E("======= Path %d, Channel %d =======\n", rfPath, ch);
|
DBG_88E("======= Path %d, Channel %d =======\n", rfPath, ch);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue