Staging: rt3070: remove dead EXT_BUILD_CHANNEL_LIST code
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
03a8127eba
commit
6fabd4ea35
@ -259,10 +259,6 @@ INT Set_CountryRegion_Proc(
|
|||||||
|
|
||||||
region = simple_strtol(arg, 0, 10);
|
region = simple_strtol(arg, 0, 10);
|
||||||
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
return -EOPNOTSUPP;
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
|
|
||||||
// Country can be set only when EEPROM not programmed
|
// Country can be set only when EEPROM not programmed
|
||||||
if (pAd->CommonCfg.CountryRegion & 0x80)
|
if (pAd->CommonCfg.CountryRegion & 0x80)
|
||||||
{
|
{
|
||||||
@ -309,10 +305,6 @@ INT Set_CountryRegionABand_Proc(
|
|||||||
|
|
||||||
region = simple_strtol(arg, 0, 10);
|
region = simple_strtol(arg, 0, 10);
|
||||||
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
return -EOPNOTSUPP;
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
|
|
||||||
// Country can be set only when EEPROM not programmed
|
// Country can be set only when EEPROM not programmed
|
||||||
if (pAd->CommonCfg.CountryRegionForABand & 0x80)
|
if (pAd->CommonCfg.CountryRegionForABand & 0x80)
|
||||||
{
|
{
|
||||||
@ -1178,11 +1170,8 @@ VOID RTMPSetPhyMode(
|
|||||||
pAd->CommonCfg.PhyMode = (UCHAR)phymode;
|
pAd->CommonCfg.PhyMode = (UCHAR)phymode;
|
||||||
|
|
||||||
DBGPRINT(RT_DEBUG_TRACE,("RTMPSetPhyMode : PhyMode=%d, channel=%d \n", pAd->CommonCfg.PhyMode, pAd->CommonCfg.Channel));
|
DBGPRINT(RT_DEBUG_TRACE,("RTMPSetPhyMode : PhyMode=%d, channel=%d \n", pAd->CommonCfg.PhyMode, pAd->CommonCfg.Channel));
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
BuildChannelListEx(pAd);
|
|
||||||
#else
|
|
||||||
BuildChannelList(pAd);
|
BuildChannelList(pAd);
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
|
|
||||||
// sanity check user setting
|
// sanity check user setting
|
||||||
for (i = 0; i < pAd->ChannelListNum; i++)
|
for (i = 0; i < pAd->ChannelListNum; i++)
|
||||||
|
@ -749,15 +749,7 @@ BOOLEAN PeerBeaconAndProbeRspSanity(
|
|||||||
*LengthVIE += (pEid->Len + 2);
|
*LengthVIE += (pEid->Len + 2);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifdef CONFIG_STA_SUPPORT
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
case IE_COUNTRY:
|
|
||||||
Ptr = (PUCHAR) pVIE;
|
|
||||||
NdisMoveMemory(Ptr + *LengthVIE, &pEid->Eid, pEid->Len + 2);
|
|
||||||
*LengthVIE += (pEid->Len + 2);
|
|
||||||
break;
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
#endif // CONFIG_STA_SUPPORT //
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -3653,11 +3653,9 @@ VOID BssEntrySet(
|
|||||||
|
|
||||||
NdisZeroMemory(&pBss->WpaIE.IE[0], MAX_CUSTOM_LEN);
|
NdisZeroMemory(&pBss->WpaIE.IE[0], MAX_CUSTOM_LEN);
|
||||||
NdisZeroMemory(&pBss->RsnIE.IE[0], MAX_CUSTOM_LEN);
|
NdisZeroMemory(&pBss->RsnIE.IE[0], MAX_CUSTOM_LEN);
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
NdisZeroMemory(&pBss->CountryString[0], 3);
|
|
||||||
pBss->bHasCountryIE = FALSE;
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
pEid = (PEID_STRUCT) pVIE;
|
pEid = (PEID_STRUCT) pVIE;
|
||||||
|
|
||||||
while ((Length + 2 + (USHORT)pEid->Len) <= LengthVIE)
|
while ((Length + 2 + (USHORT)pEid->Len) <= LengthVIE)
|
||||||
{
|
{
|
||||||
switch(pEid->Eid)
|
switch(pEid->Eid)
|
||||||
@ -3686,12 +3684,6 @@ VOID BssEntrySet(
|
|||||||
NdisMoveMemory(pBss->RsnIE.IE, pEid, pBss->RsnIE.IELen);
|
NdisMoveMemory(pBss->RsnIE.IE, pEid, pBss->RsnIE.IELen);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
case IE_COUNTRY:
|
|
||||||
NdisMoveMemory(&pBss->CountryString[0], pEid->Octet, 3);
|
|
||||||
pBss->bHasCountryIE = TRUE;
|
|
||||||
break;
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
}
|
}
|
||||||
Length = Length + 2 + (USHORT)pEid->Len; // Eid[1] + Len[1]+ content[Len]
|
Length = Length + 2 + (USHORT)pEid->Len; // Eid[1] + Len[1]+ content[Len]
|
||||||
pEid = (PEID_STRUCT)((UCHAR*)pEid + 2 + pEid->Len);
|
pEid = (PEID_STRUCT)((UCHAR*)pEid + 2 + pEid->Len);
|
||||||
@ -3938,18 +3930,6 @@ VOID BssTableSsidSort(
|
|||||||
(SSID_EQUAL(Ssid, SsidLen, pInBss->Ssid, pInBss->SsidLen) || bIsHiddenApIncluded))
|
(SSID_EQUAL(Ssid, SsidLen, pInBss->Ssid, pInBss->SsidLen) || bIsHiddenApIncluded))
|
||||||
{
|
{
|
||||||
BSS_ENTRY *pOutBss = &OutTab->BssEntry[OutTab->BssNr];
|
BSS_ENTRY *pOutBss = &OutTab->BssEntry[OutTab->BssNr];
|
||||||
|
|
||||||
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
// If no Country IE exists no Connection will be established when IEEE80211dClientMode is strict.
|
|
||||||
if ((pAd->StaCfg.IEEE80211dClientMode == Rt802_11_D_Strict) &&
|
|
||||||
(pInBss->bHasCountryIE == FALSE))
|
|
||||||
{
|
|
||||||
DBGPRINT(RT_DEBUG_TRACE,("StaCfg.IEEE80211dClientMode == Rt802_11_D_Strict, but this AP doesn't have country IE.\n"));
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
|
|
||||||
#ifdef DOT11_N_SUPPORT
|
#ifdef DOT11_N_SUPPORT
|
||||||
// 2.4G/5G N only mode
|
// 2.4G/5G N only mode
|
||||||
if ((pInBss->HtCapabilityLen == 0) &&
|
if ((pInBss->HtCapabilityLen == 0) &&
|
||||||
|
@ -3396,10 +3396,6 @@ VOID UserCfgInit(
|
|||||||
pAd->StaCfg.bAutoTxRateSwitch = TRUE;
|
pAd->StaCfg.bAutoTxRateSwitch = TRUE;
|
||||||
pAd->StaCfg.DesiredTransmitSetting.field.MCS = MCS_AUTO;
|
pAd->StaCfg.DesiredTransmitSetting.field.MCS = MCS_AUTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
pAd->StaCfg.IEEE80211dClientMode = Rt802_11_D_None;
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
#endif // CONFIG_STA_SUPPORT //
|
#endif // CONFIG_STA_SUPPORT //
|
||||||
|
|
||||||
// global variables mXXXX used in MAC protocol state machines
|
// global variables mXXXX used in MAC protocol state machines
|
||||||
|
@ -1179,10 +1179,6 @@ typedef struct {
|
|||||||
#ifdef CONFIG_STA_SUPPORT
|
#ifdef CONFIG_STA_SUPPORT
|
||||||
WPA_IE_ WpaIE;
|
WPA_IE_ WpaIE;
|
||||||
WPA_IE_ RsnIE;
|
WPA_IE_ RsnIE;
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
UCHAR CountryString[3];
|
|
||||||
BOOLEAN bHasCountryIE;
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
#endif // CONFIG_STA_SUPPORT //
|
#endif // CONFIG_STA_SUPPORT //
|
||||||
} BSS_ENTRY, *PBSS_ENTRY;
|
} BSS_ENTRY, *PBSS_ENTRY;
|
||||||
|
|
||||||
|
@ -950,12 +950,7 @@ NDIS_STATUS RTMPReadParametersHook(
|
|||||||
if(RTMPGetKeyParameter("CountryCode", tmpbuf, 25, buffer))
|
if(RTMPGetKeyParameter("CountryCode", tmpbuf, 25, buffer))
|
||||||
{
|
{
|
||||||
NdisMoveMemory(pAd->CommonCfg.CountryCode, tmpbuf , 2);
|
NdisMoveMemory(pAd->CommonCfg.CountryCode, tmpbuf , 2);
|
||||||
#ifdef CONFIG_STA_SUPPORT
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
IF_DEV_CONFIG_OPMODE_ON_STA(pAd)
|
|
||||||
NdisMoveMemory(pAd->StaCfg.StaOriCountryCode, tmpbuf , 2);
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
#endif // CONFIG_STA_SUPPORT //
|
|
||||||
if (strlen(pAd->CommonCfg.CountryCode) != 0)
|
if (strlen(pAd->CommonCfg.CountryCode) != 0)
|
||||||
{
|
{
|
||||||
pAd->CommonCfg.bCountryFlag = TRUE;
|
pAd->CommonCfg.bCountryFlag = TRUE;
|
||||||
@ -971,12 +966,6 @@ NDIS_STATUS RTMPReadParametersHook(
|
|||||||
pAd->CommonCfg.Geography = Geography;
|
pAd->CommonCfg.Geography = Geography;
|
||||||
pAd->CommonCfg.CountryCode[2] =
|
pAd->CommonCfg.CountryCode[2] =
|
||||||
(pAd->CommonCfg.Geography == BOTH) ? ' ' : ((pAd->CommonCfg.Geography == IDOR) ? 'I' : 'O');
|
(pAd->CommonCfg.Geography == BOTH) ? ' ' : ((pAd->CommonCfg.Geography == IDOR) ? 'I' : 'O');
|
||||||
#ifdef CONFIG_STA_SUPPORT
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
IF_DEV_CONFIG_OPMODE_ON_STA(pAd)
|
|
||||||
pAd->StaCfg.StaOriGeography = pAd->CommonCfg.Geography;
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
#endif // CONFIG_STA_SUPPORT //
|
|
||||||
DBGPRINT(RT_DEBUG_TRACE, ("ChannelGeography=%d\n", pAd->CommonCfg.Geography));
|
DBGPRINT(RT_DEBUG_TRACE, ("ChannelGeography=%d\n", pAd->CommonCfg.Geography));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2150,13 +2150,6 @@ typedef struct _STA_ADMIN_CONFIG {
|
|||||||
DESIRED_TRANSMIT_SETTING DesiredTransmitSetting;
|
DESIRED_TRANSMIT_SETTING DesiredTransmitSetting;
|
||||||
RT_HT_PHY_INFO DesiredHtPhyInfo;
|
RT_HT_PHY_INFO DesiredHtPhyInfo;
|
||||||
BOOLEAN bAutoTxRateSwitch;
|
BOOLEAN bAutoTxRateSwitch;
|
||||||
|
|
||||||
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
UCHAR IEEE80211dClientMode;
|
|
||||||
UCHAR StaOriCountryCode[3];
|
|
||||||
UCHAR StaOriGeography;
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
} STA_ADMIN_CONFIG, *PSTA_ADMIN_CONFIG;
|
} STA_ADMIN_CONFIG, *PSTA_ADMIN_CONFIG;
|
||||||
|
|
||||||
// This data structure keep the current active BSS/IBSS's configuration that this STA
|
// This data structure keep the current active BSS/IBSS's configuration that this STA
|
||||||
|
@ -1957,17 +1957,6 @@ VOID LinkDown(
|
|||||||
NdisMoveMemory(pAd->StaCfg.CCXAdjacentAPSsid, pAd->CommonCfg.Ssid, pAd->StaCfg.CCXAdjacentAPSsidLen);
|
NdisMoveMemory(pAd->StaCfg.CCXAdjacentAPSsid, pAd->CommonCfg.Ssid, pAd->StaCfg.CCXAdjacentAPSsidLen);
|
||||||
COPY_MAC_ADDR(pAd->StaCfg.CCXAdjacentAPBssid, pAd->CommonCfg.Bssid);
|
COPY_MAC_ADDR(pAd->StaCfg.CCXAdjacentAPBssid, pAd->CommonCfg.Bssid);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
// Country IE of the AP will be evaluated and will be used.
|
|
||||||
if (pAd->StaCfg.IEEE80211dClientMode != Rt802_11_D_None)
|
|
||||||
{
|
|
||||||
NdisMoveMemory(&pAd->CommonCfg.CountryCode[0], &pAd->StaCfg.StaOriCountryCode[0], 2);
|
|
||||||
pAd->CommonCfg.Geography = pAd->StaCfg.StaOriGeography;
|
|
||||||
BuildChannelListEx(pAd);
|
|
||||||
}
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=1; i<MAX_LEN_OF_MAC_TABLE; i++)
|
for (i=1; i<MAX_LEN_OF_MAC_TABLE; i++)
|
||||||
|
@ -328,22 +328,6 @@ VOID MlmeJoinReqAction(
|
|||||||
pAd->MlmeAux.Channel = pBss->Channel;
|
pAd->MlmeAux.Channel = pBss->Channel;
|
||||||
pAd->MlmeAux.CentralChannel = pBss->CentralChannel;
|
pAd->MlmeAux.CentralChannel = pBss->CentralChannel;
|
||||||
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
// Country IE of the AP will be evaluated and will be used.
|
|
||||||
if ((pAd->StaCfg.IEEE80211dClientMode != Rt802_11_D_None) &&
|
|
||||||
(pBss->bHasCountryIE == TRUE))
|
|
||||||
{
|
|
||||||
NdisMoveMemory(&pAd->CommonCfg.CountryCode[0], &pBss->CountryString[0], 2);
|
|
||||||
if (pBss->CountryString[2] == 'I')
|
|
||||||
pAd->CommonCfg.Geography = IDOR;
|
|
||||||
else if (pBss->CountryString[2] == 'O')
|
|
||||||
pAd->CommonCfg.Geography = ODOR;
|
|
||||||
else
|
|
||||||
pAd->CommonCfg.Geography = BOTH;
|
|
||||||
BuildChannelListEx(pAd);
|
|
||||||
}
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
|
|
||||||
// Let BBP register at 20MHz to do scan
|
// Let BBP register at 20MHz to do scan
|
||||||
RTMP_BBP_IO_READ8_BY_REG_ID(pAd, BBP_R4, &BBPValue);
|
RTMP_BBP_IO_READ8_BY_REG_ID(pAd, BBP_R4, &BBPValue);
|
||||||
BBPValue &= (~0x18);
|
BBPValue &= (~0x18);
|
||||||
|
@ -213,12 +213,6 @@ INT Set_ShortRetryLimit_Proc(
|
|||||||
IN PRTMP_ADAPTER pAdapter,
|
IN PRTMP_ADAPTER pAdapter,
|
||||||
IN PUCHAR arg);
|
IN PUCHAR arg);
|
||||||
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
INT Set_Ieee80211dClientMode_Proc(
|
|
||||||
IN PRTMP_ADAPTER pAdapter,
|
|
||||||
IN PUCHAR arg);
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
CHAR *name;
|
CHAR *name;
|
||||||
INT (*set_proc)(PRTMP_ADAPTER pAdapter, PUCHAR arg);
|
INT (*set_proc)(PRTMP_ADAPTER pAdapter, PUCHAR arg);
|
||||||
@ -287,9 +281,6 @@ static struct {
|
|||||||
#endif // DOT11_N_SUPPORT //
|
#endif // DOT11_N_SUPPORT //
|
||||||
{"LongRetry", Set_LongRetryLimit_Proc},
|
{"LongRetry", Set_LongRetryLimit_Proc},
|
||||||
{"ShortRetry", Set_ShortRetryLimit_Proc},
|
{"ShortRetry", Set_ShortRetryLimit_Proc},
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
{"11dClientMode", Set_Ieee80211dClientMode_Proc},
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
//2008/09/11:KH add to support efuse<--
|
//2008/09/11:KH add to support efuse<--
|
||||||
#ifdef RT30xx
|
#ifdef RT30xx
|
||||||
{"efuseFreeNumber", set_eFuseGetFreeBlockCount_Proc},
|
{"efuseFreeNumber", set_eFuseGetFreeBlockCount_Proc},
|
||||||
@ -5073,13 +5064,8 @@ INT RTMPQueryInformation(
|
|||||||
UCHAR value;
|
UCHAR value;
|
||||||
DBGPRINT(RT_DEBUG_TRACE, ("Query::OID_802_11_BUILD_CHANNEL_EX \n"));
|
DBGPRINT(RT_DEBUG_TRACE, ("Query::OID_802_11_BUILD_CHANNEL_EX \n"));
|
||||||
wrq->u.data.length = sizeof(UCHAR);
|
wrq->u.data.length = sizeof(UCHAR);
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
DBGPRINT(RT_DEBUG_TRACE, ("Support EXT_BUILD_CHANNEL_LIST.\n"));
|
|
||||||
value = 1;
|
|
||||||
#else
|
|
||||||
DBGPRINT(RT_DEBUG_TRACE, ("Doesn't support EXT_BUILD_CHANNEL_LIST.\n"));
|
DBGPRINT(RT_DEBUG_TRACE, ("Doesn't support EXT_BUILD_CHANNEL_LIST.\n"));
|
||||||
value = 0;
|
value = 0;
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
Status = copy_to_user(wrq->u.data.pointer, &value, 1);
|
Status = copy_to_user(wrq->u.data.pointer, &value, 1);
|
||||||
DBGPRINT(RT_DEBUG_TRACE, ("Status=%d\n", Status));
|
DBGPRINT(RT_DEBUG_TRACE, ("Status=%d\n", Status));
|
||||||
}
|
}
|
||||||
@ -6870,22 +6856,3 @@ INT Set_ShortRetryLimit_Proc(
|
|||||||
DBGPRINT(RT_DEBUG_TRACE, ("IF Set_ShortRetryLimit_Proc::(tx_rty_cfg=0x%x)\n", tx_rty_cfg.word));
|
DBGPRINT(RT_DEBUG_TRACE, ("IF Set_ShortRetryLimit_Proc::(tx_rty_cfg=0x%x)\n", tx_rty_cfg.word));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EXT_BUILD_CHANNEL_LIST
|
|
||||||
INT Set_Ieee80211dClientMode_Proc(
|
|
||||||
IN PRTMP_ADAPTER pAdapter,
|
|
||||||
IN PUCHAR arg)
|
|
||||||
{
|
|
||||||
if (simple_strtol(arg, 0, 10) == 0)
|
|
||||||
pAdapter->StaCfg.IEEE80211dClientMode = Rt802_11_D_None;
|
|
||||||
else if (simple_strtol(arg, 0, 10) == 1)
|
|
||||||
pAdapter->StaCfg.IEEE80211dClientMode = Rt802_11_D_Flexible;
|
|
||||||
else if (simple_strtol(arg, 0, 10) == 2)
|
|
||||||
pAdapter->StaCfg.IEEE80211dClientMode = Rt802_11_D_Strict;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
DBGPRINT(RT_DEBUG_TRACE, ("Set_Ieee802dMode_Proc::(IEEEE0211dMode=%d)\n", pAdapter->StaCfg.IEEE80211dClientMode));
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
#endif // EXT_BUILD_CHANNEL_LIST //
|
|
||||||
|
Loading…
Reference in New Issue
Block a user