提交 638847c9 编写于 作者: J Jes Sorensen 提交者: Greg Kroah-Hartman

staging: rtl8723au: Eliminate ODM_CMNINFO_POWER_SAVING usage

Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1a573d2b
...@@ -291,6 +291,7 @@ void ODM_DMWatchdog23a(struct rtw_adapter *adapter) ...@@ -291,6 +291,7 @@ void ODM_DMWatchdog23a(struct rtw_adapter *adapter)
{ {
struct hal_data_8723a *pHalData = GET_HAL_DATA(adapter); struct hal_data_8723a *pHalData = GET_HAL_DATA(adapter);
struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; struct dm_odm_t *pDM_Odm = &pHalData->odmpriv;
struct pwrctrl_priv *pwrctrlpriv = &adapter->pwrctrlpriv;
/* 2012.05.03 Luke: For all IC series */ /* 2012.05.03 Luke: For all IC series */
odm_CmnInfoHook_Debug23a(pDM_Odm); odm_CmnInfoHook_Debug23a(pDM_Odm);
...@@ -313,7 +314,7 @@ void ODM_DMWatchdog23a(struct rtw_adapter *adapter) ...@@ -313,7 +314,7 @@ void ODM_DMWatchdog23a(struct rtw_adapter *adapter)
odm_CCKPacketDetectionThresh23a(pDM_Odm); odm_CCKPacketDetectionThresh23a(pDM_Odm);
if (*(pDM_Odm->pbPowerSaving)) if (pwrctrlpriv->bpower_saving)
return; return;
odm_RefreshRateAdaptiveMask23a(pDM_Odm); odm_RefreshRateAdaptiveMask23a(pDM_Odm);
...@@ -418,9 +419,6 @@ void ODM23a_CmnInfoHook(struct dm_odm_t *pDM_Odm, ...@@ -418,9 +419,6 @@ void ODM23a_CmnInfoHook(struct dm_odm_t *pDM_Odm,
/* Hook call by reference pointer. */ /* Hook call by reference pointer. */
switch (CmnInfo) { switch (CmnInfo) {
/* Dynamic call by reference pointer. */ /* Dynamic call by reference pointer. */
case ODM_CMNINFO_POWER_SAVING:
pDM_Odm->pbPowerSaving = (bool *)pValue;
break;
/* To remove the compiler warning, must add an empty default statement to handle the other values. */ /* To remove the compiler warning, must add an empty default statement to handle the other values. */
default: default:
/* do nothing */ /* do nothing */
...@@ -541,8 +539,6 @@ void odm_CmnInfoInit_Debug23a(struct dm_odm_t *pDM_Odm) ...@@ -541,8 +539,6 @@ void odm_CmnInfoInit_Debug23a(struct dm_odm_t *pDM_Odm)
void odm_CmnInfoHook_Debug23a(struct dm_odm_t *pDM_Odm) void odm_CmnInfoHook_Debug23a(struct dm_odm_t *pDM_Odm)
{ {
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("odm_CmnInfoHook_Debug23a ==>\n")); ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("odm_CmnInfoHook_Debug23a ==>\n"));
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("pbPowerSaving =%d\n", *(pDM_Odm->pbPowerSaving)));
} }
void odm_CmnInfoUpdate_Debug23a(struct dm_odm_t *pDM_Odm) void odm_CmnInfoUpdate_Debug23a(struct dm_odm_t *pDM_Odm)
......
...@@ -133,7 +133,6 @@ static void Init_ODM_ComInfo_8723a(struct rtw_adapter *Adapter) ...@@ -133,7 +133,6 @@ static void Init_ODM_ComInfo_8723a(struct rtw_adapter *Adapter)
static void Update_ODM_ComInfo_8723a(struct rtw_adapter *Adapter) static void Update_ODM_ComInfo_8723a(struct rtw_adapter *Adapter)
{ {
struct pwrctrl_priv *pwrctrlpriv = &Adapter->pwrctrlpriv;
struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter); struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; struct dm_odm_t *pDM_Odm = &pHalData->odmpriv;
struct dm_priv *pdmpriv = &pHalData->dmpriv; struct dm_priv *pdmpriv = &pHalData->dmpriv;
...@@ -151,9 +150,6 @@ static void Update_ODM_ComInfo_8723a(struct rtw_adapter *Adapter) ...@@ -151,9 +150,6 @@ static void Update_ODM_ComInfo_8723a(struct rtw_adapter *Adapter)
/* Pointer reference */ /* Pointer reference */
rtl8723a_odm_support_ability_set(Adapter, DYNAMIC_ALL_FUNC_ENABLE); rtl8723a_odm_support_ability_set(Adapter, DYNAMIC_ALL_FUNC_ENABLE);
ODM23a_CmnInfoHook(pDM_Odm, ODM_CMNINFO_POWER_SAVING,
&pwrctrlpriv->bpower_saving);
for (i = 0; i < NUM_STA; i++) for (i = 0; i < NUM_STA; i++)
ODM_CmnInfoPtrArrayHook23a(pDM_Odm, ODM_CMNINFO_STA_STATUS, i, NULL); ODM_CmnInfoPtrArrayHook23a(pDM_Odm, ODM_CMNINFO_STA_STATUS, i, NULL);
} }
......
...@@ -319,7 +319,6 @@ enum odm_cmninfo { ...@@ -319,7 +319,6 @@ enum odm_cmninfo {
/* */ /* */
/* Dynamic value: */ /* Dynamic value: */
/* */ /* */
ODM_CMNINFO_POWER_SAVING,
ODM_CMNINFO_MP_MODE, ODM_CMNINFO_MP_MODE,
ODM_CMNINFO_WIFI_DIRECT, ODM_CMNINFO_WIFI_DIRECT,
...@@ -683,8 +682,6 @@ struct dm_odm_t { ...@@ -683,8 +682,6 @@ struct dm_odm_t {
bool bool_temp; bool bool_temp;
struct rtw_adapter *PADAPTER_temp; struct rtw_adapter *PADAPTER_temp;
/* Common info for Status */
bool *pbPowerSaving;
/* POINTER REFERENCE----------- */ /* POINTER REFERENCE----------- */
/* */ /* */
/* CALL BY VALUE------------- */ /* CALL BY VALUE------------- */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册