Commit 999bae66 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: ExternalPA is read-only



The variable ExternalPA in struct hal_data_8188e is never set.
It stays at the default value 0. Remove it and remove related
dead code.

Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220201084259.7497-2-straube.linux@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b47f6db3
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -99,9 +99,6 @@ rtl8188e_PHY_RF6052SetCckTxPower(
			TxAGC[idx1] =
				pPowerlevel[idx1] | (pPowerlevel[idx1] << 8) |
				(pPowerlevel[idx1] << 16) | (pPowerlevel[idx1] << 24);
			/*  2010/10/18 MH For external PA module. We need to limit power index to be less than 0x20. */
			if (TxAGC[idx1] > 0x20 && pHalData->ExternalPA)
				TxAGC[idx1] = 0x20;
		}
	} else {
		for (idx1 = RF_PATH_A; idx1 <= RF_PATH_B; idx1++) {
+0 −1
Original line number Diff line number Diff line
@@ -181,7 +181,6 @@ struct hal_data_8188e {
	u32	MCSTxPowerLevelOriginalOffset[MAX_PG_GROUP][16];

	u8	CrystalCap;
	u8	ExternalPA;

	u32	AcParam_BE; /* Original parameter for BE, use for EDCA turbo. */