hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/staging/rtl8723bs/hal/HalPhyRf.c
....@@ -92,7 +92,7 @@
9292 u8 *deltaSwingTableIdx_TUP_B;
9393 u8 *deltaSwingTableIdx_TDOWN_B;
9494
95
- /* 4 2. Initilization (7 steps in total) */
95
+ /* 4 2. Initialization (7 steps in total) */
9696
9797 ConfigureTxpowerTrack(pDM_Odm, &c);
9898
....@@ -213,7 +213,7 @@
213213
214214 /* 3 7. If necessary, move the index of swing table to adjust Tx power. */
215215 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. */
217217 delta =
218218 ThermalValue > pHalData->EEPROMThermalMeter ?
219219 (ThermalValue - pHalData->EEPROMThermalMeter) :
....@@ -621,34 +621,4 @@
621621 );
622622
623623 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
-
654624 }