staging: rtl8723au: We don't need two APIs to set pHalData->odmpriv.SupportAbility

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jes Sorensen 2014-07-21 11:24:54 +02:00 committed by Greg Kroah-Hartman
parent 42f9f19ef5
commit 09b052a909
3 changed files with 1 additions and 9 deletions

View File

@ -344,9 +344,6 @@ void ODM_CmnInfoInit23a(struct dm_odm_t *pDM_Odm,
/* */ /* */
switch (CmnInfo) { switch (CmnInfo) {
/* Fixed ODM value. */ /* Fixed ODM value. */
case ODM_CMNINFO_ABILITY:
pDM_Odm->SupportAbility = (u32)Value;
break;
case ODM_CMNINFO_PLATFORM: case ODM_CMNINFO_PLATFORM:
break; break;
case ODM_CMNINFO_INTERFACE: case ODM_CMNINFO_INTERFACE:
@ -461,9 +458,6 @@ void ODM_CmnInfoUpdate23a(struct dm_odm_t *pDM_Odm, u32 CmnInfo, u64 Value)
{ {
/* This init variable may be changed in run time. */ /* This init variable may be changed in run time. */
switch (CmnInfo) { switch (CmnInfo) {
case ODM_CMNINFO_ABILITY:
pDM_Odm->SupportAbility = (u32)Value;
break;
case ODM_CMNINFO_RF_TYPE: case ODM_CMNINFO_RF_TYPE:
pDM_Odm->RFType = (u8)Value; pDM_Odm->RFType = (u8)Value;
break; break;

View File

@ -150,8 +150,7 @@ static void Update_ODM_ComInfo_8723a(struct rtw_adapter *Adapter)
ODM_RF_TX_PWR_TRACK | ODM_RF_TX_PWR_TRACK |
ODM_RF_CALIBRATION; ODM_RF_CALIBRATION;
/* Pointer reference */ /* Pointer reference */
rtl8723a_odm_support_ability_set(Adapter, DYNAMIC_ALL_FUNC_ENABLE);
ODM_CmnInfoUpdate23a(pDM_Odm, ODM_CMNINFO_ABILITY, pdmpriv->InitODMFlag);
ODM23a_CmnInfoHook(pDM_Odm, ODM_CMNINFO_SEC_CHNL_OFFSET, ODM23a_CmnInfoHook(pDM_Odm, ODM_CMNINFO_SEC_CHNL_OFFSET,
&pHalData->nCur40MhzPrimeSC); &pHalData->nCur40MhzPrimeSC);

View File

@ -300,7 +300,6 @@ enum odm_cmninfo {
/* */ /* */
ODM_CMNINFO_PLATFORM = 0, ODM_CMNINFO_PLATFORM = 0,
ODM_CMNINFO_ABILITY, /* enum odm_ability */
ODM_CMNINFO_INTERFACE, /* enum odm_interface_def */ ODM_CMNINFO_INTERFACE, /* enum odm_interface_def */
ODM_CMNINFO_MP_TEST_CHIP, ODM_CMNINFO_MP_TEST_CHIP,
ODM_CMNINFO_IC_TYPE, /* enum odm_ic_type_def */ ODM_CMNINFO_IC_TYPE, /* enum odm_ic_type_def */