Commit 09b052a9 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

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

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 42f9f19e
...@@ -344,9 +344,6 @@ void ODM_CmnInfoInit23a(struct dm_odm_t *pDM_Odm, ...@@ -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) ...@@ -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;
......
...@@ -150,8 +150,7 @@ static void Update_ODM_ComInfo_8723a(struct rtw_adapter *Adapter) ...@@ -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);
......
...@@ -300,7 +300,6 @@ enum odm_cmninfo { ...@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment