From f78d76699fe73d6a5faf344b327e7a54bfb1b1de Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Fri, 21 Apr 2017 17:19:31 +0100 Subject: staging: rtl8192u: fix spelling mistake in variable name *attentuation Fix the spelling of a bunch of variables, from *attentuation to *attenuation. No functional change. Signed-off-by: Colin Ian King Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8192u/r819xU_phy.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'drivers/staging/rtl8192u/r819xU_phy.c') diff --git a/drivers/staging/rtl8192u/r819xU_phy.c b/drivers/staging/rtl8192u/r819xU_phy.c index c99130fdb8ee..3874f8307117 100644 --- a/drivers/staging/rtl8192u/r819xU_phy.c +++ b/drivers/staging/rtl8192u/r819xU_phy.c @@ -1559,17 +1559,17 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev) 0x00100000, 1); /* Correct the tx power for CCK rate in 20M. */ - priv->cck_present_attentuation = - priv->cck_present_attentuation_20Mdefault + - priv->cck_present_attentuation_difference; - - if (priv->cck_present_attentuation > 22) - priv->cck_present_attentuation = 22; - if (priv->cck_present_attentuation < 0) - priv->cck_present_attentuation = 0; + priv->cck_present_attenuation = + priv->cck_present_attenuation_20Mdefault + + priv->cck_present_attenuation_difference; + + if (priv->cck_present_attenuation > 22) + priv->cck_present_attenuation = 22; + if (priv->cck_present_attenuation < 0) + priv->cck_present_attenuation = 0; RT_TRACE(COMP_INIT, "20M, pHalData->CCKPresentAttentuation = %d\n", - priv->cck_present_attentuation); + priv->cck_present_attenuation); if (priv->chan == 14 && !priv->bcck_in_ch14) { priv->bcck_in_ch14 = true; @@ -1590,18 +1590,18 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev) rtl8192_setBBreg(dev, rFPGA0_AnalogParameter1, 0x00100000, 0); rtl8192_setBBreg(dev, rOFDM1_LSTF, 0xC00, priv->nCur40MhzPrimeSC); - priv->cck_present_attentuation = - priv->cck_present_attentuation_40Mdefault + - priv->cck_present_attentuation_difference; + priv->cck_present_attenuation = + priv->cck_present_attenuation_40Mdefault + + priv->cck_present_attenuation_difference; - if (priv->cck_present_attentuation > 22) - priv->cck_present_attentuation = 22; - if (priv->cck_present_attentuation < 0) - priv->cck_present_attentuation = 0; + if (priv->cck_present_attenuation > 22) + priv->cck_present_attenuation = 22; + if (priv->cck_present_attenuation < 0) + priv->cck_present_attenuation = 0; RT_TRACE(COMP_INIT, "40M, pHalData->CCKPresentAttentuation = %d\n", - priv->cck_present_attentuation); + priv->cck_present_attenuation); if (priv->chan == 14 && !priv->bcck_in_ch14) { priv->bcck_in_ch14 = true; dm_cck_txpower_adjust(dev, priv->bcck_in_ch14); -- cgit v1.2.3-59-g8ed1b