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

Commit 536d190d authored by Andrew Miller's avatar Andrew Miller Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8187se: r8180_dm.c: Fix spacing issues



Fix spacing around keywords, '*', binary and ternary
operators, and fix the format of statments and function
declaration.

Signed-off-by: default avatarAndrew Miller <amiller@amilx.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1748d2de
Loading
Loading
Loading
Loading
+197 −245
Original line number Diff line number Diff line
@@ -36,10 +36,7 @@ bool CheckHighPower(struct net_device *dev)
//		and they are related to OFDM and MAC registers.
//		So, we don't want to update it so frequently in per-Rx packet base.
//
void
DoTxHighPower(
	struct net_device *dev
	)
void DoTxHighPower(struct net_device *dev)
{
	struct r8180_priv *priv = ieee80211_priv(dev);
	u16			HiPwrUpperTh = 0;
@@ -136,10 +133,7 @@ void rtl8180_tx_pw_wq (struct work_struct *work)
//	Description:
//		Return TRUE if we shall perform DIG Mecahnism, FALSE otherwise.
//
bool
CheckDig(
	struct net_device *dev
	)
bool CheckDig(struct net_device *dev)
{
	struct r8180_priv *priv = ieee80211_priv(dev);
	struct ieee80211_device *ieee = priv->ieee80211;
@@ -159,10 +153,7 @@ CheckDig(
//	Description:
//		Implementation of DIG for Zebra and Zebra2.
//
void
DIG_Zebra(
	struct net_device *dev
	)
void DIG_Zebra(struct net_device *dev)
{
	struct r8180_priv *priv = ieee80211_priv(dev);
	u16			CCKFalseAlarm, OFDMFalseAlarm;
@@ -256,8 +247,7 @@ DIG_Zebra(
//	Description:
//		Dispatch DIG implementation according to RF.
//
void
DynamicInitGain(struct net_device *dev)
void DynamicInitGain(struct net_device *dev)
{
	DIG_Zebra(dev);
}
@@ -278,10 +268,7 @@ void rtl8180_hw_dig_wq (struct work_struct *work)

}

int
IncludedInSupportedRates(
	struct r8180_priv       *priv,
	u8              TxRate  )
int IncludedInSupportedRates(struct r8180_priv *priv, u8 TxRate)
{
	u8 rate_len;
	u8 rate_ex_len;
@@ -315,11 +302,7 @@ IncludedInSupportedRates(
//              Return the upgrade rate if it is successed, otherwise return the input rate.
//      By Bruce, 2007-06-05.
//
u8
GetUpgradeTxRate(
	struct net_device *dev,
	u8                              rate
	)
u8 GetUpgradeTxRate(struct net_device *dev, u8 rate)
{
	struct r8180_priv *priv = ieee80211_priv(dev);
	u8                      UpRate;
@@ -382,11 +365,7 @@ GetUpgradeTxRate(
//              Return the degrade rate if it is successed, otherwise return the input rate.
//      By Bruce, 2007-06-05.
//
u8
GetDegradeTxRate(
	struct net_device *dev,
	u8         rate
	)
u8 GetDegradeTxRate(struct net_device *dev, u8 rate)
{
	struct r8180_priv *priv = ieee80211_priv(dev);
	u8                      DownRate;
@@ -448,10 +427,7 @@ GetDegradeTxRate(
//      CCK rate.
//      2005.01.25, by rcnjko.
//
bool
MgntIsCckRate(
	u16     rate
	)
bool MgntIsCckRate(u16 rate)
{
	bool bReturn = false;

@@ -466,10 +442,7 @@ MgntIsCckRate(
//		Tx Power tracking mechanism routine on 87SE.
//	Created by Roger, 2007.12.11.
//
void
TxPwrTracking87SE(
	struct net_device *dev
)
void TxPwrTracking87SE(struct net_device *dev)
{
	struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);
	u8	tmpu1Byte, CurrentThermal, Idx;
@@ -520,10 +493,7 @@ TxPwrTracking87SE(
	}
	priv->ThermalMeter = CurrentThermal;
}
void
StaRateAdaptive87SE(
	struct net_device *dev
	)
void StaRateAdaptive87SE(struct net_device *dev)
{
	struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);
	unsigned long	CurrTxokCnt;
@@ -1077,11 +1047,7 @@ void timer_rate_adaptive(unsigned long data)
	//DMESG("<----timer_rate_adaptive()\n");
}
//by amy 080312}
void
SwAntennaDiversityRxOk8185(
	struct net_device *dev,
	u8 SignalStrength
	)
void SwAntennaDiversityRxOk8185(struct net_device *dev, u8 SignalStrength)
{
	struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);

@@ -1106,11 +1072,7 @@ SwAntennaDiversityRxOk8185(
//	Description:
//		Change Antenna Switch.
//
bool
SetAntenna8185(
	struct net_device *dev,
	u8		u1bAntennaIndex
	)
bool SetAntenna8185(struct net_device *dev, u8 u1bAntennaIndex)
{
	struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);
	bool bAntennaSwitched = false;
@@ -1155,10 +1117,7 @@ SetAntenna8185(
//	Description:
//		Toggle Antenna switch.
//
bool
SwitchAntenna(
	struct net_device *dev
	)
bool SwitchAntenna(struct net_device *dev)
{
	struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);

@@ -1186,10 +1145,7 @@ SwitchAntenna(
//
//	2006.04.17, by rcnjko.
//
void
SwAntennaDiversity(
	struct net_device *dev
	)
void SwAntennaDiversity(struct net_device *dev)
{
	struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);
	bool   bSwCheckSS = false;
@@ -1366,8 +1322,7 @@ SwAntennaDiversity(
//	Description:
//		Return TRUE if we shall perform Tx Power Tracking Mecahnism, FALSE otherwise.
//
bool
CheckTxPwrTracking(	struct net_device *dev)
bool CheckTxPwrTracking(struct net_device *dev)
{
	struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);

@@ -1392,10 +1347,7 @@ CheckTxPwrTracking( struct net_device *dev)
//	Description:
//		Timer callback function of SW Antenna Diversity.
//
void
SwAntennaDiversityTimerCallback(
	struct net_device *dev
	)
void SwAntennaDiversityTimerCallback(struct net_device *dev)
{
	struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);
	RT_RF_POWER_STATE rtState;