staging: rtl8188eu: add spaces around '*' in odm_hwconfig.c
Add spaces around '*' in odm_hwconfig.c to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
195d62c331
commit
079be54766
|
@ -33,7 +33,7 @@ static s32 odm_SignalScaleMapping(struct odm_dm_struct *dm_odm, s32 CurrSig)
|
||||||
if (CurrSig >= 51 && CurrSig <= 100)
|
if (CurrSig >= 51 && CurrSig <= 100)
|
||||||
RetSig = 100;
|
RetSig = 100;
|
||||||
else if (CurrSig >= 41 && CurrSig <= 50)
|
else if (CurrSig >= 41 && CurrSig <= 50)
|
||||||
RetSig = 80 + ((CurrSig - 40)*2);
|
RetSig = 80 + ((CurrSig - 40) * 2);
|
||||||
else if (CurrSig >= 31 && CurrSig <= 40)
|
else if (CurrSig >= 31 && CurrSig <= 40)
|
||||||
RetSig = 66 + (CurrSig - 30);
|
RetSig = 66 + (CurrSig - 30);
|
||||||
else if (CurrSig >= 21 && CurrSig <= 30)
|
else if (CurrSig >= 21 && CurrSig <= 30)
|
||||||
|
@ -110,33 +110,33 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm_dm_struct *dm_odm,
|
||||||
switch (LNA_idx) {
|
switch (LNA_idx) {
|
||||||
case 7:
|
case 7:
|
||||||
if (VGA_idx <= 27)
|
if (VGA_idx <= 27)
|
||||||
rx_pwr_all = -100 + 2*(27-VGA_idx); /* VGA_idx = 27~2 */
|
rx_pwr_all = -100 + 2 * (27-VGA_idx); /* VGA_idx = 27~2 */
|
||||||
else
|
else
|
||||||
rx_pwr_all = -100;
|
rx_pwr_all = -100;
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
rx_pwr_all = -48 + 2*(2-VGA_idx); /* VGA_idx = 2~0 */
|
rx_pwr_all = -48 + 2 * (2-VGA_idx); /* VGA_idx = 2~0 */
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
rx_pwr_all = -42 + 2*(7-VGA_idx); /* VGA_idx = 7~5 */
|
rx_pwr_all = -42 + 2 * (7-VGA_idx); /* VGA_idx = 7~5 */
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
rx_pwr_all = -36 + 2*(7-VGA_idx); /* VGA_idx = 7~4 */
|
rx_pwr_all = -36 + 2 * (7-VGA_idx); /* VGA_idx = 7~4 */
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
rx_pwr_all = -24 + 2*(7-VGA_idx); /* VGA_idx = 7~0 */
|
rx_pwr_all = -24 + 2 * (7-VGA_idx); /* VGA_idx = 7~0 */
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (cck_highpwr)
|
if (cck_highpwr)
|
||||||
rx_pwr_all = -12 + 2*(5-VGA_idx); /* VGA_idx = 5~0 */
|
rx_pwr_all = -12 + 2 * (5-VGA_idx); /* VGA_idx = 5~0 */
|
||||||
else
|
else
|
||||||
rx_pwr_all = -6 + 2*(5-VGA_idx);
|
rx_pwr_all = -6 + 2 * (5-VGA_idx);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
rx_pwr_all = 8-2*VGA_idx;
|
rx_pwr_all = 8-2 * VGA_idx;
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
rx_pwr_all = 14-2*VGA_idx;
|
rx_pwr_all = 14-2 * VGA_idx;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -185,7 +185,7 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm_dm_struct *dm_odm,
|
||||||
if (dm_odm->RFPathRxEnable & BIT(i))
|
if (dm_odm->RFPathRxEnable & BIT(i))
|
||||||
rf_rx_num++;
|
rf_rx_num++;
|
||||||
|
|
||||||
rx_pwr[i] = ((pPhyStaRpt->path_agc[i].gain & 0x3F)*2) - 110;
|
rx_pwr[i] = ((pPhyStaRpt->path_agc[i].gain & 0x3F) * 2) - 110;
|
||||||
|
|
||||||
pPhyInfo->RxPwr[i] = rx_pwr[i];
|
pPhyInfo->RxPwr[i] = rx_pwr[i];
|
||||||
|
|
||||||
|
@ -334,12 +334,12 @@ static void odm_Process_RSSIForDM(struct odm_dm_struct *dm_odm,
|
||||||
} else {
|
} else {
|
||||||
if (pPhyInfo->RxPWDBAll > (u32)UndecoratedSmoothedOFDM) {
|
if (pPhyInfo->RxPWDBAll > (u32)UndecoratedSmoothedOFDM) {
|
||||||
UndecoratedSmoothedOFDM =
|
UndecoratedSmoothedOFDM =
|
||||||
(((UndecoratedSmoothedOFDM)*(Rx_Smooth_Factor-1)) +
|
(((UndecoratedSmoothedOFDM) * (Rx_Smooth_Factor-1)) +
|
||||||
(RSSI_Ave)) / (Rx_Smooth_Factor);
|
(RSSI_Ave)) / (Rx_Smooth_Factor);
|
||||||
UndecoratedSmoothedOFDM = UndecoratedSmoothedOFDM + 1;
|
UndecoratedSmoothedOFDM = UndecoratedSmoothedOFDM + 1;
|
||||||
} else {
|
} else {
|
||||||
UndecoratedSmoothedOFDM =
|
UndecoratedSmoothedOFDM =
|
||||||
(((UndecoratedSmoothedOFDM)*(Rx_Smooth_Factor-1)) +
|
(((UndecoratedSmoothedOFDM) * (Rx_Smooth_Factor-1)) +
|
||||||
(RSSI_Ave)) / (Rx_Smooth_Factor);
|
(RSSI_Ave)) / (Rx_Smooth_Factor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -377,7 +377,7 @@ static void odm_Process_RSSIForDM(struct odm_dm_struct *dm_odm,
|
||||||
|
|
||||||
if (pEntry->rssi_stat.ValidBit == 64) {
|
if (pEntry->rssi_stat.ValidBit == 64) {
|
||||||
Weighting = min_t(u32, OFDM_pkt << 4, 64);
|
Weighting = min_t(u32, OFDM_pkt << 4, 64);
|
||||||
UndecoratedSmoothedPWDB = (Weighting*UndecoratedSmoothedOFDM + (64-Weighting)*UndecoratedSmoothedCCK)>>6;
|
UndecoratedSmoothedPWDB = (Weighting * UndecoratedSmoothedOFDM + (64-Weighting) * UndecoratedSmoothedCCK)>>6;
|
||||||
} else {
|
} else {
|
||||||
if (pEntry->rssi_stat.ValidBit != 0)
|
if (pEntry->rssi_stat.ValidBit != 0)
|
||||||
UndecoratedSmoothedPWDB = (OFDM_pkt * UndecoratedSmoothedOFDM +
|
UndecoratedSmoothedPWDB = (OFDM_pkt * UndecoratedSmoothedOFDM +
|
||||||
|
|
Loading…
Reference in New Issue