staging: r8188eu: more odm cleanup
cover staging: r8188eu: more odm cleanup
Hello Greg and all,
here's some more patches to remove unused odm code.
This series should be applied on top of the series I sent yesterday (starting with message [email protected]).
Thanks,
Martin
Martin Kaiser (8):
staging: r8188eu: remove dm_CheckStatistics
staging: r8188eu: simplify rtl8188e_HalDmWatchDog
staging: r8188eu: remove rtl8188e_deinit_dm_priv
staging: r8188eu: remove LastMinUndecoratedPWDBForDM
staging: r8188eu: SupportICType is always ODM_RTL8188E
staging: r8188eu: remove odm_SwAntDivInit
staging: r8188eu: odm BoardType is never set
staging: r8188eu: odm SupportPlatform is always ODM_CE
.../staging/r8188eu/hal/HalHWImg8188E_BB.c | 16 +- .../staging/r8188eu/hal/HalHWImg8188E_MAC.c | 5 +- .../staging/r8188eu/hal/HalHWImg8188E_RF.c | 5 +- drivers/staging/r8188eu/hal/odm.c | 308 +++--------------- drivers/staging/r8188eu/hal/odm_HWConfig.c | 69 ++-- drivers/staging/r8188eu/hal/odm_RTL8188E.c | 5 +- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 60 +--- drivers/staging/r8188eu/include/odm.h | 30 -- drivers/staging/r8188eu/include/odm_precomp.h | 11 - drivers/staging/r8188eu/include/odm_types.h | 6 - drivers/staging/r8188eu/include/rtl8188e_dm.h | 2 - drivers/staging/r8188eu/os_dep/os_intfs.c | 2 - 12 files changed, 93 insertions(+), 426 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/8 staging: r8188eu: remove dm_CheckStatistics
The dm_CheckStatistics function is empty. Remove it.
--- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 11 ----------- 1 file changed, 11 deletions(-)
drivers/staging/r8188eu/hal/rtl8188e_dm.c +0 -11
@@ -8,10 +8,6 @@#include "../include/drv_types.h" #include "../include/rtl8188e_hal.h" -static void dm_CheckStatistics (struct adapter *Adapter) -{ -} -/* Initialize GPIO setting registers */ static void dm_InitGPIOSetting (struct adapter *Adapter) {
@@ -136,13 +132,6 @@ void rtl8188e_HalDmWatchDog(struct adapter *Adapter)if (Adapter->wdinfo.p2p_ps_mode) fw_ps_awake = false; -if (hw_init_completed && ((!fw_cur_in_ps) && fw_ps_awake)) { -/* Calculate Tx/Rx statistics. */ -dm_CheckStatistics (Adapter); - - - } -/* ODM */ if (hw_init_completed) {struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
Signature · 1 line
2.20.1
PATCH 2/8 staging: r8188eu: simplify rtl8188e_HalDmWatchDog
In reply to Martin KaiserNow that we don't call dm_CheckStatistics any more, we don't need fw_cur_in_ps and fw_ps_awake.
--- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 43 +++++++---------------- 1 file changed, 13 insertions(+), 30 deletions(-)
drivers/staging/r8188eu/hal/rtl8188e_dm.c +13 -30
@@ -113,42 +113,25 @@ void rtl8188e_InitHalDm(struct adapter *Adapter)void rtl8188e_HalDmWatchDog (struct adapter *Adapter) { -bool fw_cur_in_ps = false; -bool fw_ps_awake = true; -u8 hw_init_completed = false; +u8 hw_init_completed = Adapter->hw_init_completed;struct hal_data_8188e *hal_data =GET_HAL_DATA (Adapter); - - - hw_init_completed = Adapter->hw_init_completed; +struct mlme_priv *pmlmepriv = &Adapter->mlmepriv; +u8 bLinked = false;if (!hw_init_completed)return ; - fw_cur_in_ps = Adapter->pwrctrlpriv.bFwCurrentInPSMode; -GetHwReg8188EU (Adapter,HW_VAR_FWLPS_RF_ON , (u8 *)(&fw_ps_awake)); - -/* Fw is under p2p powersaving mode, driver should stop dynamic mechanism. */ -/* modifed by thomas. 2011.06.11. */ -if (Adapter->wdinfo.p2p_ps_mode) - fw_ps_awake = false; - -/* ODM */ -if (hw_init_completed) { -struct mlme_priv *pmlmepriv = &Adapter->mlmepriv; -u8 bLinked = false; - -if ((check_fwstate (pmlmepriv,WIFI_AP_STATE )) || - (check_fwstate (pmlmepriv,WIFI_ADHOC_STATE |WIFI_ADHOC_MASTER_STATE ))) { -if (Adapter->stapriv.asoc_sta_count >2 ) - bLinked = true; - }else {/* Station mode */ -if (check_fwstate (pmlmepriv, _FW_LINKED)) - bLinked = true; - } - -ODM_CmnInfoUpdate (&hal_data->odmpriv,ODM_CMNINFO_LINK , bLinked); -ODM_DMWatchdog (&hal_data->odmpriv); +if ((check_fwstate (pmlmepriv,WIFI_AP_STATE )) || + (check_fwstate (pmlmepriv,WIFI_ADHOC_STATE |WIFI_ADHOC_MASTER_STATE ))) { +if (Adapter->stapriv.asoc_sta_count >2 ) + bLinked = true; + }else {/* Station mode */ +if (check_fwstate (pmlmepriv, _FW_LINKED)) + bLinked = true; } + +ODM_CmnInfoUpdate (&hal_data->odmpriv,ODM_CMNINFO_LINK , bLinked); +ODM_DMWatchdog (&hal_data->odmpriv); }void rtl8188e_init_dm_priv (struct adapter *Adapter)
Signature · 1 line
2.20.1
PATCH 3/8 staging: r8188eu: remove rtl8188e_deinit_dm_priv
In reply to Martin KaiserThis function is empty and can be removed.
--- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 4 ---- drivers/staging/r8188eu/include/rtl8188e_dm.h | 1 - drivers/staging/r8188eu/os_dep/os_intfs.c | 2 -- 3 files changed, 7 deletions(-)
drivers/staging/r8188eu/hal/rtl8188e_dm.c +0 -4
@@ -143,10 +143,6 @@ void rtl8188e_init_dm_priv(struct adapter *Adapter)Init_ODM_ComInfo_88E (Adapter); } -void rtl8188e_deinit_dm_priv (struct adapter *Adapter) -{ -} -/* Add new function to reset the state of antenna diversity before link. */ /* Compare RSSI for deciding antenna */ void AntDivCompare8188E (struct adapter *Adapter,struct wlan_bssid_ex *dst,struct wlan_bssid_ex *src)
drivers/staging/r8188eu/include/rtl8188e_dm.h +0 -1
@@ -30,7 +30,6 @@ struct dm_priv { };void rtl8188e_init_dm_priv (struct adapter *adapt); -void rtl8188e_deinit_dm_priv (struct adapter *adapt);void rtl8188e_InitHalDm (struct adapter *adapt);void rtl8188e_HalDmWatchDog (struct adapter *adapt);
drivers/staging/r8188eu/os_dep/os_intfs.c +0 -2
@@ -557,8 +557,6 @@ void rtw_cancel_all_timer(struct adapter *padapter)_cancel_timer_ex (&padapter->pwrctrlpriv.pwr_state_check_timer);_cancel_timer_ex (&padapter->recvpriv.signal_stat_timer); -/* cancel dm timer */ -rtl8188e_deinit_dm_priv (padapter); }u8 rtw_free_drv_sw (struct adapter *padapter)
Signature · 1 line
2.20.1
PATCH 4/8 staging: r8188eu: remove LastMinUndecoratedPWDBForDM
In reply to Martin KaiserLastMinUndecoratedPWDBForDM in struct dm_priv is not used. Remove it.
--- drivers/staging/r8188eu/include/rtl8188e_dm.h | 1 - 1 file changed, 1 deletion(-)
drivers/staging/r8188eu/include/rtl8188e_dm.h +0 -1
@@ -26,7 +26,6 @@ struct dm_priv {int EntryMinUndecoratedSmoothedPWDB;int EntryMaxUndecoratedSmoothedPWDB;int MinUndecoratedPWDBForDM; -int LastMinUndecoratedPWDBForDM; };void rtl8188e_init_dm_priv (struct adapter *adapt);
Signature · 1 line
2.20.1
PATCH 5/8 staging: r8188eu: SupportICType is always ODM_RTL8188E
In reply to Martin KaiserSupportICType in struct odm_dm_struct is always ODM_RTL8188E. Remove the component and code that is executed only for other types.
--- drivers/staging/r8188eu/hal/odm.c | 172 +++++---------------- drivers/staging/r8188eu/hal/odm_HWConfig.c | 58 ++++--- drivers/staging/r8188eu/hal/odm_RTL8188E.c | 5 +- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 2 - drivers/staging/r8188eu/include/odm.h | 15 -- 5 files changed, 68 insertions(+), 184 deletions(-)
drivers/staging/r8188eu/hal/odm.c +41 -131
@@ -225,9 +225,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase ODM_CMNINFO_MP_TEST_CHIP : pDM_Odm->bIsMPChip = (u8 )Value;break ; -case ODM_CMNINFO_IC_TYPE : - pDM_Odm->SupportICType = Value; -break ;case ODM_CMNINFO_RF_TYPE : pDM_Odm->RFType = (u8 )Value;break ;
@@ -377,10 +374,6 @@ void odm_CommonInfoSelfInit(struct odm_dm_struct *pDM_Odm) { pDM_Odm->bCckHighPower = (bool )ODM_GetBBReg (pDM_Odm,0x824 ,BIT (9 )); pDM_Odm->RFPathRxEnable = (u8 )ODM_GetBBReg (pDM_Odm,0xc04 ,0x0F ); -if (pDM_Odm->SupportICType & (ODM_RTL8192C |ODM_RTL8192D )) - pDM_Odm->AntDivType =CG_TRX_HW_ANTDIV ; -if (pDM_Odm->SupportICType & (ODM_RTL8723A )) - pDM_Odm->AntDivType =CGCS_RX_SW_ANTDIV ; }void odm_CommonInfoSelfUpdate (struct odm_dm_struct *pDM_Odm)
@@ -467,86 +460,43 @@ void odm_DIG(struct odm_dm_struct *pDM_Odm)if (!pDM_Odm->bDMInitialGainEnable)return ; -if (pDM_Odm->SupportICType ==ODM_RTL8192D ) { -if (*pDM_Odm->pMacPhyMode ==ODM_DMSP ) { -if (*pDM_Odm->pbMasterOfDMSP) { - DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0; - FirstConnect = (pDM_Odm->bLinked) && (!pDM_DigTable->bMediaConnect_0); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0); - }else { - DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_1; - FirstConnect = (pDM_Odm->bLinked) && (!pDM_DigTable->bMediaConnect_1); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1); - } - }else { - DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_1; - FirstConnect = (pDM_Odm->bLinked) && (!pDM_DigTable->bMediaConnect_1); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1); - } - }else { - DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0; - FirstConnect = (pDM_Odm->bLinked) && (!pDM_DigTable->bMediaConnect_0); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0); - } + DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0; + FirstConnect = (pDM_Odm->bLinked) && (!pDM_DigTable->bMediaConnect_0); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0);/* 1 Boundary Decision */ -if ((pDM_Odm->SupportICType & (ODM_RTL8192C |ODM_RTL8723A )) && - (pDM_Odm->BoardType ==ODM_BOARD_HIGHPWR )) { -if (pDM_Odm->SupportPlatform & (ODM_AP |ODM_ADSL )) { - dm_dig_max =DM_DIG_MAX_AP_HP ; - dm_dig_min =DM_DIG_MIN_AP_HP ; - }else { - dm_dig_max =DM_DIG_MAX_NIC_HP ; - dm_dig_min =DM_DIG_MIN_NIC_HP ; - } - DIG_MaxOfMin =DM_DIG_MAX_AP_HP ; +if (pDM_Odm->SupportPlatform & (ODM_AP |ODM_ADSL )) { + dm_dig_max =DM_DIG_MAX_AP ; + dm_dig_min =DM_DIG_MIN_AP ; + DIG_MaxOfMin = dm_dig_max; }else { -if (pDM_Odm->SupportPlatform & (ODM_AP |ODM_ADSL )) { - dm_dig_max =DM_DIG_MAX_AP ; - dm_dig_min =DM_DIG_MIN_AP ; - DIG_MaxOfMin = dm_dig_max; - }else { - dm_dig_max =DM_DIG_MAX_NIC ; - dm_dig_min =DM_DIG_MIN_NIC ; - DIG_MaxOfMin =DM_DIG_MAX_AP ; - } + dm_dig_max =DM_DIG_MAX_NIC ; + dm_dig_min =DM_DIG_MIN_NIC ; + DIG_MaxOfMin =DM_DIG_MAX_AP ; }if (pDM_Odm->bLinked) { -/* 2 8723A Series, offset need to be 10 */ -if (pDM_Odm->SupportICType == (ODM_RTL8723A )) { -/* 2 Upper Bound */ -if ((pDM_Odm->RSSI_Min +10 ) >DM_DIG_MAX_NIC ) - pDM_DigTable->rx_gain_range_max =DM_DIG_MAX_NIC ; -else if ((pDM_Odm->RSSI_Min +10 ) <DM_DIG_MIN_NIC ) - pDM_DigTable->rx_gain_range_max =DM_DIG_MIN_NIC ; +/* 2 8723A Series, offset need to be 10 */ +/* 2 Modify DIG upper bound */ +if ((pDM_Odm->RSSI_Min +20 ) > dm_dig_max) + pDM_DigTable->rx_gain_range_max = dm_dig_max; +else if ((pDM_Odm->RSSI_Min +20 ) < dm_dig_min) + pDM_DigTable->rx_gain_range_max = dm_dig_min; +else + pDM_DigTable->rx_gain_range_max = pDM_Odm->RSSI_Min +20 ; +/* 2 Modify DIG lower bound */ +if (pDM_Odm->bOneEntryOnly) { +if (pDM_Odm->RSSI_Min < dm_dig_min) + DIG_Dynamic_MIN = dm_dig_min; +else if (pDM_Odm->RSSI_Min > DIG_MaxOfMin) + DIG_Dynamic_MIN = DIG_MaxOfMin;else - pDM_DigTable->rx_gain_range_max = pDM_Odm->RSSI_Min +10 ; -/* 2 If BT is Concurrent, need to set Lower Bound */ - DIG_Dynamic_MIN =DM_DIG_MIN_NIC ; + DIG_Dynamic_MIN = pDM_Odm->RSSI_Min; + }else if (pDM_Odm->SupportAbility &ODM_BB_ANT_DIV ) { +/* 1 Lower Bound for 88E AntDiv */ +if (pDM_Odm->AntDivType ==CG_TRX_HW_ANTDIV ) + DIG_Dynamic_MIN = (u8 )pDM_DigTable->AntDiv_RSSI_max; }else { -/* 2 Modify DIG upper bound */ -if ((pDM_Odm->RSSI_Min +20 ) > dm_dig_max) - pDM_DigTable->rx_gain_range_max = dm_dig_max; -else if ((pDM_Odm->RSSI_Min +20 ) < dm_dig_min) - pDM_DigTable->rx_gain_range_max = dm_dig_min; -else - pDM_DigTable->rx_gain_range_max = pDM_Odm->RSSI_Min +20 ; -/* 2 Modify DIG lower bound */ -if (pDM_Odm->bOneEntryOnly) { -if (pDM_Odm->RSSI_Min < dm_dig_min) - DIG_Dynamic_MIN = dm_dig_min; -else if (pDM_Odm->RSSI_Min > DIG_MaxOfMin) - DIG_Dynamic_MIN = DIG_MaxOfMin; -else - DIG_Dynamic_MIN = pDM_Odm->RSSI_Min; - }else if ((pDM_Odm->SupportICType ==ODM_RTL8188E ) && - (pDM_Odm->SupportAbility &ODM_BB_ANT_DIV )) { -/* 1 Lower Bound for 88E AntDiv */ -if (pDM_Odm->AntDivType ==CG_TRX_HW_ANTDIV ) - DIG_Dynamic_MIN = (u8 )pDM_DigTable->AntDiv_RSSI_max; - }else { - DIG_Dynamic_MIN = dm_dig_min; - } + DIG_Dynamic_MIN = dm_dig_min; } }else { pDM_DigTable->rx_gain_range_max = dm_dig_max;
@@ -594,21 +544,12 @@ void odm_DIG(struct odm_dm_struct *pDM_Odm)if (FirstConnect) { CurrentIGI = pDM_Odm->RSSI_Min; }else { -if (pDM_Odm->SupportICType ==ODM_RTL8192D ) { -if (pFalseAlmCnt->Cnt_all >DM_DIG_FA_TH2_92D ) - CurrentIGI = CurrentIGI +2 ;/* pDM_DigTable->CurIGValue = pDM_DigTable->PreIGValue+2; */ -else if (pFalseAlmCnt->Cnt_all >DM_DIG_FA_TH1_92D ) - CurrentIGI = CurrentIGI +1 ;/* pDM_DigTable->CurIGValue = pDM_DigTable->PreIGValue+1; */ -else if (pFalseAlmCnt->Cnt_all <DM_DIG_FA_TH0_92D ) - CurrentIGI = CurrentIGI -1 ;/* pDM_DigTable->CurIGValue =pDM_DigTable->PreIGValue-1; */ - }else { -if (pFalseAlmCnt->Cnt_all >DM_DIG_FA_TH2 ) - CurrentIGI = CurrentIGI +4 ;/* pDM_DigTable->CurIGValue = pDM_DigTable->PreIGValue+2; */ -else if (pFalseAlmCnt->Cnt_all >DM_DIG_FA_TH1 ) - CurrentIGI = CurrentIGI +2 ;/* pDM_DigTable->CurIGValue = pDM_DigTable->PreIGValue+1; */ -else if (pFalseAlmCnt->Cnt_all <DM_DIG_FA_TH0 ) - CurrentIGI = CurrentIGI -2 ;/* pDM_DigTable->CurIGValue =pDM_DigTable->PreIGValue-1; */ - } +if (pFalseAlmCnt->Cnt_all >DM_DIG_FA_TH2 ) + CurrentIGI = CurrentIGI +4 ;/* pDM_DigTable->CurIGValue = pDM_DigTable->PreIGValue+2; */ +else if (pFalseAlmCnt->Cnt_all >DM_DIG_FA_TH1 ) + CurrentIGI = CurrentIGI +2 ;/* pDM_DigTable->CurIGValue = pDM_DigTable->PreIGValue+1; */ +else if (pFalseAlmCnt->Cnt_all <DM_DIG_FA_TH0 ) + CurrentIGI = CurrentIGI -2 ;/* pDM_DigTable->CurIGValue =pDM_DigTable->PreIGValue-1; */ } }else {if (FirstDisConnect) {
@@ -668,11 +609,9 @@ void odm_FalseAlarmCounterStatistics(struct odm_dm_struct *pDM_Odm) FalseAlmCnt->Cnt_Crc8_fail + FalseAlmCnt->Cnt_Mcs_fail + FalseAlmCnt->Cnt_Fast_Fsync + FalseAlmCnt->Cnt_SB_Search_fail; -if (pDM_Odm->SupportICType ==ODM_RTL8188E ) { - ret_value =ODM_GetBBReg (pDM_Odm,ODM_REG_SC_CNT_11N , bMaskDWord); - FalseAlmCnt->Cnt_BW_LSC = (ret_value &0xffff ); - FalseAlmCnt->Cnt_BW_USC = ((ret_value &0xffff0000 ) >>16 ); - } + ret_value =ODM_GetBBReg (pDM_Odm,ODM_REG_SC_CNT_11N , bMaskDWord); + FalseAlmCnt->Cnt_BW_LSC = (ret_value &0xffff ); + FalseAlmCnt->Cnt_BW_USC = ((ret_value &0xffff0000 ) >>16 );/* hold cck counter */ ODM_SetBBReg (pDM_Odm,ODM_REG_CCK_FA_RST_11N ,BIT (12 ),1 );
@@ -695,24 +634,6 @@ void odm_FalseAlarmCounterStatistics(struct odm_dm_struct *pDM_Odm) FalseAlmCnt->Cnt_Cck_fail); FalseAlmCnt->Cnt_CCA_all = FalseAlmCnt->Cnt_OFDM_CCA + FalseAlmCnt->Cnt_CCK_CCA; - -if (pDM_Odm->SupportICType >=ODM_RTL8723A ) { -/* reset false alarm counter registers */ -ODM_SetBBReg (pDM_Odm,ODM_REG_OFDM_FA_RSTC_11N ,BIT (31 ),1 ); -ODM_SetBBReg (pDM_Odm,ODM_REG_OFDM_FA_RSTC_11N ,BIT (31 ),0 ); -ODM_SetBBReg (pDM_Odm,ODM_REG_OFDM_FA_RSTD_11N ,BIT (27 ),1 ); -ODM_SetBBReg (pDM_Odm,ODM_REG_OFDM_FA_RSTD_11N ,BIT (27 ),0 ); -/* update ofdm counter */ -ODM_SetBBReg (pDM_Odm,ODM_REG_OFDM_FA_HOLDC_11N ,BIT (31 ),0 );/* update page C counter */ -ODM_SetBBReg (pDM_Odm,ODM_REG_OFDM_FA_RSTD_11N ,BIT (31 ),0 );/* update page D counter */ - -/* reset CCK CCA counter */ -ODM_SetBBReg (pDM_Odm,ODM_REG_CCK_FA_RST_11N ,BIT (13 ) |BIT (12 ),0 ); -ODM_SetBBReg (pDM_Odm,ODM_REG_CCK_FA_RST_11N ,BIT (13 ) |BIT (12 ),2 ); -/* reset CCK FA counter */ -ODM_SetBBReg (pDM_Odm,ODM_REG_CCK_FA_RST_11N ,BIT (15 ) |BIT (14 ),0 ); -ODM_SetBBReg (pDM_Odm,ODM_REG_CCK_FA_RST_11N ,BIT (15 ) |BIT (14 ),2 ); - } }/* 3============================================================ */
@@ -807,10 +728,6 @@ void ODM_RF_Saving(struct odm_dm_struct *pDM_Odm, u8 bForceInNormal)if (pDM_PSTable->pre_rf_state != pDM_PSTable->cur_rf_state) {if (pDM_PSTable->cur_rf_state == RF_Save) { -/* <tynli_note> 8723 RSSI report will be wrong. Set 0x874[5]=1 when enter BB power saving mode. */ -/* Suggested by SD3 Yu-Nan. 2011.01.20. */ -if (pDM_Odm->SupportICType ==ODM_RTL8723A ) -ODM_SetBBReg (pDM_Odm,0x874 ,BIT (5 ),0x1 );/* Reg874[5]=1b'1 */ ODM_SetBBReg (pDM_Odm,0x874 ,0x1C0000 ,0x2 );/* Reg874[20:18]=3'b010 */ ODM_SetBBReg (pDM_Odm,0xc70 ,BIT (3 ),0 );/* RegC70[3]=1'b0 */ ODM_SetBBReg (pDM_Odm,0x85c ,0xFF000000 ,0x63 );/* Reg85C[31:24]=0x63 */
@@ -824,9 +741,6 @@ void ODM_RF_Saving(struct odm_dm_struct *pDM_Odm, u8 bForceInNormal)ODM_SetBBReg (pDM_Odm,0x85c ,0xFF000000 , pDM_PSTable->reg_85c);ODM_SetBBReg (pDM_Odm,0xa74 ,0xF000 , pDM_PSTable->reg_a74);ODM_SetBBReg (pDM_Odm,0x818 ,BIT (28 ),0x0 ); - -if (pDM_Odm->SupportICType ==ODM_RTL8723A ) -ODM_SetBBReg (pDM_Odm,0x874 ,BIT (5 ),0x0 );/* Reg874[5]=1b'0 */ } pDM_PSTable->pre_rf_state = pDM_PSTable->cur_rf_state; }
@@ -1242,10 +1156,7 @@ void odm_InitHybridAntDiv(struct odm_dm_struct *pDM_Odm)if (!(pDM_Odm->SupportAbility &ODM_BB_ANT_DIV ))return ; -if (pDM_Odm->SupportICType & (ODM_RTL8192C |ODM_RTL8192D )) - ; -else if (pDM_Odm->SupportICType ==ODM_RTL8188E ) -ODM_AntennaDiversityInit_88E (pDM_Odm); +ODM_AntennaDiversityInit_88E (pDM_Odm); }void ODM_AntselStatistics_88C (struct odm_dm_struct *pDM_Odm,u8 MacId,u32 PWDBAll,bool isCCKrate)
@@ -1274,8 +1185,7 @@ void odm_HwAntDiv(struct odm_dm_struct *pDM_Odm)if (!(pDM_Odm->SupportAbility &ODM_BB_ANT_DIV ))return ; -if (pDM_Odm->SupportICType ==ODM_RTL8188E ) -ODM_AntennaDiversity_88E (pDM_Odm); +ODM_AntennaDiversity_88E (pDM_Odm); }/* EDCA Turbo */
drivers/staging/r8188eu/hal/odm_HWConfig.c +26 -32
92 lines not on this page · raw message
drivers/staging/r8188eu/hal/odm_RTL8188E.c +1 -4
@@ -129,9 +129,6 @@ static void odm_FastAntTrainingInit(struct odm_dm_struct *dm_odm)void ODM_AntennaDiversityInit_88E (struct odm_dm_struct *dm_odm) { -if (dm_odm->SupportICType !=ODM_RTL8188E ) -return ; -if (dm_odm->AntDivType ==CGCS_RX_HW_ANTDIV )odm_RX_HWAntDivInit (dm_odm);else if (dm_odm->AntDivType ==CG_TRX_HW_ANTDIV )
@@ -270,7 +267,7 @@ static void odm_HWAntDiv(struct odm_dm_struct *dm_odm)void ODM_AntennaDiversity_88E (struct odm_dm_struct *dm_odm) {struct fast_ant_train *dm_fat_tbl = &dm_odm->DM_FatTable; -if ((dm_odm->SupportICType !=ODM_RTL8188E ) || (!(dm_odm->SupportAbility &ODM_BB_ANT_DIV ))) +if (!(dm_odm->SupportAbility &ODM_BB_ANT_DIV ))return ;if (!dm_odm->bLinked) {if (dm_fat_tbl->bBecomeLinked) {
drivers/staging/r8188eu/hal/rtl8188e_dm.c +0 -2
@@ -37,8 +37,6 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_INTERFACE ,ODM_ITRF_USB ); -ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_IC_TYPE ,ODM_RTL8188E ); -ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_MP_TEST_CHIP ,IS_NORMAL_CHIP (hal_data->VersionID));if (hal_data->rf_type ==RF_1T1R )
drivers/staging/r8188eu/include/odm.h +0 -15
@@ -265,7 +265,6 @@ enum odm_common_info_def {ODM_CMNINFO_ABILITY ,/* ODM_ABILITY_E */ ODM_CMNINFO_INTERFACE ,/* ODM_INTERFACE_E */ ODM_CMNINFO_MP_TEST_CHIP , -ODM_CMNINFO_IC_TYPE ,/* ODM_IC_TYPE_E */ ODM_CMNINFO_RF_TYPE ,/* RF_PATH_E or ODM_RF_TYPE_E? */ ODM_CMNINFO_BOARD_TYPE, /* ODM_BOARD_TYPE_E *//* HOOK BEFORE REG INIT----------- */
@@ -354,17 +353,6 @@ enum odm_interface_def { ODM_ITRF_ALL = 0x7, }; -/* ODM_CMNINFO_IC_TYPE */ -enum odm_ic_type { -ODM_RTL8192S =BIT (0 ), -ODM_RTL8192C =BIT (1 ), -ODM_RTL8192D =BIT (2 ), -ODM_RTL8723A =BIT (3 ), -ODM_RTL8188E =BIT (4 ), -ODM_RTL8812 =BIT (5 ), -ODM_RTL8821 =BIT (6 ), -}; -/* ODM_CMNINFO_RF_TYPE */ /* For example 1T2R (A+AB = BIT(0)|BIT(4)|BIT(5)) */ enum odm_rf_path {
@@ -638,9 +626,6 @@ struct odm_dm_struct {u32 SupportAbility;/* ODM PCIE/USB/SDIO/GSPI = 0/1/2/3 */ u8 SupportInterface; -/* ODM composite or independent. Bit oriented/ 92C+92D+ .... or any -* other type = 1/2/3/... */ -u32 SupportICType;/* RF Type 4T4R/3T3R/2T2R/1T2R/1T1R/... */ u8 RFType;/* Board Type Normal/HighPower/MiniCard/SLIM/Combo/. = 0/1/2/3/4/. */
Signature · 1 line
2.20.1
PATCH 6/8 staging: r8188eu: remove odm_SwAntDivInit
In reply to Martin KaiserThis function is empty, it can be removed.
--- drivers/staging/r8188eu/hal/odm.c | 6 ------ drivers/staging/r8188eu/include/odm_precomp.h | 1 - 2 files changed, 7 deletions(-)
drivers/staging/r8188eu/hal/odm.c +0 -6
@@ -172,8 +172,6 @@ void ODM_DMInit(struct odm_dm_struct *pDM_Odm) (pDM_Odm->AntDivType == CGCS_RX_HW_ANTDIV) || (pDM_Odm->AntDivType == CG_TRX_SMART_ANTDIV))odm_InitHybridAntDiv (pDM_Odm); - else if (pDM_Odm->AntDivType == CGCS_RX_SW_ANTDIV) - odm_SwAntDivInit(pDM_Odm); }/* 2011/09/20 MH This is the entry pointer for all team to execute HW out source DM. */
@@ -1127,10 +1125,6 @@ void odm_TXPowerTrackingCheckAP(struct odm_dm_struct *pDM_Odm)/* 3============================================================ */ /* 3 SW Antenna Diversity */ /* 3============================================================ */ -void odm_SwAntDivInit (struct odm_dm_struct *pDM_Odm) -{ -} -void ODM_SwAntDivChkPerPktRssi (struct odm_dm_struct *pDM_Odm,u8 StationID,struct odm_phy_status_info *pPhyInfo) { }
drivers/staging/r8188eu/include/odm_precomp.h +0 -1
@@ -47,7 +47,6 @@ void odm_RefreshRateAdaptiveMaskMP(struct odm_dm_struct *pDM_Odm);void odm_SwAntDivChkAntSwitch (struct odm_dm_struct *pDM_Odm,u8 Step);void odm_EdcaTurboCheck (struct odm_dm_struct *pDM_Odm);void odm_CommonInfoSelfInit (struct odm_dm_struct *pDM_Odm); -void odm_SwAntDivInit (struct odm_dm_struct *pDM_Odm);void odm_RSSIMonitorCheck (struct odm_dm_struct *pDM_Odm);void odm_RefreshRateAdaptiveMask (struct odm_dm_struct *pDM_Odm);void odm_RefreshRateAdaptiveMaskCE (struct odm_dm_struct *pDM_Odm);
Signature · 1 line
2.20.1
PATCH 7/8 staging: r8188eu: odm BoardType is never set
In reply to Martin Kaiserodm BoardType is never set, so it's always 0 (ODM_BOARD_NORMAL). Remove dead code and the BoardType itself.
--- drivers/staging/r8188eu/hal/HalHWImg8188E_BB.c | 7 +------ drivers/staging/r8188eu/hal/HalHWImg8188E_MAC.c | 2 -- drivers/staging/r8188eu/hal/HalHWImg8188E_RF.c | 2 -- drivers/staging/r8188eu/hal/odm.c | 3 --- drivers/staging/r8188eu/hal/odm_HWConfig.c | 11 ----------- drivers/staging/r8188eu/include/odm.h | 12 ------------ 6 files changed, 1 insertion(+), 36 deletions(-)
drivers/staging/r8188eu/hal/HalHWImg8188E_BB.c +1 -6
@@ -178,7 +178,6 @@ enum HAL_STATUS ODM_ReadAndConfig_AGC_TAB_1T_8188E(struct odm_dm_struct *dm_odm)u32 i =0 ;u8 platform = dm_odm->SupportPlatform;u8 interfaceValue = dm_odm->SupportInterface; -u8 board = dm_odm->BoardType;u32 arraylen =sizeof (array_agc_tab_1t_8188e) /sizeof (u32);u32 *array = array_agc_tab_1t_8188e;bool biol = false;
@@ -187,7 +186,6 @@ enum HAL_STATUS ODM_ReadAndConfig_AGC_TAB_1T_8188E(struct odm_dm_struct *dm_odm)u8 bndy_cnt =1 ;enum HAL_STATUS rst =HAL_STATUS_SUCCESS ; - hex += board; hex += interfaceValue <<8 ; hex += platform <<16 ; hex +=0xFF000000 ;
@@ -458,7 +456,6 @@ enum HAL_STATUS ODM_ReadAndConfig_PHY_REG_1T_8188E(struct odm_dm_struct *dm_odm)u32 i =0 ;u8 platform = dm_odm->SupportPlatform;u8 interfaceValue = dm_odm->SupportInterface; -u8 board = dm_odm->BoardType;u32 arraylen =sizeof (array_phy_reg_1t_8188e) /sizeof (u32);u32 *array = array_phy_reg_1t_8188e;bool biol = false;
@@ -466,7 +463,6 @@ enum HAL_STATUS ODM_ReadAndConfig_PHY_REG_1T_8188E(struct odm_dm_struct *dm_odm)struct xmit_frame *pxmit_frame =NULL ;u8 bndy_cnt =1 ;enum HAL_STATUS rst =HAL_STATUS_SUCCESS ; - hex += board; hex += interfaceValue <<8 ; hex += platform <<16 ; hex +=0xFF000000 ;
@@ -667,11 +663,10 @@ void ODM_ReadAndConfig_PHY_REG_PG_8188E(struct odm_dm_struct *dm_odm)u32 i =0 ;u8 platform = dm_odm->SupportPlatform;u8 interfaceValue = dm_odm->SupportInterface; -u8 board = dm_odm->BoardType;u32 arraylen =sizeof (array_phy_reg_pg_8188e) /sizeof (u32);u32 *array = array_phy_reg_pg_8188e; - hex = board + (interfaceValue <<8 ); + hex = interfaceValue <<8 ; hex += (platform <<16 ) +0xFF000000 ;for (i =0 ; i < arraylen; i +=3 ) {
drivers/staging/r8188eu/hal/HalHWImg8188E_MAC.c +0 -2
@@ -135,7 +135,6 @@ enum HAL_STATUS ODM_ReadAndConfig_MAC_REG_8188E(struct odm_dm_struct *dm_odm)u32 i;u8 platform = dm_odm->SupportPlatform;u8 interface_val = dm_odm->SupportInterface; -u8 board = dm_odm->BoardType;u32 array_len =sizeof (array_MAC_REG_8188E) /sizeof (u32);u32 *array = array_MAC_REG_8188E;bool biol = false;
@@ -144,7 +143,6 @@ enum HAL_STATUS ODM_ReadAndConfig_MAC_REG_8188E(struct odm_dm_struct *dm_odm)struct xmit_frame *pxmit_frame =NULL ;u8 bndy_cnt =1 ;enum HAL_STATUS rst =HAL_STATUS_SUCCESS ; - hex += board; hex += interface_val <<8 ; hex += platform <<16 ; hex +=0xFF000000 ;
drivers/staging/r8188eu/hal/HalHWImg8188E_RF.c +0 -2
@@ -146,7 +146,6 @@ enum HAL_STATUS ODM_ReadAndConfig_RadioA_1T_8188E(struct odm_dm_struct *pDM_Odm)u32 i =0 ;u8 platform = pDM_Odm->SupportPlatform;u8 interfaceValue = pDM_Odm->SupportInterface; -u8 board = pDM_Odm->BoardType;u32 ArrayLen =sizeof (Array_RadioA_1T_8188E) /sizeof (u32);u32 *Array = Array_RadioA_1T_8188E;bool biol = false;
@@ -155,7 +154,6 @@ enum HAL_STATUS ODM_ReadAndConfig_RadioA_1T_8188E(struct odm_dm_struct *pDM_Odm)u8 bndy_cnt =1 ;enum HAL_STATUS rst =HAL_STATUS_SUCCESS ; - hex += board; hex += interfaceValue <<8 ; hex += platform <<16 ; hex +=0xFF000000 ;
drivers/staging/r8188eu/hal/odm.c +0 -3
@@ -229,9 +229,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase ODM_CMNINFO_RF_ANTENNA_TYPE : pDM_Odm->AntDivType = (u8 )Value;break ; -case ODM_CMNINFO_BOARD_TYPE : - pDM_Odm->BoardType = (u8 )Value; -break ;/* To remove the compiler warning, must add an empty default statement to handle the other values. */ default :/* do nothing */
drivers/staging/r8188eu/hal/odm_HWConfig.c +0 -11
@@ -179,17 +179,6 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm_dm_struct *dm_odm,RSSI =odm_QueryRxPwrPercentage (rx_pwr[i]); total_rssi +=RSSI ; -/* Modification for ext-LNA board */ -if (dm_odm->BoardType ==ODM_BOARD_HIGHPWR ) { -if ((pPhyStaRpt->path_agc[i].trsw) ==1 ) -RSSI = (RSSI >94 ) ?100 : (RSSI +6 ); -else -RSSI = (RSSI <=16 ) ? (RSSI >>3 ) : (RSSI -16 ); - -if ((RSSI <=34 ) && (RSSI >=4 )) -RSSI -=4 ; - } - pPhyInfo->RxMIMOSignalStrength[i] = (u8 )RSSI ;/* Get Rx snr value in DB */
drivers/staging/r8188eu/include/odm.h +0 -12
@@ -266,7 +266,6 @@ enum odm_common_info_def {ODM_CMNINFO_INTERFACE ,/* ODM_INTERFACE_E */ ODM_CMNINFO_MP_TEST_CHIP , ODM_CMNINFO_RF_TYPE, /* RF_PATH_E or ODM_RF_TYPE_E? */ - ODM_CMNINFO_BOARD_TYPE, /* ODM_BOARD_TYPE_E *//* HOOK BEFORE REG INIT----------- */ /* Dynamic value: */
@@ -437,15 +436,6 @@ enum odm_bw { ODM_BW40M = 1, }; -/* ODM_CMNINFO_BOARD_TYPE */ -enum odm_board_type { -ODM_BOARD_NORMAL =0 , -ODM_BOARD_HIGHPWR =1 , -ODM_BOARD_MINICARD =2 , -ODM_BOARD_SLIM =3 , -ODM_BOARD_COMBO =4 , -}; -/* ODM_CMNINFO_ONE_PATH_CCA */ enum odm_cca_path {ODM_CCA_2R =0 ,
@@ -628,8 +618,6 @@ struct odm_dm_struct {u8 SupportInterface;/* RF Type 4T4R/3T3R/2T2R/1T2R/1T1R/... */ u8 RFType; -/* Board Type Normal/HighPower/MiniCard/SLIM/Combo/. = 0/1/2/3/4/. */ -u8 BoardType;u32 BK_SupportAbility;u8 AntDivType;
Signature · 1 line
2.20.1
PATCH 8/8 staging: r8188eu: odm SupportPlatform is always ODM_CE
In reply to Martin KaiserRemove the SupportPlatform entry of struct odm_dm_struct and any code that depends on SupportPlatform != ODM_CE.
Merge functions in places where there was a "top-level function" that would select a "sub-function" based on SupportPlatform.
--- .../staging/r8188eu/hal/HalHWImg8188E_BB.c | 9 +- .../staging/r8188eu/hal/HalHWImg8188E_MAC.c | 3 +- .../staging/r8188eu/hal/HalHWImg8188E_RF.c | 3 +- drivers/staging/r8188eu/hal/odm.c | 141 ++---------------- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 2 - drivers/staging/r8188eu/include/odm.h | 3 - drivers/staging/r8188eu/include/odm_precomp.h | 10 -- drivers/staging/r8188eu/include/odm_types.h | 6 - 8 files changed, 19 insertions(+), 158 deletions(-)
drivers/staging/r8188eu/hal/HalHWImg8188E_BB.c +3 -6
@@ -176,7 +176,6 @@ enum HAL_STATUS ODM_ReadAndConfig_AGC_TAB_1T_8188E(struct odm_dm_struct *dm_odm) {u32 hex =0 ;u32 i =0 ; -u8 platform = dm_odm->SupportPlatform;u8 interfaceValue = dm_odm->SupportInterface;u32 arraylen =sizeof (array_agc_tab_1t_8188e) /sizeof (u32);u32 *array = array_agc_tab_1t_8188e;
@@ -187,7 +186,7 @@ enum HAL_STATUS ODM_ReadAndConfig_AGC_TAB_1T_8188E(struct odm_dm_struct *dm_odm)enum HAL_STATUS rst =HAL_STATUS_SUCCESS ; hex += interfaceValue <<8 ; - hex += platform <<16 ; + hex +=ODM_CE <<16 ; hex +=0xFF000000 ; biol =rtw_IOL_applied (adapter);
@@ -454,7 +453,6 @@ enum HAL_STATUS ODM_ReadAndConfig_PHY_REG_1T_8188E(struct odm_dm_struct *dm_odm) {u32 hex =0 ;u32 i =0 ; -u8 platform = dm_odm->SupportPlatform;u8 interfaceValue = dm_odm->SupportInterface;u32 arraylen =sizeof (array_phy_reg_1t_8188e) /sizeof (u32);u32 *array = array_phy_reg_1t_8188e;
@@ -464,7 +462,7 @@ enum HAL_STATUS ODM_ReadAndConfig_PHY_REG_1T_8188E(struct odm_dm_struct *dm_odm)u8 bndy_cnt =1 ;enum HAL_STATUS rst =HAL_STATUS_SUCCESS ; hex += interfaceValue <<8 ; - hex += platform <<16 ; + hex +=ODM_CE <<16 ; hex +=0xFF000000 ; biol =rtw_IOL_applied (adapter);
@@ -661,13 +659,12 @@ void ODM_ReadAndConfig_PHY_REG_PG_8188E(struct odm_dm_struct *dm_odm) {u32 hex;u32 i =0 ; -u8 platform = dm_odm->SupportPlatform;u8 interfaceValue = dm_odm->SupportInterface;u32 arraylen =sizeof (array_phy_reg_pg_8188e) /sizeof (u32);u32 *array = array_phy_reg_pg_8188e; hex = interfaceValue <<8 ; - hex += (platform <<16 ) +0xFF000000 ; + hex += (ODM_CE <<16 ) +0xFF000000 ;for (i =0 ; i < arraylen; i +=3 ) {u32 v1 = array[i];
drivers/staging/r8188eu/hal/HalHWImg8188E_MAC.c +1 -2
@@ -133,7 +133,6 @@ enum HAL_STATUS ODM_ReadAndConfig_MAC_REG_8188E(struct odm_dm_struct *dm_odm)u32 hex =0 ;u32 i; -u8 platform = dm_odm->SupportPlatform;u8 interface_val = dm_odm->SupportInterface;u32 array_len =sizeof (array_MAC_REG_8188E) /sizeof (u32);u32 *array = array_MAC_REG_8188E;
@@ -144,7 +143,7 @@ enum HAL_STATUS ODM_ReadAndConfig_MAC_REG_8188E(struct odm_dm_struct *dm_odm)u8 bndy_cnt =1 ;enum HAL_STATUS rst =HAL_STATUS_SUCCESS ; hex += interface_val <<8 ; - hex += platform <<16 ; + hex +=ODM_CE <<16 ; hex +=0xFF000000 ; biol =rtw_IOL_applied (adapt);
drivers/staging/r8188eu/hal/HalHWImg8188E_RF.c +1 -2
@@ -144,7 +144,6 @@ enum HAL_STATUS ODM_ReadAndConfig_RadioA_1T_8188E(struct odm_dm_struct *pDM_Odm)u32 hex =0 ;u32 i =0 ; -u8 platform = pDM_Odm->SupportPlatform;u8 interfaceValue = pDM_Odm->SupportInterface;u32 ArrayLen =sizeof (Array_RadioA_1T_8188E) /sizeof (u32);u32 *Array = Array_RadioA_1T_8188E;
@@ -155,7 +154,7 @@ enum HAL_STATUS ODM_ReadAndConfig_RadioA_1T_8188E(struct odm_dm_struct *pDM_Odm)enum HAL_STATUS rst =HAL_STATUS_SUCCESS ; hex += interfaceValue <<8 ; - hex += platform <<16 ; + hex +=ODM_CE <<16 ; hex +=0xFF000000 ; biol =rtw_IOL_applied (Adapter);
drivers/staging/r8188eu/hal/odm.c +14 -127
217 lines not on this page · raw message
drivers/staging/r8188eu/hal/rtl8188e_dm.c +0 -2
@@ -33,8 +33,6 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter) dm_odm->Adapter = Adapter; -ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_PLATFORM ,ODM_CE ); -ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_INTERFACE ,ODM_ITRF_USB );ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_MP_TEST_CHIP ,IS_NORMAL_CHIP (hal_data->VersionID));
drivers/staging/r8188eu/include/odm.h +0 -3
@@ -261,7 +261,6 @@ enum odm_common_info_def {/* Fixed value: */ /* HOOK BEFORE REG INIT----------- */ -ODM_CMNINFO_PLATFORM =0 ,ODM_CMNINFO_ABILITY ,/* ODM_ABILITY_E */ ODM_CMNINFO_INTERFACE ,/* ODM_INTERFACE_E */ ODM_CMNINFO_MP_TEST_CHIP,
@@ -610,8 +609,6 @@ struct odm_dm_struct {/* 1 COMMON INFORMATION */ /* Init Value */ /* HOOK BEFORE REG INIT----------- */ -/* ODM Platform info AP/ADSL/CE/MP = 1/2/3/4 */ -u8 SupportPlatform;/* ODM Support Ability DIG/RATR/TX_PWR_TRACK/ �K�K = 1/2/3/�K */ u32 SupportAbility;/* ODM PCIE/USB/SDIO/GSPI = 0/1/2/3 */
drivers/staging/r8188eu/include/odm_precomp.h +0 -10
@@ -43,22 +43,12 @@ void odm_CommonInfoSelfUpdate(struct odm_dm_struct *pDM_Odm);void odm_FalseAlarmCounterStatistics (struct odm_dm_struct *pDM_Odm);void odm_DIG (struct odm_dm_struct *pDM_Odm);void odm_CCKPacketDetectionThresh (struct odm_dm_struct *pDM_Odm); -void odm_RefreshRateAdaptiveMaskMP (struct odm_dm_struct *pDM_Odm);void odm_SwAntDivChkAntSwitch (struct odm_dm_struct *pDM_Odm,u8 Step);void odm_EdcaTurboCheck (struct odm_dm_struct *pDM_Odm);void odm_CommonInfoSelfInit (struct odm_dm_struct *pDM_Odm);void odm_RSSIMonitorCheck (struct odm_dm_struct *pDM_Odm);void odm_RefreshRateAdaptiveMask (struct odm_dm_struct *pDM_Odm); -void odm_RefreshRateAdaptiveMaskCE (struct odm_dm_struct *pDM_Odm); -void odm_RefreshRateAdaptiveMaskAPADSL (struct odm_dm_struct *pDM_Odm); -void odm_RSSIMonitorCheckMP (struct odm_dm_struct *pDM_Odm); -void odm_RSSIMonitorCheckCE (struct odm_dm_struct *pDM_Odm); -void odm_RSSIMonitorCheckAP (struct odm_dm_struct *pDM_Odm);void odm_TXPowerTrackingThermalMeterInit (struct odm_dm_struct *pDM_Odm); -void odm_EdcaTurboCheckCE (struct odm_dm_struct *pDM_Odm); -void odm_TXPowerTrackingCheckCE (struct odm_dm_struct *pDM_Odm); -void odm_TXPowerTrackingCheckMP (struct odm_dm_struct *pDM_Odm); -void odm_TXPowerTrackingCheckAP (struct odm_dm_struct *pDM_Odm);void odm_SwAntDivChkAntSwitchCallback (struct timer_list *t);void odm_InitHybridAntDiv (struct odm_dm_struct *pDM_Odm);void odm_HwAntDiv (struct odm_dm_struct *pDM_Odm);
drivers/staging/r8188eu/include/odm_types.h +0 -6
@@ -4,13 +4,7 @@#ifndef __ODM_TYPES_H__#define __ODM_TYPES_H__ -/* */ -/* Define Different SW team support */ -/* */ -#define ODM_AP 0x01/* BIT(0) */ -#define ODM_ADSL 0x02/* BIT(1) */ #define ODM_CE 0x04/* BIT(2) */ -#define ODM_MP 0x08/* BIT(3) */ enum HAL_STATUS { HAL_STATUS_SUCCESS,
Signature · 1 line
2.20.1