Skip to content

Commit

Permalink
staging: rtl8192e: Remove dead code associated with RTL8192SE
Browse files Browse the repository at this point in the history
The vendor code will generate several different drivers. As the RTL8192SE
is covered by a mac80211 driver in mainline, eliminate that code heere.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 24, 2011
1 parent 175159c commit 1e71e6d
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 1,677 deletions.
10 changes: 0 additions & 10 deletions drivers/staging/rtl8192e/r8190P_rtl8256.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@
******************************************************************************/

#include "rtl_core.h"
#ifdef RTL8192SE
#include "rtl8192s/r8192S_phyreg.h"
#include "rtl8192s/r8192S_phy.h"
#else
#include "r8192E_phyreg.h"
#include "r8192E_phy.h"
#endif
#include "r8190P_rtl8256.h"

void PHY_SetRF8256Bandwidth(struct net_device* dev , HT_CHANNEL_WIDTH Bandwidth)
Expand Down Expand Up @@ -188,7 +183,6 @@ bool phy_RF8256_Config_ParaFile(struct net_device* dev)
return false;
}

#ifndef RTL8192SE
void PHY_SetRF8256CCKTxPower(struct net_device* dev, u8 powerlevel)
{
u32 TxAGC=0;
Expand Down Expand Up @@ -260,7 +254,3 @@ void PHY_SetRF8256OFDMTxPower(struct net_device* dev, u8 powerlevel)
#endif
return;
}



#endif
83 changes: 0 additions & 83 deletions drivers/staging/rtl8192e/r8192E_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,61 +1436,6 @@ rtl8192_signal_scale_mapping(struct r8192_priv * priv,
{
long retsig;

#if defined RTL8192SE || defined RTL8192CE
if (priv->CustomerID == RT_CID_819x_Lenovo)
{
return currsig;
}
else if (priv->CustomerID == RT_CID_819x_Netcore)
{
if (currsig >= 31 && currsig <= 100)
{
retsig = 100;
}
else if (currsig >= 21 && currsig <= 30)
{
retsig = 90 + ((currsig - 20) / 1);
}
else if (currsig >= 11 && currsig <= 20)
{
retsig = 80 + ((currsig - 10) / 1);
}
else if (currsig >= 7 && currsig <= 10)
{
retsig = 69 + (currsig - 7);
}
else if (currsig == 6)
{
retsig = 54;
}
else if (currsig == 5)
{
retsig = 45;
}
else if (currsig == 4)
{
retsig = 36;
}
else if (currsig == 3)
{
retsig = 27;
}
else if (currsig == 2)
{
retsig = 18;
}
else if (currsig == 1)
{
retsig = 9;
}
else
{
retsig = currsig;
}
return retsig;
}
#endif

if (currsig >= 61 && currsig <= 100)
{
retsig = 90 + ((currsig - 60) / 4);
Expand Down Expand Up @@ -2257,10 +2202,6 @@ void rtl8192_EnableInterrupt(struct net_device *dev)
write_nic_dword(dev,INTA_MASK, priv->irq_mask[0]);
#endif

#ifdef RTL8192SE
write_nic_dword(dev,INTA_MASK+4, priv->irq_mask[1]&0x3F);
#endif

}

void rtl8192_DisableInterrupt(struct net_device *dev)
Expand All @@ -2273,9 +2214,6 @@ void rtl8192_DisableInterrupt(struct net_device *dev)
write_nic_dword(dev,INTA_MASK,0);
#endif

#ifdef RTL8192SE
write_nic_dword(dev,INTA_MASK + 4,0);
#endif
priv->irq_enabled = 0;
}

Expand All @@ -2290,10 +2228,6 @@ void rtl8192_ClearInterrupt(struct net_device *dev)
write_nic_dword(dev, ISR, tmp);
#endif

#ifdef RTL8192SE
tmp = read_nic_dword(dev, ISR+4);
write_nic_dword(dev, ISR+4, tmp);
#endif
}


Expand Down Expand Up @@ -2334,17 +2268,8 @@ void rtl8192_beacon_disable(struct net_device *dev)

void rtl8192_interrupt_recognized(struct net_device *dev, u32 *p_inta, u32 *p_intb)
{
#ifdef RTL8192SE
struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
*p_inta = read_nic_dword(dev, ISR) & priv->irq_mask[0];
#else
*p_inta = read_nic_dword(dev, ISR) ;
#endif
write_nic_dword(dev,ISR,*p_inta);
#ifdef RTL8192SE
*p_intb = read_nic_dword(dev, ISR+4);
write_nic_dword(dev, ISR+4, *p_intb);
#endif
}

bool rtl8192_HalRxCheckStuck(struct net_device *dev)
Expand Down Expand Up @@ -2438,9 +2363,6 @@ bool rtl8192_HalTxCheckStuck(struct net_device *dev)

bool rtl8192_GetNmodeSupportBySecCfg(struct net_device *dev)
{
#ifdef RTL8192SE
return true;
#else
struct r8192_priv *priv = rtllib_priv(dev);
struct rtllib_device *ieee = priv->rtllib;
if (ieee->rtllib_ap_sec_type &&
Expand All @@ -2449,14 +2371,10 @@ bool rtl8192_GetNmodeSupportBySecCfg(struct net_device *dev)
} else {
return true;
}
#endif
}

bool rtl8192_GetHalfNmodeSupportByAPs(struct net_device* dev)
{
#ifdef RTL8192SE
return false;
#else
bool Reval;
struct r8192_priv* priv = rtllib_priv(dev);
struct rtllib_device* ieee = priv->rtllib;
Expand All @@ -2467,7 +2385,6 @@ bool rtl8192_GetHalfNmodeSupportByAPs(struct net_device* dev)
Reval = false;

return Reval;
#endif
}

u8 rtl8192_QueryIsShort(u8 TxHT, u8 TxRate, cb_desc *tcb_desc)
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/rtl8192e/r8192E_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,6 @@ PHY_SetRtl8192eRfOff(struct net_device* dev )
}
#endif

#ifndef RTL8192SE
bool
SetRFPowerState8190(
struct net_device* dev,
Expand Down Expand Up @@ -1695,7 +1694,6 @@ SetRFPowerState(

return bResult;
}
#endif

extern void
PHY_ScanOperationBackup8192(
Expand Down
Loading

0 comments on commit 1e71e6d

Please sign in to comment.