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:
parent
42f9f19ef5
commit
09b052a909
@ -344,9 +344,6 @@ void ODM_CmnInfoInit23a(struct dm_odm_t *pDM_Odm,
|
||||
/* */
|
||||
switch (CmnInfo) {
|
||||
/* Fixed ODM value. */
|
||||
case ODM_CMNINFO_ABILITY:
|
||||
pDM_Odm->SupportAbility = (u32)Value;
|
||||
break;
|
||||
case ODM_CMNINFO_PLATFORM:
|
||||
break;
|
||||
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. */
|
||||
switch (CmnInfo) {
|
||||
case ODM_CMNINFO_ABILITY:
|
||||
pDM_Odm->SupportAbility = (u32)Value;
|
||||
break;
|
||||
case ODM_CMNINFO_RF_TYPE:
|
||||
pDM_Odm->RFType = (u8)Value;
|
||||
break;
|
||||
|
@ -150,8 +150,7 @@ static void Update_ODM_ComInfo_8723a(struct rtw_adapter *Adapter)
|
||||
ODM_RF_TX_PWR_TRACK |
|
||||
ODM_RF_CALIBRATION;
|
||||
/* Pointer reference */
|
||||
|
||||
ODM_CmnInfoUpdate23a(pDM_Odm, ODM_CMNINFO_ABILITY, pdmpriv->InitODMFlag);
|
||||
rtl8723a_odm_support_ability_set(Adapter, DYNAMIC_ALL_FUNC_ENABLE);
|
||||
|
||||
ODM23a_CmnInfoHook(pDM_Odm, ODM_CMNINFO_SEC_CHNL_OFFSET,
|
||||
&pHalData->nCur40MhzPrimeSC);
|
||||
|
@ -300,7 +300,6 @@ enum odm_cmninfo {
|
||||
/* */
|
||||
|
||||
ODM_CMNINFO_PLATFORM = 0,
|
||||
ODM_CMNINFO_ABILITY, /* enum odm_ability */
|
||||
ODM_CMNINFO_INTERFACE, /* enum odm_interface_def */
|
||||
ODM_CMNINFO_MP_TEST_CHIP,
|
||||
ODM_CMNINFO_IC_TYPE, /* enum odm_ic_type_def */
|
||||
|
Loading…
Reference in New Issue
Block a user