Content-Type: multipart/mixed; boundary="===============8540906973157905583==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 2/4] staging: r8188eu: remove dead code for tx power tracking Date: Fri, 04 Feb 2022 09:30:49 +0800 Message-ID: <202202040626.c1OWVOQJ-lkp@intel.com> In-Reply-To: <20220203203217.252156-3-martin@kaiser.cx> List-Id: --===============8540906973157905583== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Martin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Martin-Kaiser/staging-r818= 8eu-remove-unused-code-for-RF_PATH_B/20220204-043516 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git = d0d82cb741d0ad42bb776e17011c98fcdab9fee6 config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220204= /202202040626.c1OWVOQJ-lkp(a)intel.com/config) compiler: m68k-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/91ca3b223f675ccb06197602f= fb6a52b01c999b9 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Martin-Kaiser/staging-r8188eu-remo= ve-unused-code-for-RF_PATH_B/20220204-043516 git checkout 91ca3b223f675ccb06197602ffb6a52b01c999b9 # 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=3Dm68k SHELL=3D/bin/bash drivers/staging/r8188eu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/staging/r8188eu/hal/HalPhyRf_8188e.c: In function 'odm_TXPowerTr= ackingCallback_ThermalMeter_8188E': >> drivers/staging/r8188eu/hal/HalPhyRf_8188e.c:106:16: warning: variable '= ele_C' set but not used [-Wunused-but-set-variable] 106 | s32 Y, ele_C =3D 0; | ^~~~~ >> drivers/staging/r8188eu/hal/HalPhyRf_8188e.c:105:13: warning: variable '= ele_A' set but not used [-Wunused-but-set-variable] 105 | s32 ele_A =3D 0, ele_D, TempCCk, X; | ^~~~~ vim +/ele_C +106 drivers/staging/r8188eu/hal/HalPhyRf_8188e.c 8cd574e6af5463 Phillip Potter 2021-07-28 94 = 8cd574e6af5463 Phillip Potter 2021-07-28 95 /* 091212 chiyokolin */ 8cd574e6af5463 Phillip Potter 2021-07-28 96 void 8cd574e6af5463 Phillip Potter 2021-07-28 97 odm_TXPowerTrackingCallback= _ThermalMeter_8188E( 8cd574e6af5463 Phillip Potter 2021-07-28 98 struct adapter *Adapter 8cd574e6af5463 Phillip Potter 2021-07-28 99 ) 8cd574e6af5463 Phillip Potter 2021-07-28 100 { d904512db6f372 Michael Straube 2021-12-07 101 struct hal_data_8188e *pHa= lData =3D &Adapter->haldata; 8cd574e6af5463 Phillip Potter 2021-07-28 102 u8 ThermalValue =3D 0, del= ta, delta_LCK, delta_IQK, offset; 8cd574e6af5463 Phillip Potter 2021-07-28 103 u8 ThermalValue_AVG_count = =3D 0; 8cd574e6af5463 Phillip Potter 2021-07-28 104 u32 ThermalValue_AVG =3D 0; 91ca3b223f675c Martin Kaiser 2022-02-03 @105 s32 ele_A =3D 0, ele_D, Te= mpCCk, X; 8cd574e6af5463 Phillip Potter 2021-07-28 @106 s32 Y, ele_C =3D 0; 8cd574e6af5463 Phillip Potter 2021-07-28 107 s8 OFDM_index[2], CCK_inde= x =3D 0; 8cd574e6af5463 Phillip Potter 2021-07-28 108 s8 OFDM_index_old[2] =3D {= 0, 0}, CCK_index_old =3D 0; 8cd574e6af5463 Phillip Potter 2021-07-28 109 u32 i =3D 0, j =3D 0; 8cd574e6af5463 Phillip Potter 2021-07-28 110 = 8cd574e6af5463 Phillip Potter 2021-07-28 111 u8 OFDM_min_index =3D 6, r= f; /* OFDM BB Swing should be less than +3.0dB, which is required by Arthur= */ 8cd574e6af5463 Phillip Potter 2021-07-28 112 s8 OFDM_index_mapping[2][i= ndex_mapping_NUM_88E] =3D { 8cd574e6af5463 Phillip Potter 2021-07-28 113 {0, 0, 2, 3, 4, 4, /* 2= .4G, decrease power */ 8cd574e6af5463 Phillip Potter 2021-07-28 114 5, 6, 7, 7, 8, 9, 8cd574e6af5463 Phillip Potter 2021-07-28 115 10, 10, 11}, /* For lowe= r temperature, 20120220 updated on 20120220. */ 8cd574e6af5463 Phillip Potter 2021-07-28 116 {0, 0, -1, -2, -3, -4, = /* 2.4G, increase power */ 8cd574e6af5463 Phillip Potter 2021-07-28 117 -4, -4, -4, -5, -7, -8, 8cd574e6af5463 Phillip Potter 2021-07-28 118 -9, -9, -10}, 8cd574e6af5463 Phillip Potter 2021-07-28 119 }; 8cd574e6af5463 Phillip Potter 2021-07-28 120 u8 Thermal_mapping[2][inde= x_mapping_NUM_88E] =3D { 8cd574e6af5463 Phillip Potter 2021-07-28 121 {0, 2, 4, 6, 8, 10, /* = 2.4G, decrease power */ 8cd574e6af5463 Phillip Potter 2021-07-28 122 12, 14, 16, 18, 20, 22, 8cd574e6af5463 Phillip Potter 2021-07-28 123 24, 26, 27}, 8cd574e6af5463 Phillip Potter 2021-07-28 124 {0, 2, 4, 6, 8, 10, /* = 2.4G,, increase power */ 8cd574e6af5463 Phillip Potter 2021-07-28 125 12, 14, 16, 18, 20, 22, 8cd574e6af5463 Phillip Potter 2021-07-28 126 25, 25, 25}, 8cd574e6af5463 Phillip Potter 2021-07-28 127 }; 8cd574e6af5463 Phillip Potter 2021-07-28 128 struct odm_dm_struct *dm_o= dm =3D &pHalData->odmpriv; 8cd574e6af5463 Phillip Potter 2021-07-28 129 = 8cd574e6af5463 Phillip Potter 2021-07-28 130 /* 2012/04/25 MH Add for = tx power tracking to set tx power in tx agc for 88E. */ 8cd574e6af5463 Phillip Potter 2021-07-28 131 odm_TxPwrTrackSetPwr88E(dm= _odm); 8cd574e6af5463 Phillip Potter 2021-07-28 132 = 8cd574e6af5463 Phillip Potter 2021-07-28 133 dm_odm->RFCalibrateInfo.TX= PowerTrackingCallbackCnt++; /* cosa add for debug */ 8cd574e6af5463 Phillip Potter 2021-07-28 134 dm_odm->RFCalibrateInfo.bT= XPowerTrackingInit =3D true; 8cd574e6af5463 Phillip Potter 2021-07-28 135 = 8cd574e6af5463 Phillip Potter 2021-07-28 136 /* RFCalibrateIn= fo.RegA24 will be initialized when ODM HW configuring, but MP configures wi= th para files. */ 8cd574e6af5463 Phillip Potter 2021-07-28 137 dm_odm->RFCalibrateInfo.Re= gA24 =3D 0x090e1317; 8cd574e6af5463 Phillip Potter 2021-07-28 138 = e83545b1ae62e4 Michael Straube 2021-12-29 139 ThermalValue =3D (u8)rtl81= 88e_PHY_QueryRFReg(Adapter, RF_PATH_A, RF_T_METER_88E, 0xfc00); /* 0x42: RF= Reg[15:10] 88E */ 8cd574e6af5463 Phillip Potter 2021-07-28 140 = 8cd574e6af5463 Phillip Potter 2021-07-28 141 rf =3D 1; 8cd574e6af5463 Phillip Potter 2021-07-28 142 = 8cd574e6af5463 Phillip Potter 2021-07-28 143 if (ThermalValue) { 8cd574e6af5463 Phillip Potter 2021-07-28 144 /* Query OFDM path A defa= ult setting */ 8aedc08edfcd0b Michael Straube 2021-12-29 145 ele_D =3D rtl8188e_PHY_Qu= eryBBReg(Adapter, rOFDM0_XATxIQImbalance, bMaskDWord) & bMaskOFDM_D; 8cd574e6af5463 Phillip Potter 2021-07-28 146 for (i =3D 0; i < OFDM_TA= BLE_SIZE_92D; i++) { /* find the index */ 8cd574e6af5463 Phillip Potter 2021-07-28 147 if (ele_D =3D=3D (OFDMSw= ingTable[i] & bMaskOFDM_D)) { 8cd574e6af5463 Phillip Potter 2021-07-28 148 OFDM_index_old[0] =3D (= u8)i; 8cd574e6af5463 Phillip Potter 2021-07-28 149 dm_odm->BbSwingIdxOfdmB= ase =3D (u8)i; 8cd574e6af5463 Phillip Potter 2021-07-28 150 break; 8cd574e6af5463 Phillip Potter 2021-07-28 151 } 8cd574e6af5463 Phillip Potter 2021-07-28 152 } 8cd574e6af5463 Phillip Potter 2021-07-28 153 = 8cd574e6af5463 Phillip Potter 2021-07-28 154 /* Query CCK default sett= ing From 0xa24 */ 8cd574e6af5463 Phillip Potter 2021-07-28 155 TempCCk =3D dm_odm->RFCal= ibrateInfo.RegA24; 8cd574e6af5463 Phillip Potter 2021-07-28 156 = 8cd574e6af5463 Phillip Potter 2021-07-28 157 for (i =3D 0; i < CCK_TAB= LE_SIZE; i++) { 8cd574e6af5463 Phillip Potter 2021-07-28 158 if (dm_odm->RFCalibrateI= nfo.bCCKinCH14) { 85dbc7e3abdc24 Michael Straube 2021-12-29 159 if (memcmp((void *)&Tem= pCCk, (void *)&CCKSwingTable_Ch14[i][2], 4)) { 8cd574e6af5463 Phillip Potter 2021-07-28 160 CCK_index_old =3D (u8)= i; 8cd574e6af5463 Phillip Potter 2021-07-28 161 dm_odm->BbSwingIdxCckB= ase =3D (u8)i; 8cd574e6af5463 Phillip Potter 2021-07-28 162 break; 8cd574e6af5463 Phillip Potter 2021-07-28 163 } 8cd574e6af5463 Phillip Potter 2021-07-28 164 } else { 85dbc7e3abdc24 Michael Straube 2021-12-29 165 if (memcmp((void *)&Tem= pCCk, (void *)&CCKSwingTable_Ch1_Ch13[i][2], 4)) { 8cd574e6af5463 Phillip Potter 2021-07-28 166 CCK_index_old =3D (u8)= i; 8cd574e6af5463 Phillip Potter 2021-07-28 167 dm_odm->BbSwingIdxCckB= ase =3D (u8)i; 8cd574e6af5463 Phillip Potter 2021-07-28 168 break; 8cd574e6af5463 Phillip Potter 2021-07-28 169 } 8cd574e6af5463 Phillip Potter 2021-07-28 170 } 8cd574e6af5463 Phillip Potter 2021-07-28 171 } 8cd574e6af5463 Phillip Potter 2021-07-28 172 = 8cd574e6af5463 Phillip Potter 2021-07-28 173 if (!dm_odm->RFCalibrateI= nfo.ThermalValue) { 8cd574e6af5463 Phillip Potter 2021-07-28 174 dm_odm->RFCalibrateInfo.= ThermalValue =3D pHalData->EEPROMThermalMeter; 8cd574e6af5463 Phillip Potter 2021-07-28 175 dm_odm->RFCalibrateInfo.= ThermalValue_LCK =3D ThermalValue; 8cd574e6af5463 Phillip Potter 2021-07-28 176 dm_odm->RFCalibrateInfo.= ThermalValue_IQK =3D ThermalValue; 8cd574e6af5463 Phillip Potter 2021-07-28 177 = 8cd574e6af5463 Phillip Potter 2021-07-28 178 for (i =3D 0; i < rf; i+= +) 8cd574e6af5463 Phillip Potter 2021-07-28 179 dm_odm->RFCalibrateInfo= .OFDM_index[i] =3D OFDM_index_old[i]; 8cd574e6af5463 Phillip Potter 2021-07-28 180 dm_odm->RFCalibrateInfo.= CCK_index =3D CCK_index_old; 8cd574e6af5463 Phillip Potter 2021-07-28 181 } 8cd574e6af5463 Phillip Potter 2021-07-28 182 = 8cd574e6af5463 Phillip Potter 2021-07-28 183 /* calculate average ther= mal meter */ 8cd574e6af5463 Phillip Potter 2021-07-28 184 dm_odm->RFCalibrateInfo.T= hermalValue_AVG[dm_odm->RFCalibrateInfo.ThermalValue_AVG_index] =3D Thermal= Value; 8cd574e6af5463 Phillip Potter 2021-07-28 185 dm_odm->RFCalibrateInfo.T= hermalValue_AVG_index++; 8cd574e6af5463 Phillip Potter 2021-07-28 186 if (dm_odm->RFCalibrateIn= fo.ThermalValue_AVG_index =3D=3D AVG_THERMAL_NUM_88E) 8cd574e6af5463 Phillip Potter 2021-07-28 187 dm_odm->RFCalibrateInfo.= ThermalValue_AVG_index =3D 0; 8cd574e6af5463 Phillip Potter 2021-07-28 188 = 8cd574e6af5463 Phillip Potter 2021-07-28 189 for (i =3D 0; i < AVG_THE= RMAL_NUM_88E; i++) { 8cd574e6af5463 Phillip Potter 2021-07-28 190 if (dm_odm->RFCalibrateI= nfo.ThermalValue_AVG[i]) { 8cd574e6af5463 Phillip Potter 2021-07-28 191 ThermalValue_AVG +=3D d= m_odm->RFCalibrateInfo.ThermalValue_AVG[i]; 8cd574e6af5463 Phillip Potter 2021-07-28 192 ThermalValue_AVG_count+= +; 8cd574e6af5463 Phillip Potter 2021-07-28 193 } 8cd574e6af5463 Phillip Potter 2021-07-28 194 } 8cd574e6af5463 Phillip Potter 2021-07-28 195 = 73f1e06f55d44e Phillip Potter 2021-07-31 196 if (ThermalValue_AVG_coun= t) 8cd574e6af5463 Phillip Potter 2021-07-28 197 ThermalValue =3D (u8)(Th= ermalValue_AVG / ThermalValue_AVG_count); 8cd574e6af5463 Phillip Potter 2021-07-28 198 = 8cd574e6af5463 Phillip Potter 2021-07-28 199 if (dm_odm->RFCalibrateIn= fo.bReloadtxpowerindex) { 8cd574e6af5463 Phillip Potter 2021-07-28 200 delta =3D ThermalValue >= pHalData->EEPROMThermalMeter ? 8cd574e6af5463 Phillip Potter 2021-07-28 201 (ThermalValue - pHalDat= a->EEPROMThermalMeter) : 8cd574e6af5463 Phillip Potter 2021-07-28 202 (pHalData->EEPROMTherma= lMeter - ThermalValue); 8cd574e6af5463 Phillip Potter 2021-07-28 203 dm_odm->RFCalibrateInfo.= bReloadtxpowerindex =3D false; 8cd574e6af5463 Phillip Potter 2021-07-28 204 dm_odm->RFCalibrateInfo.= bDoneTxpower =3D false; 8cd574e6af5463 Phillip Potter 2021-07-28 205 } else if (dm_odm->RFCali= brateInfo.bDoneTxpower) { 8cd574e6af5463 Phillip Potter 2021-07-28 206 delta =3D (ThermalValue = > dm_odm->RFCalibrateInfo.ThermalValue) ? 8cd574e6af5463 Phillip Potter 2021-07-28 207 (ThermalValue - dm_odm-= >RFCalibrateInfo.ThermalValue) : 8cd574e6af5463 Phillip Potter 2021-07-28 208 (dm_odm->RFCalibrateInf= o.ThermalValue - ThermalValue); 8cd574e6af5463 Phillip Potter 2021-07-28 209 } else { 8cd574e6af5463 Phillip Potter 2021-07-28 210 delta =3D ThermalValue >= pHalData->EEPROMThermalMeter ? 8cd574e6af5463 Phillip Potter 2021-07-28 211 (ThermalValue - pHalDat= a->EEPROMThermalMeter) : 8cd574e6af5463 Phillip Potter 2021-07-28 212 (pHalData->EEPROMTherma= lMeter - ThermalValue); 8cd574e6af5463 Phillip Potter 2021-07-28 213 } 8cd574e6af5463 Phillip Potter 2021-07-28 214 delta_LCK =3D (ThermalVal= ue > dm_odm->RFCalibrateInfo.ThermalValue_LCK) ? 8cd574e6af5463 Phillip Potter 2021-07-28 215 (ThermalValue - dm_o= dm->RFCalibrateInfo.ThermalValue_LCK) : 8cd574e6af5463 Phillip Potter 2021-07-28 216 (dm_odm->RFCalibrate= Info.ThermalValue_LCK - ThermalValue); 8cd574e6af5463 Phillip Potter 2021-07-28 217 delta_IQK =3D (ThermalVal= ue > dm_odm->RFCalibrateInfo.ThermalValue_IQK) ? 8cd574e6af5463 Phillip Potter 2021-07-28 218 (ThermalValue - dm_o= dm->RFCalibrateInfo.ThermalValue_IQK) : 8cd574e6af5463 Phillip Potter 2021-07-28 219 (dm_odm->RFCalibrate= Info.ThermalValue_IQK - ThermalValue); 8cd574e6af5463 Phillip Potter 2021-07-28 220 = 8cd574e6af5463 Phillip Potter 2021-07-28 221 if ((delta_LCK >=3D 8)) {= /* Delta temperature is equal to or larger than 20 centigrade. */ 8cd574e6af5463 Phillip Potter 2021-07-28 222 dm_odm->RFCalibrateInfo.= ThermalValue_LCK =3D ThermalValue; 8cd574e6af5463 Phillip Potter 2021-07-28 223 PHY_LCCalibrate_8188E(Ad= apter); 8cd574e6af5463 Phillip Potter 2021-07-28 224 } 8cd574e6af5463 Phillip Potter 2021-07-28 225 = 8cd574e6af5463 Phillip Potter 2021-07-28 226 if (delta > 0 && dm_odm->= RFCalibrateInfo.TxPowerTrackControl) { 8cd574e6af5463 Phillip Potter 2021-07-28 227 delta =3D ThermalValue >= pHalData->EEPROMThermalMeter ? 8cd574e6af5463 Phillip Potter 2021-07-28 228 (ThermalValue - pHalDat= a->EEPROMThermalMeter) : 8cd574e6af5463 Phillip Potter 2021-07-28 229 (pHalData->EEPROMTherma= lMeter - ThermalValue); 8cd574e6af5463 Phillip Potter 2021-07-28 230 /* calculate new OFDM / = CCK offset */ 8cd574e6af5463 Phillip Potter 2021-07-28 231 if (ThermalValue > pHalD= ata->EEPROMThermalMeter) 8cd574e6af5463 Phillip Potter 2021-07-28 232 j =3D 1; 8cd574e6af5463 Phillip Potter 2021-07-28 233 else 8cd574e6af5463 Phillip Potter 2021-07-28 234 j =3D 0; 8cd574e6af5463 Phillip Potter 2021-07-28 235 for (offset =3D 0; offse= t < index_mapping_NUM_88E; offset++) { 8cd574e6af5463 Phillip Potter 2021-07-28 236 if (delta < Thermal_map= ping[j][offset]) { 8cd574e6af5463 Phillip Potter 2021-07-28 237 if (offset !=3D 0) 8cd574e6af5463 Phillip Potter 2021-07-28 238 offset--; 8cd574e6af5463 Phillip Potter 2021-07-28 239 break; 8cd574e6af5463 Phillip Potter 2021-07-28 240 } 8cd574e6af5463 Phillip Potter 2021-07-28 241 } 8cd574e6af5463 Phillip Potter 2021-07-28 242 if (offset >=3D index_ma= pping_NUM_88E) 8cd574e6af5463 Phillip Potter 2021-07-28 243 offset =3D index_mappin= g_NUM_88E - 1; 8cd574e6af5463 Phillip Potter 2021-07-28 244 for (i =3D 0; i < rf; i+= +) 8cd574e6af5463 Phillip Potter 2021-07-28 245 OFDM_index[i] =3D dm_od= m->RFCalibrateInfo.OFDM_index[i] + OFDM_index_mapping[j][offset]; 8cd574e6af5463 Phillip Potter 2021-07-28 246 CCK_index =3D dm_odm->RF= CalibrateInfo.CCK_index + OFDM_index_mapping[j][offset]; 8cd574e6af5463 Phillip Potter 2021-07-28 247 = 8cd574e6af5463 Phillip Potter 2021-07-28 248 for (i =3D 0; i < rf; i+= +) { 8cd574e6af5463 Phillip Potter 2021-07-28 249 if (OFDM_index[i] > OFD= M_TABLE_SIZE_92D - 1) 8cd574e6af5463 Phillip Potter 2021-07-28 250 OFDM_index[i] =3D OFDM= _TABLE_SIZE_92D - 1; 8cd574e6af5463 Phillip Potter 2021-07-28 251 else if (OFDM_index[i] = < OFDM_min_index) 8cd574e6af5463 Phillip Potter 2021-07-28 252 OFDM_index[i] =3D OFDM= _min_index; 8cd574e6af5463 Phillip Potter 2021-07-28 253 } 8cd574e6af5463 Phillip Potter 2021-07-28 254 = 8cd574e6af5463 Phillip Potter 2021-07-28 255 if (CCK_index > CCK_TABL= E_SIZE - 1) 8cd574e6af5463 Phillip Potter 2021-07-28 256 CCK_index =3D CCK_TABLE= _SIZE - 1; 8cd574e6af5463 Phillip Potter 2021-07-28 257 else if (CCK_index < 0) 8cd574e6af5463 Phillip Potter 2021-07-28 258 CCK_index =3D 0; 8cd574e6af5463 Phillip Potter 2021-07-28 259 = 8cd574e6af5463 Phillip Potter 2021-07-28 260 /* 2 temporarily remove = bNOPG */ 8cd574e6af5463 Phillip Potter 2021-07-28 261 /* Config by SwingTable = */ 8cd574e6af5463 Phillip Potter 2021-07-28 262 if (dm_odm->RFCalibrateI= nfo.TxPowerTrackControl) { 8cd574e6af5463 Phillip Potter 2021-07-28 263 dm_odm->RFCalibrateInfo= .bDoneTxpower =3D true; 8cd574e6af5463 Phillip Potter 2021-07-28 264 = 8cd574e6af5463 Phillip Potter 2021-07-28 265 /* Adujst OFDM Ant_A ac= cording to IQK result */ 8cd574e6af5463 Phillip Potter 2021-07-28 266 ele_D =3D (OFDMSwingTab= le[(u8)OFDM_index[0]] & 0xFFC00000) >> 22; b2ad8ba6300fbb Michael Straube 2021-08-29 267 X =3D dm_odm->RFCalibra= teInfo.IQKMatrixRegSetting.Value[0][0]; b2ad8ba6300fbb Michael Straube 2021-08-29 268 Y =3D dm_odm->RFCalibra= teInfo.IQKMatrixRegSetting.Value[0][1]; 8cd574e6af5463 Phillip Potter 2021-07-28 269 = 8cd574e6af5463 Phillip Potter 2021-07-28 270 /* Revse TX power tabl= e. */ 8cd574e6af5463 Phillip Potter 2021-07-28 271 dm_odm->BbSwingIdxOfdm = =3D (u8)OFDM_index[0]; 8cd574e6af5463 Phillip Potter 2021-07-28 272 dm_odm->BbSwingIdxCck = =3D (u8)CCK_index; 8cd574e6af5463 Phillip Potter 2021-07-28 273 = 8cd574e6af5463 Phillip Potter 2021-07-28 274 if (dm_odm->BbSwingIdxO= fdmCurrent !=3D dm_odm->BbSwingIdxOfdm) { 8cd574e6af5463 Phillip Potter 2021-07-28 275 dm_odm->BbSwingIdxOfdm= Current =3D dm_odm->BbSwingIdxOfdm; 8cd574e6af5463 Phillip Potter 2021-07-28 276 dm_odm->BbSwingFlagOfd= m =3D true; 8cd574e6af5463 Phillip Potter 2021-07-28 277 } 8cd574e6af5463 Phillip Potter 2021-07-28 278 = 8cd574e6af5463 Phillip Potter 2021-07-28 279 if (dm_odm->BbSwingIdxC= ckCurrent !=3D dm_odm->BbSwingIdxCck) { 8cd574e6af5463 Phillip Potter 2021-07-28 280 dm_odm->BbSwingIdxCckC= urrent =3D dm_odm->BbSwingIdxCck; 8cd574e6af5463 Phillip Potter 2021-07-28 281 dm_odm->BbSwingFlagCck= =3D true; 8cd574e6af5463 Phillip Potter 2021-07-28 282 } 8cd574e6af5463 Phillip Potter 2021-07-28 283 = 8cd574e6af5463 Phillip Potter 2021-07-28 284 if (X !=3D 0) { 8cd574e6af5463 Phillip Potter 2021-07-28 285 if ((X & 0x00000200) != =3D 0) 8cd574e6af5463 Phillip Potter 2021-07-28 286 X =3D X | 0xFFFFFC00; 8cd574e6af5463 Phillip Potter 2021-07-28 287 ele_A =3D ((X * ele_D)= >> 8) & 0x000003FF; 8cd574e6af5463 Phillip Potter 2021-07-28 288 = 8cd574e6af5463 Phillip Potter 2021-07-28 289 /* new element C =3D e= lement D x Y */ 8cd574e6af5463 Phillip Potter 2021-07-28 290 if ((Y & 0x00000200) != =3D 0) 8cd574e6af5463 Phillip Potter 2021-07-28 291 Y =3D Y | 0xFFFFFC00; 8cd574e6af5463 Phillip Potter 2021-07-28 292 ele_C =3D ((Y * ele_D)= >> 8) & 0x000003FF; 8cd574e6af5463 Phillip Potter 2021-07-28 293 = 8cd574e6af5463 Phillip Potter 2021-07-28 294 /* 2012/04/23 MH Acco= rding to Luke's suggestion, we can not write BB digital */ 8cd574e6af5463 Phillip Potter 2021-07-28 295 /* to increase TX pow= er. Otherwise, EVM will be bad. */ 8cd574e6af5463 Phillip Potter 2021-07-28 296 } 8cd574e6af5463 Phillip Potter 2021-07-28 297 } 8cd574e6af5463 Phillip Potter 2021-07-28 298 } 8cd574e6af5463 Phillip Potter 2021-07-28 299 = 8cd574e6af5463 Phillip Potter 2021-07-28 300 if (delta_IQK >=3D 8) { /= * Delta temperature is equal to or larger than 20 centigrade. */ 8cd574e6af5463 Phillip Potter 2021-07-28 301 dm_odm->RFCalibrateInfo.= ThermalValue_IQK =3D ThermalValue; 8cd574e6af5463 Phillip Potter 2021-07-28 302 PHY_IQCalibrate_8188E(Ad= apter, false); 8cd574e6af5463 Phillip Potter 2021-07-28 303 } 8cd574e6af5463 Phillip Potter 2021-07-28 304 /* update thermal meter v= alue */ 8cd574e6af5463 Phillip Potter 2021-07-28 305 if (dm_odm->RFCalibrateIn= fo.TxPowerTrackControl) 8cd574e6af5463 Phillip Potter 2021-07-28 306 dm_odm->RFCalibrateInfo.= ThermalValue =3D ThermalValue; 8cd574e6af5463 Phillip Potter 2021-07-28 307 } 8cd574e6af5463 Phillip Potter 2021-07-28 308 dm_odm->RFCalibrateInfo.TX= Powercount =3D 0; 8cd574e6af5463 Phillip Potter 2021-07-28 309 } 8cd574e6af5463 Phillip Potter 2021-07-28 310 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8540906973157905583==--