Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d10ef637 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: Remove zero value calculation added to address

parent 6b435adb
Loading
Loading
Loading
Loading
+4 −18
Original line number Diff line number Diff line
@@ -43,30 +43,16 @@ odm_ConfigRFReg_8723A(
	}
}

void odm_ConfigRF_RadioA_8723A(struct dm_odm_t *pDM_Odm,
	u32					Addr,
	u32					Data
	)
void odm_ConfigRF_RadioA_8723A(struct dm_odm_t *pDM_Odm, u32 Addr, u32 Data)
{
	u32  content = 0x1000; /*  RF_Content: radioa_txt */
	u32	maskforPhySet = (u32)(content&0xE000);

	odm_ConfigRFReg_8723A(pDM_Odm, Addr, Data, RF_PATH_A,
			      Addr|maskforPhySet);
	odm_ConfigRFReg_8723A(pDM_Odm, Addr, Data, RF_PATH_A, Addr);
	ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
		     ("===> %s: [RadioA] %08X %08X\n", __func__, Addr, Data));
}

void odm_ConfigRF_RadioB_8723A(struct dm_odm_t *pDM_Odm,
	u32					Addr,
	u32					Data
	)
void odm_ConfigRF_RadioB_8723A(struct dm_odm_t *pDM_Odm, u32 Addr, u32 Data)
{
	u32  content = 0x1001; /*  RF_Content: radiob_txt */
	u32	maskforPhySet = (u32)(content&0xE000);

	odm_ConfigRFReg_8723A(pDM_Odm, Addr, Data, RF_PATH_B,
			      Addr|maskforPhySet);
	odm_ConfigRFReg_8723A(pDM_Odm, Addr, Data, RF_PATH_B, Addr);
	ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
		     ("===> %s: [RadioB] %08X %08X\n", __func__, Addr, Data));
}