| .. | .. |
|---|
| 92 | 92 | u8 *deltaSwingTableIdx_TUP_B; |
|---|
| 93 | 93 | u8 *deltaSwingTableIdx_TDOWN_B; |
|---|
| 94 | 94 | |
|---|
| 95 | | - /* 4 2. Initilization (7 steps in total) */ |
|---|
| 95 | + /* 4 2. Initialization (7 steps in total) */ |
|---|
| 96 | 96 | |
|---|
| 97 | 97 | ConfigureTxpowerTrack(pDM_Odm, &c); |
|---|
| 98 | 98 | |
|---|
| .. | .. |
|---|
| 213 | 213 | |
|---|
| 214 | 214 | /* 3 7. If necessary, move the index of swing table to adjust Tx power. */ |
|---|
| 215 | 215 | if (delta > 0 && pDM_Odm->RFCalibrateInfo.TxPowerTrackControl) { |
|---|
| 216 | | - /* delta" here is used to record the absolute value of differrence. */ |
|---|
| 216 | + /* delta" here is used to record the absolute value of difference. */ |
|---|
| 217 | 217 | delta = |
|---|
| 218 | 218 | ThermalValue > pHalData->EEPROMThermalMeter ? |
|---|
| 219 | 219 | (ThermalValue - pHalData->EEPROMThermalMeter) : |
|---|
| .. | .. |
|---|
| 621 | 621 | ); |
|---|
| 622 | 622 | |
|---|
| 623 | 623 | pDM_Odm->RFCalibrateInfo.TXPowercount = 0; |
|---|
| 624 | | -} |
|---|
| 625 | | - |
|---|
| 626 | | - |
|---|
| 627 | | - |
|---|
| 628 | | - |
|---|
| 629 | | -/* 3 ============================================================ */ |
|---|
| 630 | | -/* 3 IQ Calibration */ |
|---|
| 631 | | -/* 3 ============================================================ */ |
|---|
| 632 | | - |
|---|
| 633 | | -u8 ODM_GetRightChnlPlaceforIQK(u8 chnl) |
|---|
| 634 | | -{ |
|---|
| 635 | | - u8 channel_all[ODM_TARGET_CHNL_NUM_2G_5G] = { |
|---|
| 636 | | - 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, |
|---|
| 637 | | - 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, |
|---|
| 638 | | - 60, 62, 64, 100, 102, 104, 106, 108, 110, 112, |
|---|
| 639 | | - 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, |
|---|
| 640 | | - 134, 136, 138, 140, 149, 151, 153, 155, 157, 159, |
|---|
| 641 | | - 161, 163, 165 |
|---|
| 642 | | - }; |
|---|
| 643 | | - u8 place = chnl; |
|---|
| 644 | | - |
|---|
| 645 | | - |
|---|
| 646 | | - if (chnl > 14) { |
|---|
| 647 | | - for (place = 14; place < sizeof(channel_all); place++) { |
|---|
| 648 | | - if (channel_all[place] == chnl) |
|---|
| 649 | | - return place-13; |
|---|
| 650 | | - } |
|---|
| 651 | | - } |
|---|
| 652 | | - return 0; |
|---|
| 653 | | - |
|---|
| 654 | 624 | } |
|---|