Commit 87502c14 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Greg Kroah-Hartman

Staging: rt2860: remove dead CONFIG_APSTA_MIXED_SUPPORT code

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 20ae4426
...@@ -2814,35 +2814,6 @@ INT Set_FixedTxMode_Proc( ...@@ -2814,35 +2814,6 @@ INT Set_FixedTxMode_Proc(
return TRUE; return TRUE;
} }
#ifdef CONFIG_APSTA_MIXED_SUPPORT
INT Set_OpMode_Proc(
IN PRTMP_ADAPTER pAd,
IN PUCHAR arg)
{
ULONG Value;
Value = simple_strtol(arg, 0, 10);
if (RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_INTERRUPT_IN_USE))
{
DBGPRINT(RT_DEBUG_ERROR, ("Can not switch operate mode on interface up !! \n"));
return FALSE;
}
if (Value == 0)
pAd->OpMode = OPMODE_STA;
else if (Value == 1)
pAd->OpMode = OPMODE_AP;
else
return FALSE; //Invalid argument
DBGPRINT(RT_DEBUG_TRACE, ("Set_OpMode_Proc::(OpMode=%s)\n", pAd->OpMode == 1 ? "AP Mode" : "STA Mode"));
return TRUE;
}
#endif // CONFIG_APSTA_MIXED_SUPPORT //
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
PCHAR RTMPGetRalinkAuthModeStr( PCHAR RTMPGetRalinkAuthModeStr(
IN NDIS_802_11_AUTHENTICATION_MODE authMode) IN NDIS_802_11_AUTHENTICATION_MODE authMode)
......
...@@ -81,10 +81,6 @@ ...@@ -81,10 +81,6 @@
#endif #endif
#endif // CONFIG_STA_SUPPORT // #endif // CONFIG_STA_SUPPORT //
#ifdef CONFIG_APSTA_MIXED_SUPPORT
extern UINT32 CW_MAX_IN_BITS;
#endif // CONFIG_APSTA_MIXED_SUPPORT //
// Note: RSSI_TO_DBM_OFFSET has been changed to variable for new RF (2004-0720). // Note: RSSI_TO_DBM_OFFSET has been changed to variable for new RF (2004-0720).
// SHould not refer to this constant anymore // SHould not refer to this constant anymore
//#define RSSI_TO_DBM_OFFSET 120 // for RT2530 RSSI-115 = dBm //#define RSSI_TO_DBM_OFFSET 120 // for RT2530 RSSI-115 = dBm
......
...@@ -47,10 +47,6 @@ UINT8 MC_CardUsed[MAX_NUM_OF_MULTIPLE_CARD]; ...@@ -47,10 +47,6 @@ UINT8 MC_CardUsed[MAX_NUM_OF_MULTIPLE_CARD];
static UINT8 MC_CardMac[MAX_NUM_OF_MULTIPLE_CARD][6]; static UINT8 MC_CardMac[MAX_NUM_OF_MULTIPLE_CARD][6];
#endif // MULTIPLE_CARD_SUPPORT // #endif // MULTIPLE_CARD_SUPPORT //
#ifdef CONFIG_APSTA_MIXED_SUPPORT
UINT32 CW_MAX_IN_BITS;
#endif // CONFIG_APSTA_MIXED_SUPPORT //
/*---------------------------------------------------------------------*/ /*---------------------------------------------------------------------*/
/* Private Variables Used */ /* Private Variables Used */
/*---------------------------------------------------------------------*/ /*---------------------------------------------------------------------*/
...@@ -87,10 +83,6 @@ static void CfgInitHook(PRTMP_ADAPTER pAd); ...@@ -87,10 +83,6 @@ static void CfgInitHook(PRTMP_ADAPTER pAd);
extern const struct iw_handler_def rt28xx_iw_handler_def; extern const struct iw_handler_def rt28xx_iw_handler_def;
#endif // CONFIG_STA_SUPPORT // #endif // CONFIG_STA_SUPPORT //
#ifdef CONFIG_APSTA_MIXED_SUPPORT
extern const struct iw_handler_def rt28xx_ap_iw_handler_def;
#endif // CONFIG_APSTA_MIXED_SUPPORT //
#if WIRELESS_EXT >= 12 #if WIRELESS_EXT >= 12
// This function will be called when query /proc // This function will be called when query /proc
struct iw_statistics *rt28xx_get_wireless_stats( struct iw_statistics *rt28xx_get_wireless_stats(
...@@ -620,27 +612,6 @@ int rt28xx_open(IN PNET_DEV dev) ...@@ -620,27 +612,6 @@ int rt28xx_open(IN PNET_DEV dev)
return -1; return -1;
} }
#ifdef CONFIG_APSTA_MIXED_SUPPORT
if (pAd->OpMode == OPMODE_AP)
{
CW_MAX_IN_BITS = 6;
}
else if (pAd->OpMode == OPMODE_STA)
{
CW_MAX_IN_BITS = 10;
}
#if WIRELESS_EXT >= 12
if (net_dev->priv_flags == INT_MAIN)
{
if (pAd->OpMode == OPMODE_AP)
net_dev->wireless_handlers = (struct iw_handler_def *) &rt28xx_ap_iw_handler_def;
else if (pAd->OpMode == OPMODE_STA)
net_dev->wireless_handlers = (struct iw_handler_def *) &rt28xx_iw_handler_def;
}
#endif // WIRELESS_EXT >= 12 //
#endif // CONFIG_APSTA_MIXED_SUPPORT //
// Init // Init
pObj = (POS_COOKIE)pAd->OS_Cookie; pObj = (POS_COOKIE)pAd->OS_Cookie;
...@@ -752,15 +723,6 @@ static NDIS_STATUS rt_ieee80211_if_setup(struct net_device *dev, PRTMP_ADAPTER p ...@@ -752,15 +723,6 @@ static NDIS_STATUS rt_ieee80211_if_setup(struct net_device *dev, PRTMP_ADAPTER p
#endif //WIRELESS_EXT >= 12 #endif //WIRELESS_EXT >= 12
#endif // CONFIG_STA_SUPPORT // #endif // CONFIG_STA_SUPPORT //
#ifdef CONFIG_APSTA_MIXED_SUPPORT
#if WIRELESS_EXT >= 12
if (pAd->OpMode == OPMODE_AP)
{
dev->wireless_handlers = &rt28xx_ap_iw_handler_def;
}
#endif //WIRELESS_EXT >= 12
#endif // CONFIG_APSTA_MIXED_SUPPORT //
#if WIRELESS_EXT < 21 #if WIRELESS_EXT < 21
dev->get_wireless_stats = rt28xx_get_wireless_stats; dev->get_wireless_stats = rt28xx_get_wireless_stats;
#endif #endif
......
...@@ -6854,12 +6854,6 @@ INT Set_FixedTxMode_Proc( ...@@ -6854,12 +6854,6 @@ INT Set_FixedTxMode_Proc(
IN PRTMP_ADAPTER pAd, IN PRTMP_ADAPTER pAd,
IN PUCHAR arg); IN PUCHAR arg);
#ifdef CONFIG_APSTA_MIXED_SUPPORT
INT Set_OpMode_Proc(
IN PRTMP_ADAPTER pAd,
IN PUCHAR arg);
#endif // CONFIG_APSTA_MIXED_SUPPORT //
static inline char* GetPhyMode( static inline char* GetPhyMode(
int Mode) int Mode)
{ {
......
...@@ -315,9 +315,6 @@ static struct { ...@@ -315,9 +315,6 @@ static struct {
{"FixedTxMode", Set_FixedTxMode_Proc}, {"FixedTxMode", Set_FixedTxMode_Proc},
#ifdef CONFIG_APSTA_MIXED_SUPPORT
{"OpMode", Set_OpMode_Proc},
#endif // CONFIG_APSTA_MIXED_SUPPORT //
#ifdef DOT11_N_SUPPORT #ifdef DOT11_N_SUPPORT
{"TGnWifiTest", Set_TGnWifiTest_Proc}, {"TGnWifiTest", Set_TGnWifiTest_Proc},
{"ForceGF", Set_ForceGF_Proc}, {"ForceGF", Set_ForceGF_Proc},
...@@ -5475,14 +5472,6 @@ INT rt28xx_sta_ioctl( ...@@ -5475,14 +5472,6 @@ INT rt28xx_sta_ioctl(
//check if the interface is down //check if the interface is down
if(!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_INTERRUPT_IN_USE)) if(!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_INTERRUPT_IN_USE))
{ {
#ifdef CONFIG_APSTA_MIXED_SUPPORT
if (wrq->u.data.pointer == NULL)
{
return Status;
}
if (strstr(wrq->u.data.pointer, "OpMode") == NULL)
#endif // CONFIG_APSTA_MIXED_SUPPORT //
{ {
DBGPRINT(RT_DEBUG_TRACE, ("INFO::Network is down!\n")); DBGPRINT(RT_DEBUG_TRACE, ("INFO::Network is down!\n"));
return -ENETDOWN; return -ENETDOWN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment