Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304238
b: refs/heads/master
c: 1ee6b74
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Miller authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent a743a39 commit b23c1bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9c73f9b56efd3ed020e6a3b19d1dcdf84d93bbe
refs/heads/master: 1ee6b74f3b58f4302383a170f3a4f9f17506a624
24 changes: 2 additions & 22 deletions trunk/drivers/staging/rtl8187se/r8185b_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ Major Change History:
#include "r8180_rtl8225.h" /* RTL8225 Radio frontend */
#include "r8180_93cx6.h" /* Card EEPROM */
#include "r8180_wx.h"

#include "ieee80211/dot11d.h"


/* #define CONFIG_RTL8180_IO_MAP */

#define TC_3W_POLL_MAX_TRY_CNT 5

static u8 MAC_REG_TABLE[][2] = {
/*PAGA 0: */
/* 0x34(BRSR), 0xBE(RATE_FALLBACK_CTL), 0x1E0(ARFR) would set in HwConfigureRTL8185() */
Expand Down Expand Up @@ -133,7 +130,6 @@ u8 PlatformIORead1Byte(struct net_device *dev, u32 offset);

void PlatformIOWrite4Byte(struct net_device *dev, u32 offset, u32 data)
{
/* {by amy 080312 */
if (offset == PhyAddr) {
/* For Base Band configuration. */
unsigned char cmdByte;
Expand Down Expand Up @@ -169,9 +165,7 @@ void PlatformIOWrite4Byte(struct net_device *dev, u32 offset, u32 data)
write_nic_byte(dev, offset, cmdByte);

/* NdisReleaseSpinLock( &(pDevice->IoSpinLock) ); */
}
/* by amy 080312} */
else {
} else {
write_nic_dword(dev, offset, data);
read_nic_dword(dev, offset); /* To make sure write operation is completed, 2005.11.09, by rcnjko. */
}
Expand Down Expand Up @@ -393,7 +387,6 @@ u8 ReadBBPortUchar(struct net_device *dev, u32 addr)

return RegisterContent;
}
/* {by amy 080312 */
/*
Description:
Perform Antenna settings with antenna diversity on 87SE.
Expand Down Expand Up @@ -465,7 +458,6 @@ bool SetAntennaConfig87SE(struct net_device *dev,
priv->CurrAntennaIndex = DefaultAnt; /* Update default settings. */
return bAntennaSwitched;
}
/* by amy 080312 */
/*
---------------------------------------------------------------
* Hardware Initialization.
Expand Down Expand Up @@ -583,7 +575,6 @@ void ZEBRA_Config_85BASIC_HardCode(struct net_device *dev)
/* DAC calibration off 20070702 */
RF_WriteReg(dev, 0x06, 0x00c1); mdelay(1);
RF_WriteReg(dev, 0x0a, 0x0001); mdelay(1);
/* {by amy 080312 */
/* For crystal calibration, added by Roger, 2007.12.11. */
if (priv->bXtalCalibration) { /* reg 30. */
/* enable crystal calibration.
Expand All @@ -598,7 +589,6 @@ void ZEBRA_Config_85BASIC_HardCode(struct net_device *dev)
/* using default value. Xin=6, Xout=6. */
RF_WriteReg(dev, 0x0f, 0x0acc); mdelay(1);
}
/* by amy 080312 */

RF_WriteReg(dev, 0x00, 0x00bf); mdelay(1); /* switch to reg0-reg15, and HSSI enable */
RF_WriteReg(dev, 0x0d, 0x08df); mdelay(1); /* Rx BB start calibration, 00c//+edward */
Expand Down Expand Up @@ -692,11 +682,8 @@ void ZEBRA_Config_85BASIC_HardCode(struct net_device *dev)
by amy for antenna
=============================================================================
*/
/* {by amy 080312 */
/* Config Sw/Hw Combinational Antenna Diversity. Added by Roger, 2008.02.26. */
SetAntennaConfig87SE(dev, priv->bDefaultAntenna1, priv->bSwAntennaDiverity);
/* by amy 080312} */
/* by amy for antenna */
}


Expand Down Expand Up @@ -792,7 +779,6 @@ void PhyConfig8185(struct net_device *dev)
priv->RFProgType = read_nic_byte(dev, CONFIG4) & 0x03;
/* RF config */
ZEBRA_Config_85BASIC_HardCode(dev);
/* {by amy 080312 */
/* Set default initial gain state to 4, approved by SD3 DZ, by Bruce, 2007-06-06. */
if (priv->bDigMechanism) {
if (priv->InitialGain == 0)
Expand All @@ -807,7 +793,6 @@ void PhyConfig8185(struct net_device *dev)
if (priv->bTxPowerTrack)
InitTxPwrTracking87SE(dev);

/* by amy 080312} */
priv->InitialGainBackUp = priv->InitialGain;
UpdateInitialGain(dev);

Expand Down Expand Up @@ -1055,7 +1040,6 @@ void ActUpdateChannelAccessSetting(struct net_device *dev,
PACI_AIFSN pAciAifsn = (PACI_AIFSN)(&pAcParam->f.AciAifsn);
AC_CODING eACI = pAciAifsn->f.ACI;

/*modified Joseph */
/*for 8187B AsynIORead issue */
u8 AcmCtrl = 0;
if (pAciAifsn->f.ACM) {
Expand Down Expand Up @@ -1158,7 +1142,6 @@ void rtl8185b_irq_enable(struct net_device *dev)
write_nic_dword(dev, IMR, priv->IntrMask);
}

/* by amy for power save */
void DrvIFIndicateDisassociation(struct net_device *dev, u16 reason)
{
/* nothing is needed after disassociation request. */
Expand Down Expand Up @@ -1565,7 +1548,6 @@ void rtl8185b_adapter_start(struct net_device *dev)
/* One of B, G, A. */
InitWirelessMode = ieee->mode;
}
/* by amy for power save */
priv->eRFPowerState = eRfOff;
priv->RfOffReason = 0;
{
Expand All @@ -1577,8 +1559,6 @@ void rtl8185b_adapter_start(struct net_device *dev)
if (priv->bInactivePs)
MgntActSet_RF_State(dev , eRfOff, RF_CHANGE_BY_IPS);

/* by amy for power save */

ActSetWirelessMode8185(dev, (u8)(InitWirelessMode));

/* ----------------------------------------------------------------------------- */
Expand Down

0 comments on commit b23c1bc

Please sign in to comment.