mirror of https://gitee.com/openkylin/linux.git
staging: rtl8723au: Clean up FindMinimumRSSI()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
04b7466fa5
commit
0305d27d9e
|
@ -1153,9 +1153,7 @@ void odm_DynamicTxPower23aInit(struct dm_odm_t *pDM_Odm)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
FindMinimumRSSI(
|
FindMinimumRSSI(struct rtw_adapter *pAdapter)
|
||||||
struct rtw_adapter *pAdapter
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
struct hal_data_8723a *pHalData = GET_HAL_DATA(pAdapter);
|
struct hal_data_8723a *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
struct dm_priv *pdmpriv = &pHalData->dmpriv;
|
struct dm_priv *pdmpriv = &pHalData->dmpriv;
|
||||||
|
@ -1163,11 +1161,11 @@ FindMinimumRSSI(
|
||||||
|
|
||||||
/* 1 1.Determine the minimum RSSI */
|
/* 1 1.Determine the minimum RSSI */
|
||||||
|
|
||||||
if ((!pDM_Odm->bLinked) &&
|
if (!pDM_Odm->bLinked && !pdmpriv->EntryMinUndecoratedSmoothedPWDB)
|
||||||
(pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0))
|
|
||||||
pdmpriv->MinUndecoratedPWDBForDM = 0;
|
pdmpriv->MinUndecoratedPWDBForDM = 0;
|
||||||
else
|
else
|
||||||
pdmpriv->MinUndecoratedPWDBForDM = pdmpriv->EntryMinUndecoratedSmoothedPWDB;
|
pdmpriv->MinUndecoratedPWDBForDM =
|
||||||
|
pdmpriv->EntryMinUndecoratedSmoothedPWDB;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void odm_RSSIMonitorCheck(struct dm_odm_t *pDM_Odm)
|
static void odm_RSSIMonitorCheck(struct dm_odm_t *pDM_Odm)
|
||||||
|
|
Loading…
Reference in New Issue