Content-Type: multipart/mixed; boundary="===============3764282100131267534==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 5/5] staging: r8188eu: remove module parameter rtw_rf_config Date: Mon, 29 Nov 2021 01:45:47 +0800 Message-ID: <202111290156.knQNxdhP-lkp@intel.com> In-Reply-To: <20211128135326.9838-6-straube.linux@gmail.com> List-Id: --===============3764282100131267534== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Michael, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Michael-Straube/staging-r8= 188eu-remove-rf_type-and-rtw_rf_config/20211128-215723 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git = 84c365f8ff8fc93a34d6cabe780d0b0f49c177e2 config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/2021112= 9/202111290156.knQNxdhP-lkp(a)intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/598ff48bdd977b1ec251f5b9e= a41320aa5b36ef0 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Michael-Straube/staging-r8188eu-re= move-rf_type-and-rtw_rf_config/20211128-215723 git checkout 598ff48bdd977b1ec251f5b9ea41320aa5b36ef0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dalpha SHELL=3D/bin/bash drivers/staging/r8188eu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/staging/r8188eu/hal/rtl8188e_phycfg.c: In function 'storePwrInde= xDiffRateOffset': drivers/staging/r8188eu/hal/rtl8188e_phycfg.c:509:29: error: 'struct hal= _data_8188e' has no member named 'rf_type' 509 | if (pHalData->rf_type =3D=3D RF_1T1R) | ^~ >> drivers/staging/r8188eu/hal/rtl8188e_phycfg.c:509:42: error: 'RF_1T1R' u= ndeclared (first use in this function) 509 | if (pHalData->rf_type =3D=3D RF_1T1R) | ^~~~~~~ drivers/staging/r8188eu/hal/rtl8188e_phycfg.c:509:42: note: each undecla= red identifier is reported only once for each function it appears in drivers/staging/r8188eu/hal/rtl8188e_phycfg.c:528:29: error: 'struct hal= _data_8188e' has no member named 'rf_type' 528 | if (pHalData->rf_type !=3D RF_1T1R) | ^~ drivers/staging/r8188eu/hal/rtl8188e_phycfg.c: In function 'getTxPowerIn= dex88E': >> drivers/staging/r8188eu/hal/rtl8188e_phycfg.c:620:14: error: 'RF_1T2R' u= ndeclared (first use in this function) 620 | if ((RF_1T2R =3D=3D pHalData->rf_type) || (RF_1T1R =3D= =3D pHalData->rf_type)) | ^~~~~~~ drivers/staging/r8188eu/hal/rtl8188e_phycfg.c:620:33: error: 'struct hal= _data_8188e' has no member named 'rf_type' 620 | if ((RF_1T2R =3D=3D pHalData->rf_type) || (RF_1T1R =3D= =3D pHalData->rf_type)) | ^~ drivers/staging/r8188eu/hal/rtl8188e_phycfg.c:620:48: error: 'RF_1T1R' u= ndeclared (first use in this function) 620 | if ((RF_1T2R =3D=3D pHalData->rf_type) || (RF_1T1R =3D= =3D pHalData->rf_type)) | ^~~~~~~ drivers/staging/r8188eu/hal/rtl8188e_phycfg.c:620:67: error: 'struct hal= _data_8188e' has no member named 'rf_type' 620 | if ((RF_1T2R =3D=3D pHalData->rf_type) || (RF_1T1R =3D= =3D pHalData->rf_type)) | = ^~ -- drivers/staging/r8188eu/core/rtw_mlme.c: In function 'rtw_update_ht_cap': drivers/staging/r8188eu/core/rtw_mlme.c:2004:42: error: 'HW_VAR_RF_TYPE'= undeclared (first use in this function); did you mean 'HAL_RF_TYPE'? 2004 | GetHwReg8188EU(padapter, HW_VAR_RF_TYPE, (u8 *)(= &rf_type)); | ^~~~~~~~~~~~~~ | HAL_RF_TYPE drivers/staging/r8188eu/core/rtw_mlme.c:2004:42: note: each undeclared i= dentifier is reported only once for each function it appears in >> drivers/staging/r8188eu/core/rtw_mlme.c:2008:41: error: 'RF_1T1R' undecl= ared (first use in this function) 2008 | if ((rf_type =3D=3D RF_1T1R) || (rf_type= =3D=3D RF_1T2R)) | ^~~~~~~ >> drivers/staging/r8188eu/core/rtw_mlme.c:2008:65: error: 'RF_1T2R' undecl= ared (first use in this function) 2008 | if ((rf_type =3D=3D RF_1T1R) || (rf_type= =3D=3D RF_1T2R)) | = ^~~~~~~ -- drivers/staging/r8188eu/core/rtw_mlme_ext.c: In function 'issue_assocreq= ': drivers/staging/r8188eu/core/rtw_mlme_ext.c:5188:50: error: 'HW_VAR_RF_T= YPE' undeclared (first use in this function); did you mean 'HAL_RF_TYPE'? 5188 | GetHwReg8188EU(padapter, HW_VAR_RF_TYPE,= (u8 *)(&rf_type)); | ^~~~~~~~~~~~~~ | HAL_RF_TYPE drivers/staging/r8188eu/core/rtw_mlme_ext.c:5188:50: note: each undeclar= ed identifier is reported only once for each function it appears in >> drivers/staging/r8188eu/core/rtw_mlme_ext.c:5190:30: error: 'RF_1T1R' un= declared (first use in this function) 5190 | case RF_1T1R: | ^~~~~~~ >> drivers/staging/r8188eu/core/rtw_mlme_ext.c:5195:30: error: 'RF_2T2R' un= declared (first use in this function) 5195 | case RF_2T2R: | ^~~~~~~ >> drivers/staging/r8188eu/core/rtw_mlme_ext.c:5196:30: error: 'RF_1T2R' un= declared (first use in this function) 5196 | case RF_1T2R: | ^~~~~~~ vim +/RF_1T1R +509 drivers/staging/r8188eu/hal/rtl8188e_phycfg.c 8cd574e6af5463 Phillip Potter 2021-07-28 488 = 8cd574e6af5463 Phillip Potter 2021-07-28 489 void storePwrIndexDiffRateO= ffset(struct adapter *Adapter, u32 RegAddr, u32 BitMask, u32 Data) 8cd574e6af5463 Phillip Potter 2021-07-28 490 { 8cd574e6af5463 Phillip Potter 2021-07-28 491 struct hal_data_8188e *pHa= lData =3D GET_HAL_DATA(Adapter); 8cd574e6af5463 Phillip Potter 2021-07-28 492 = 8cd574e6af5463 Phillip Potter 2021-07-28 493 if (RegAddr =3D=3D rTxAGC_= A_Rate18_06) 8cd574e6af5463 Phillip Potter 2021-07-28 494 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][0] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 495 if (RegAddr =3D=3D rTxAGC_= A_Rate54_24) 8cd574e6af5463 Phillip Potter 2021-07-28 496 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][1] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 497 if (RegAddr =3D=3D rTxAGC_= A_CCK1_Mcs32) 8cd574e6af5463 Phillip Potter 2021-07-28 498 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][6] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 499 if (RegAddr =3D=3D rTxAGC_= B_CCK11_A_CCK2_11 && BitMask =3D=3D 0xffffff00) 8cd574e6af5463 Phillip Potter 2021-07-28 500 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][7] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 501 if (RegAddr =3D=3D rTxAGC_= A_Mcs03_Mcs00) 8cd574e6af5463 Phillip Potter 2021-07-28 502 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][2] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 503 if (RegAddr =3D=3D rTxAGC_= A_Mcs07_Mcs04) 8cd574e6af5463 Phillip Potter 2021-07-28 504 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][3] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 505 if (RegAddr =3D=3D rTxAGC_= A_Mcs11_Mcs08) 8cd574e6af5463 Phillip Potter 2021-07-28 506 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][4] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 507 if (RegAddr =3D=3D rTxAGC_= A_Mcs15_Mcs12) { 8cd574e6af5463 Phillip Potter 2021-07-28 508 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][5] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 @509 if (pHalData->rf_type =3D= =3D RF_1T1R) 8cd574e6af5463 Phillip Potter 2021-07-28 510 pHalData->pwrGroupCnt++; 8cd574e6af5463 Phillip Potter 2021-07-28 511 } 8cd574e6af5463 Phillip Potter 2021-07-28 512 if (RegAddr =3D=3D rTxAGC_= B_Rate18_06) 8cd574e6af5463 Phillip Potter 2021-07-28 513 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][8] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 514 if (RegAddr =3D=3D rTxAGC_= B_Rate54_24) 8cd574e6af5463 Phillip Potter 2021-07-28 515 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][9] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 516 if (RegAddr =3D=3D rTxAGC_= B_CCK1_55_Mcs32) 8cd574e6af5463 Phillip Potter 2021-07-28 517 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][14] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 518 if (RegAddr =3D=3D rTxAGC_= B_CCK11_A_CCK2_11 && BitMask =3D=3D 0x000000ff) 8cd574e6af5463 Phillip Potter 2021-07-28 519 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][15] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 520 if (RegAddr =3D=3D rTxAGC_= B_Mcs03_Mcs00) 8cd574e6af5463 Phillip Potter 2021-07-28 521 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][10] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 522 if (RegAddr =3D=3D rTxAGC_= B_Mcs07_Mcs04) 8cd574e6af5463 Phillip Potter 2021-07-28 523 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][11] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 524 if (RegAddr =3D=3D rTxAGC_= B_Mcs11_Mcs08) 8cd574e6af5463 Phillip Potter 2021-07-28 525 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][12] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 526 if (RegAddr =3D=3D rTxAGC_= B_Mcs15_Mcs12) { 8cd574e6af5463 Phillip Potter 2021-07-28 527 pHalData->MCSTxPowerLevel= OriginalOffset[pHalData->pwrGroupCnt][13] =3D Data; 8cd574e6af5463 Phillip Potter 2021-07-28 528 if (pHalData->rf_type != =3D RF_1T1R) 8cd574e6af5463 Phillip Potter 2021-07-28 529 pHalData->pwrGroupCnt++; 8cd574e6af5463 Phillip Potter 2021-07-28 530 } 8cd574e6af5463 Phillip Potter 2021-07-28 531 } 8cd574e6af5463 Phillip Potter 2021-07-28 532 = 8cd574e6af5463 Phillip Potter 2021-07-28 533 static int phy_BB8188E_Conf= ig_ParaFile(struct adapter *Adapter) 8cd574e6af5463 Phillip Potter 2021-07-28 534 { 2f4b652d744fa6 Michael Straube 2021-09-12 535 struct eeprom_priv *pEEPRO= M =3D &Adapter->eeprompriv; 8cd574e6af5463 Phillip Potter 2021-07-28 536 struct hal_data_8188e *pH= alData =3D GET_HAL_DATA(Adapter); 8cd574e6af5463 Phillip Potter 2021-07-28 537 int rtStatus =3D _SUCCES= S; 8cd574e6af5463 Phillip Potter 2021-07-28 538 = 8cd574e6af5463 Phillip Potter 2021-07-28 539 /* */ 8cd574e6af5463 Phillip Potter 2021-07-28 540 /* 1. Read PHY_REG.TXT BB= INIT!! */ 8cd574e6af5463 Phillip Potter 2021-07-28 541 /* We will separate as 88= C / 92C according to chip version */ 8cd574e6af5463 Phillip Potter 2021-07-28 542 /* */ 8cd574e6af5463 Phillip Potter 2021-07-28 543 if (HAL_STATUS_FAILURE =3D= =3D ODM_ConfigBBWithHeaderFile(&pHalData->odmpriv, CONFIG_BB_PHY_REG)) 8cd574e6af5463 Phillip Potter 2021-07-28 544 rtStatus =3D _FAIL; 8cd574e6af5463 Phillip Potter 2021-07-28 545 if (rtStatus !=3D _SUCCESS) 8cd574e6af5463 Phillip Potter 2021-07-28 546 goto phy_BB8190_Config_Pa= raFile_Fail; 8cd574e6af5463 Phillip Potter 2021-07-28 547 = 8cd574e6af5463 Phillip Potter 2021-07-28 548 /* 2. If EEPROM or EFUSE = autoload OK, We must config by PHY_REG_PG.txt */ 8cd574e6af5463 Phillip Potter 2021-07-28 549 if (!pEEPROM->bautoload_fa= il_flag) { 8cd574e6af5463 Phillip Potter 2021-07-28 550 pHalData->pwrGroupCnt =3D= 0; 8cd574e6af5463 Phillip Potter 2021-07-28 551 = 8cd574e6af5463 Phillip Potter 2021-07-28 552 if (HAL_STATUS_FAILURE = =3D=3D ODM_ConfigBBWithHeaderFile(&pHalData->odmpriv, CONFIG_BB_PHY_REG_PG)) 8cd574e6af5463 Phillip Potter 2021-07-28 553 rtStatus =3D _FAIL; 8cd574e6af5463 Phillip Potter 2021-07-28 554 } 8cd574e6af5463 Phillip Potter 2021-07-28 555 = 8cd574e6af5463 Phillip Potter 2021-07-28 556 if (rtStatus !=3D _SUCCESS) 8cd574e6af5463 Phillip Potter 2021-07-28 557 goto phy_BB8190_Config_Pa= raFile_Fail; 8cd574e6af5463 Phillip Potter 2021-07-28 558 = 8cd574e6af5463 Phillip Potter 2021-07-28 559 /* 3. BB AGC table Initia= lization */ 8cd574e6af5463 Phillip Potter 2021-07-28 560 if (HAL_STATUS_FAILURE =3D= =3D ODM_ConfigBBWithHeaderFile(&pHalData->odmpriv, CONFIG_BB_AGC_TAB)) 8cd574e6af5463 Phillip Potter 2021-07-28 561 rtStatus =3D _FAIL; 8cd574e6af5463 Phillip Potter 2021-07-28 562 = 8cd574e6af5463 Phillip Potter 2021-07-28 563 if (rtStatus !=3D _SUCCESS) 8cd574e6af5463 Phillip Potter 2021-07-28 564 goto phy_BB8190_Config_Pa= raFile_Fail; 8cd574e6af5463 Phillip Potter 2021-07-28 565 = 8cd574e6af5463 Phillip Potter 2021-07-28 566 phy_BB8190_Config_ParaFile_= Fail: 8cd574e6af5463 Phillip Potter 2021-07-28 567 = 8cd574e6af5463 Phillip Potter 2021-07-28 568 return rtStatus; 8cd574e6af5463 Phillip Potter 2021-07-28 569 } 8cd574e6af5463 Phillip Potter 2021-07-28 570 = 8cd574e6af5463 Phillip Potter 2021-07-28 571 int 8cd574e6af5463 Phillip Potter 2021-07-28 572 PHY_BBConfig8188E( 8cd574e6af5463 Phillip Potter 2021-07-28 573 struct adapter *Adapter 8cd574e6af5463 Phillip Potter 2021-07-28 574 ) 8cd574e6af5463 Phillip Potter 2021-07-28 575 { 8cd574e6af5463 Phillip Potter 2021-07-28 576 int rtStatus =3D _SUCCESS; 8cd574e6af5463 Phillip Potter 2021-07-28 577 struct hal_data_8188e *pHa= lData =3D GET_HAL_DATA(Adapter); 8cd574e6af5463 Phillip Potter 2021-07-28 578 u32 RegVal; 8cd574e6af5463 Phillip Potter 2021-07-28 579 u8 CrystalCap; 8cd574e6af5463 Phillip Potter 2021-07-28 580 = 8cd574e6af5463 Phillip Potter 2021-07-28 581 phy_InitBBRFRegisterDefini= tion(Adapter); 8cd574e6af5463 Phillip Potter 2021-07-28 582 = 8cd574e6af5463 Phillip Potter 2021-07-28 583 /* Enable BB and RF */ 8cd574e6af5463 Phillip Potter 2021-07-28 584 RegVal =3D rtw_read16(Adap= ter, REG_SYS_FUNC_EN); dcda94c9412a07 Larry Finger 2021-08-10 585 rtw_write16(Adapter, REG_S= YS_FUNC_EN, (u16)(RegVal | BIT(13) | BIT(0) | BIT(1))); 8cd574e6af5463 Phillip Potter 2021-07-28 586 = 8cd574e6af5463 Phillip Potter 2021-07-28 587 /* 20090923 Joseph: Advis= ed by Steven and Jenyu. Power sequence before init RF. */ 8cd574e6af5463 Phillip Potter 2021-07-28 588 = 8cd574e6af5463 Phillip Potter 2021-07-28 589 rtw_write8(Adapter, REG_RF= _CTRL, RF_EN | RF_RSTB | RF_SDMRSTB); 8cd574e6af5463 Phillip Potter 2021-07-28 590 = 8cd574e6af5463 Phillip Potter 2021-07-28 591 rtw_write8(Adapter, REG_SY= S_FUNC_EN, FEN_USBA | FEN_USBD | FEN_BB_GLB_RSTn | FEN_BBRSTB); 8cd574e6af5463 Phillip Potter 2021-07-28 592 = 8cd574e6af5463 Phillip Potter 2021-07-28 593 /* Config BB and AGC */ 8cd574e6af5463 Phillip Potter 2021-07-28 594 rtStatus =3D phy_BB8188E_C= onfig_ParaFile(Adapter); 8cd574e6af5463 Phillip Potter 2021-07-28 595 = 8cd574e6af5463 Phillip Potter 2021-07-28 596 /* write 0x24[16:11] =3D = 0x24[22:17] =3D CrystalCap */ 8cd574e6af5463 Phillip Potter 2021-07-28 597 CrystalCap =3D pHalData->C= rystalCap & 0x3F; 8cd574e6af5463 Phillip Potter 2021-07-28 598 PHY_SetBBReg(Adapter, REG_= AFE_XTAL_CTRL, 0x7ff800, (CrystalCap | (CrystalCap << 6))); 8cd574e6af5463 Phillip Potter 2021-07-28 599 = 8cd574e6af5463 Phillip Potter 2021-07-28 600 return rtStatus; 8cd574e6af5463 Phillip Potter 2021-07-28 601 } 8cd574e6af5463 Phillip Potter 2021-07-28 602 = 8cd574e6af5463 Phillip Potter 2021-07-28 603 int PHY_RFConfig8188E(struc= t adapter *Adapter) 8cd574e6af5463 Phillip Potter 2021-07-28 604 { 8cd574e6af5463 Phillip Potter 2021-07-28 605 int rtStatus =3D _SUCCESS; 8cd574e6af5463 Phillip Potter 2021-07-28 606 = 8cd574e6af5463 Phillip Potter 2021-07-28 607 /* RF config */ 8cd574e6af5463 Phillip Potter 2021-07-28 608 rtStatus =3D PHY_RF6052_Co= nfig8188E(Adapter); 8cd574e6af5463 Phillip Potter 2021-07-28 609 return rtStatus; 8cd574e6af5463 Phillip Potter 2021-07-28 610 } 8cd574e6af5463 Phillip Potter 2021-07-28 611 = 8cd574e6af5463 Phillip Potter 2021-07-28 612 static void getTxPowerIndex= 88E(struct adapter *Adapter, u8 channel, u8 *cckPowerLevel, 8cd574e6af5463 Phillip Potter 2021-07-28 613 u8 *ofdmPowerLeve= l, u8 *BW20PowerLevel, 8cd574e6af5463 Phillip Potter 2021-07-28 614 u8 *BW40PowerLeve= l) 8cd574e6af5463 Phillip Potter 2021-07-28 615 { 8cd574e6af5463 Phillip Potter 2021-07-28 616 struct hal_data_8188e *pHa= lData =3D GET_HAL_DATA(Adapter); 8cd574e6af5463 Phillip Potter 2021-07-28 617 u8 index =3D (channel - 1); 8cd574e6af5463 Phillip Potter 2021-07-28 618 u8 TxCount =3D 0, path_num= s; 8cd574e6af5463 Phillip Potter 2021-07-28 619 = 8cd574e6af5463 Phillip Potter 2021-07-28 @620 if ((RF_1T2R =3D=3D pHalDa= ta->rf_type) || (RF_1T1R =3D=3D pHalData->rf_type)) 8cd574e6af5463 Phillip Potter 2021-07-28 621 path_nums =3D 1; 8cd574e6af5463 Phillip Potter 2021-07-28 622 else 8cd574e6af5463 Phillip Potter 2021-07-28 623 path_nums =3D 2; 8cd574e6af5463 Phillip Potter 2021-07-28 624 = 8cd574e6af5463 Phillip Potter 2021-07-28 625 for (TxCount =3D 0; TxCoun= t < path_nums; TxCount++) { 8cd574e6af5463 Phillip Potter 2021-07-28 626 if (TxCount =3D=3D RF_PAT= H_A) { 8cd574e6af5463 Phillip Potter 2021-07-28 627 /* 1. CCK */ 8cd574e6af5463 Phillip Potter 2021-07-28 628 cckPowerLevel[TxCount] = =3D pHalData->Index24G_CCK_Base[TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 629 /* 2. OFDM */ 8cd574e6af5463 Phillip Potter 2021-07-28 630 ofdmPowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 631 pHalData->OFDM_24G_Diff= [TxCount][RF_PATH_A]; 8cd574e6af5463 Phillip Potter 2021-07-28 632 /* 1. BW20 */ 8cd574e6af5463 Phillip Potter 2021-07-28 633 BW20PowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 634 pHalData->BW20_24G_Diff= [TxCount][RF_PATH_A]; 8cd574e6af5463 Phillip Potter 2021-07-28 635 /* 2. BW40 */ 8cd574e6af5463 Phillip Potter 2021-07-28 636 BW40PowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 637 } else if (TxCount =3D=3D= RF_PATH_B) { 8cd574e6af5463 Phillip Potter 2021-07-28 638 /* 1. CCK */ 8cd574e6af5463 Phillip Potter 2021-07-28 639 cckPowerLevel[TxCount] = =3D pHalData->Index24G_CCK_Base[TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 640 /* 2. OFDM */ 8cd574e6af5463 Phillip Potter 2021-07-28 641 ofdmPowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 642 pHalData->BW20_24G_Diff[= RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 643 pHalData->BW20_24G_Diff[= TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 644 /* 1. BW20 */ 8cd574e6af5463 Phillip Potter 2021-07-28 645 BW20PowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 646 pHalData->BW20_24G_Diff[= TxCount][RF_PATH_A] + 8cd574e6af5463 Phillip Potter 2021-07-28 647 pHalData->BW20_24G_Diff[= TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 648 /* 2. BW40 */ 8cd574e6af5463 Phillip Potter 2021-07-28 649 BW40PowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 650 } else if (TxCount =3D=3D= RF_PATH_C) { 8cd574e6af5463 Phillip Potter 2021-07-28 651 /* 1. CCK */ 8cd574e6af5463 Phillip Potter 2021-07-28 652 cckPowerLevel[TxCount] = =3D pHalData->Index24G_CCK_Base[TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 653 /* 2. OFDM */ 8cd574e6af5463 Phillip Potter 2021-07-28 654 ofdmPowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 655 pHalData->BW20_24G_Diff[= RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 656 pHalData->BW20_24G_Diff[= RF_PATH_B][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 657 pHalData->BW20_24G_Diff[= TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 658 /* 1. BW20 */ 8cd574e6af5463 Phillip Potter 2021-07-28 659 BW20PowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 660 pHalData->BW20_24G_Diff[= RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 661 pHalData->BW20_24G_Diff[= RF_PATH_B][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 662 pHalData->BW20_24G_Diff[= TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 663 /* 2. BW40 */ 8cd574e6af5463 Phillip Potter 2021-07-28 664 BW40PowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 665 } else if (TxCount =3D=3D= RF_PATH_D) { 8cd574e6af5463 Phillip Potter 2021-07-28 666 /* 1. CCK */ 8cd574e6af5463 Phillip Potter 2021-07-28 667 cckPowerLevel[TxCount] = =3D pHalData->Index24G_CCK_Base[TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 668 /* 2. OFDM */ 8cd574e6af5463 Phillip Potter 2021-07-28 669 ofdmPowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 670 pHalData->BW20_24G_Diff[= RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 671 pHalData->BW20_24G_Diff[= RF_PATH_B][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 672 pHalData->BW20_24G_Diff[= RF_PATH_C][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 673 pHalData->BW20_24G_Diff[= TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 674 = 8cd574e6af5463 Phillip Potter 2021-07-28 675 /* 1. BW20 */ 8cd574e6af5463 Phillip Potter 2021-07-28 676 BW20PowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 677 pHalData->BW20_24G_Diff[= RF_PATH_A][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 678 pHalData->BW20_24G_Diff[= RF_PATH_B][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 679 pHalData->BW20_24G_Diff[= RF_PATH_C][index] + 8cd574e6af5463 Phillip Potter 2021-07-28 680 pHalData->BW20_24G_Diff[= TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 681 = 8cd574e6af5463 Phillip Potter 2021-07-28 682 /* 2. BW40 */ 8cd574e6af5463 Phillip Potter 2021-07-28 683 BW40PowerLevel[TxCount] = =3D pHalData->Index24G_BW40_Base[TxCount][index]; 8cd574e6af5463 Phillip Potter 2021-07-28 684 } 8cd574e6af5463 Phillip Potter 2021-07-28 685 } 8cd574e6af5463 Phillip Potter 2021-07-28 686 } 8cd574e6af5463 Phillip Potter 2021-07-28 687 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3764282100131267534==--