diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-04-26 10:06:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-19 14:00:49 -0400 |
commit | 96f139ee99322060523883d4a665b10780ca3182 (patch) | |
tree | dc9cc79b928005de136cd7eea5de87c58a755bbc | |
parent | 2ed0b7ec56a619d53f5ad9b38105144dd75351ce (diff) |
Staging: rt2860: remove dead code
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/rt2860/ap.h | 3 | ||||
-rw-r--r-- | drivers/staging/rt2860/chlist.h | 43 | ||||
-rw-r--r-- | drivers/staging/rt2860/common/ba_action.c | 51 | ||||
-rw-r--r-- | drivers/staging/rt2860/common/cmm_info.c | 6 | ||||
-rw-r--r-- | drivers/staging/rt2860/common/dfs.c | 12 | ||||
-rw-r--r-- | drivers/staging/rt2860/common/mlme.c | 11 | ||||
-rw-r--r-- | drivers/staging/rt2860/common/rtmp_init.c | 68 | ||||
-rw-r--r-- | drivers/staging/rt2860/rt_linux.h | 6 | ||||
-rw-r--r-- | drivers/staging/rt2860/rt_main_dev.c | 3 | ||||
-rw-r--r-- | drivers/staging/rt2860/rt_profile.c | 5 | ||||
-rw-r--r-- | drivers/staging/rt2860/rtmp.h | 1 | ||||
-rw-r--r-- | drivers/staging/rt2860/sta/sync.c | 1 | ||||
-rw-r--r-- | drivers/staging/rt2870/ap.h | 3 | ||||
-rw-r--r-- | drivers/staging/rt2870/rtmp.h | 1 |
14 files changed, 2 insertions, 212 deletions
diff --git a/drivers/staging/rt2860/ap.h b/drivers/staging/rt2860/ap.h index 2da13abb14cc..a9ce57be8140 100644 --- a/drivers/staging/rt2860/ap.h +++ b/drivers/staging/rt2860/ap.h | |||
@@ -516,9 +516,6 @@ BOOLEAN APPeerBeaconAndProbeRspSanity( | |||
516 | OUT BOOLEAN *ExtendedRateIeExist, | 516 | OUT BOOLEAN *ExtendedRateIeExist, |
517 | OUT UCHAR *Erp); | 517 | OUT UCHAR *Erp); |
518 | 518 | ||
519 | // ap_info.c | ||
520 | |||
521 | |||
522 | 519 | ||
523 | // ================== end of AP RTMP.h ======================== | 520 | // ================== end of AP RTMP.h ======================== |
524 | 521 | ||
diff --git a/drivers/staging/rt2860/chlist.h b/drivers/staging/rt2860/chlist.h index 60f8548a57ea..f49a35c95de6 100644 --- a/drivers/staging/rt2860/chlist.h +++ b/drivers/staging/rt2860/chlist.h | |||
@@ -1195,49 +1195,6 @@ static inline VOID N_ChannelCheck( | |||
1195 | pAd->CommonCfg.RegTransmitSetting.field.BW = BW_20; | 1195 | pAd->CommonCfg.RegTransmitSetting.field.BW = BW_20; |
1196 | //pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_NONE; // We didn't set the ExtCh as NONE due to it'll set in RTMPSetHT() | 1196 | //pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_NONE; // We didn't set the ExtCh as NONE due to it'll set in RTMPSetHT() |
1197 | } | 1197 | } |
1198 | #if 0 | ||
1199 | switch (pAd->CommonCfg.CountryRegion & 0x7f) | ||
1200 | { | ||
1201 | case REGION_0_BG_BAND: // 1 -11 | ||
1202 | case REGION_1_BG_BAND: // 1 - 13 | ||
1203 | case REGION_5_BG_BAND: // 1 - 14 | ||
1204 | if (Channel <= 4) | ||
1205 | { | ||
1206 | pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_ABOVE; | ||
1207 | } | ||
1208 | else if (Channel >= 8) | ||
1209 | { | ||
1210 | if ((ChannelNum - Channel) < 4) | ||
1211 | pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_BELOW; | ||
1212 | } | ||
1213 | break; | ||
1214 | |||
1215 | case REGION_2_BG_BAND: // 10 - 11 | ||
1216 | case REGION_3_BG_BAND: // 10 - 13 | ||
1217 | case REGION_4_BG_BAND: // 14 | ||
1218 | pAd->CommonCfg.RegTransmitSetting.field.BW = BW_20; | ||
1219 | break; | ||
1220 | |||
1221 | case REGION_6_BG_BAND: // 3 - 9 | ||
1222 | if (Channel <= 5) | ||
1223 | pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_ABOVE; | ||
1224 | else if (Channel == 6) | ||
1225 | pAd->CommonCfg.RegTransmitSetting.field.BW = BW_20; | ||
1226 | else if (Channel >= 7) | ||
1227 | pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_BELOW; | ||
1228 | break; | ||
1229 | |||
1230 | case REGION_7_BG_BAND: // 5 - 13 | ||
1231 | if (Channel <= 8) | ||
1232 | pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_ABOVE; | ||
1233 | else if (Channel >= 10) | ||
1234 | pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_BELOW; | ||
1235 | break; | ||
1236 | |||
1237 | default: // Error. should never happen | ||
1238 | break; | ||
1239 | } | ||
1240 | #endif | ||
1241 | } | 1198 | } |
1242 | } | 1199 | } |
1243 | 1200 | ||
diff --git a/drivers/staging/rt2860/common/ba_action.c b/drivers/staging/rt2860/common/ba_action.c index 6f51bd2b21c6..6b0898dc2087 100644 --- a/drivers/staging/rt2860/common/ba_action.c +++ b/drivers/staging/rt2860/common/ba_action.c | |||
@@ -444,9 +444,6 @@ void ba_flush_reordering_timeout_mpdus( | |||
444 | && (pBAEntry->list.qlen > 0) | 444 | && (pBAEntry->list.qlen > 0) |
445 | ) | 445 | ) |
446 | { | 446 | { |
447 | // printk("timeout[%d] (%lx-%lx = %d > %d): %x, ", pBAEntry->list.qlen, Now32, (pBAEntry->LastIndSeqAtTimer), | ||
448 | // (int)((long) Now32 - (long)(pBAEntry->LastIndSeqAtTimer)), REORDERING_PACKET_TIMEOUT, | ||
449 | // pBAEntry->LastIndSeq); | ||
450 | // | 447 | // |
451 | // force LastIndSeq to shift to LastIndSeq+1 | 448 | // force LastIndSeq to shift to LastIndSeq+1 |
452 | // | 449 | // |
@@ -463,22 +460,7 @@ void ba_flush_reordering_timeout_mpdus( | |||
463 | pBAEntry->LastIndSeq = Sequence; | 460 | pBAEntry->LastIndSeq = Sequence; |
464 | } | 461 | } |
465 | 462 | ||
466 | //printk("%x, flush one!\n", pBAEntry->LastIndSeq); | ||
467 | |||
468 | } | 463 | } |
469 | #if 0 | ||
470 | else if ( | ||
471 | (RTMP_TIME_AFTER((unsigned long)Now32, (unsigned long)(pBAEntry->LastIndSeqAtTimer+(MAX_REORDERING_PACKET_TIMEOUT))) && | ||
472 | (pBAEntry->list.qlen > 1)) | ||
473 | ) | ||
474 | { | ||
475 | DBGPRINT(RT_DEBUG_TRACE,("timeout[%d] (%lx-%lx = %d > %d): %x\n ", pBAEntry->list.qlen, Now32, (pBAEntry->LastIndSeqAtTimer), | ||
476 | (int)((long) Now32 - (long)(pBAEntry->LastIndSeqAtTimer)), MAX_REORDERING_PACKET_TIMEOUT, | ||
477 | pBAEntry->LastIndSeq)); | ||
478 | ba_refresh_reordering_mpdus(pAd, pBAEntry); | ||
479 | pBAEntry->LastIndSeqAtTimer = Now32; | ||
480 | } | ||
481 | #endif | ||
482 | } | 464 | } |
483 | 465 | ||
484 | 466 | ||
@@ -692,10 +674,6 @@ BOOLEAN BARecSessionAdd( | |||
692 | RTMPInitTimer(pAd, &pBAEntry->RECBATimer, GET_TIMER_FUNCTION(BARecSessionIdleTimeout), pBAEntry, TRUE); | 674 | RTMPInitTimer(pAd, &pBAEntry->RECBATimer, GET_TIMER_FUNCTION(BARecSessionIdleTimeout), pBAEntry, TRUE); |
693 | } | 675 | } |
694 | 676 | ||
695 | #if 0 // for debugging | ||
696 | RTMPSetTimer(&pBAEntry->RECBATimer, REC_BA_SESSION_IDLE_TIMEOUT); | ||
697 | #endif | ||
698 | |||
699 | // Set Bitmap flag. | 677 | // Set Bitmap flag. |
700 | pEntry->RXBAbitmap |= (1<<TID); | 678 | pEntry->RXBAbitmap |= (1<<TID); |
701 | pEntry->BARecWcidArray[TID] = Idx; | 679 | pEntry->BARecWcidArray[TID] = Idx; |
@@ -1556,13 +1534,9 @@ static VOID ba_enqueue_reordering_packet( | |||
1556 | } | 1534 | } |
1557 | else | 1535 | else |
1558 | { | 1536 | { |
1559 | #if 0 | ||
1560 | DBGPRINT(RT_DEBUG_ERROR, ("!!! (%d:%d) Can't allocate reordering mpdu blk\n", | ||
1561 | blk_count, pBAEntry->list.qlen)); | ||
1562 | #else | ||
1563 | DBGPRINT(RT_DEBUG_ERROR, ("!!! (%d) Can't allocate reordering mpdu blk\n", | 1537 | DBGPRINT(RT_DEBUG_ERROR, ("!!! (%d) Can't allocate reordering mpdu blk\n", |
1564 | pBAEntry->list.qlen)); | 1538 | pBAEntry->list.qlen)); |
1565 | #endif | 1539 | |
1566 | /* | 1540 | /* |
1567 | * flush all pending reordering mpdus | 1541 | * flush all pending reordering mpdus |
1568 | * and receving mpdu to upper layer | 1542 | * and receving mpdu to upper layer |
@@ -1610,29 +1584,11 @@ VOID Indicate_AMPDU_Packet( | |||
1610 | 1584 | ||
1611 | if (!RX_BLK_TEST_FLAG(pRxBlk, fRX_AMSDU) && (pRxBlk->DataSize > MAX_RX_PKT_LEN)) | 1585 | if (!RX_BLK_TEST_FLAG(pRxBlk, fRX_AMSDU) && (pRxBlk->DataSize > MAX_RX_PKT_LEN)) |
1612 | { | 1586 | { |
1613 | #if 0 // sample take off, no use | ||
1614 | static int err_size; | ||
1615 | |||
1616 | err_size++; | ||
1617 | if (err_size > 20) { | ||
1618 | printk("AMPDU DataSize = %d\n", pRxBlk->DataSize); | ||
1619 | hex_dump("802.11 Header", (UCHAR *)pRxBlk->pHeader, 24); | ||
1620 | hex_dump("Payload", pRxBlk->pData, 64); | ||
1621 | err_size = 0; | ||
1622 | } | ||
1623 | #endif | ||
1624 | // release packet | 1587 | // release packet |
1625 | RELEASE_NDIS_PACKET(pAd, pRxBlk->pRxPacket, NDIS_STATUS_FAILURE); | 1588 | RELEASE_NDIS_PACKET(pAd, pRxBlk->pRxPacket, NDIS_STATUS_FAILURE); |
1626 | return; | 1589 | return; |
1627 | } | 1590 | } |
1628 | 1591 | ||
1629 | |||
1630 | #if 0 // test | ||
1631 | /* Rec BA Session had been torn down */ | ||
1632 | INDICATE_LEGACY_OR_AMSDU(pAd, pRxBlk, FromWhichBSSID); | ||
1633 | return; | ||
1634 | #endif | ||
1635 | |||
1636 | if (Wcid < MAX_LEN_OF_MAC_TABLE) | 1592 | if (Wcid < MAX_LEN_OF_MAC_TABLE) |
1637 | { | 1593 | { |
1638 | Idx = pAd->MacTab.Content[Wcid].BARecWcidArray[TID]; | 1594 | Idx = pAd->MacTab.Content[Wcid].BARecWcidArray[TID]; |
@@ -1727,10 +1683,6 @@ VOID Indicate_AMPDU_Packet( | |||
1727 | // | 1683 | // |
1728 | else | 1684 | else |
1729 | { | 1685 | { |
1730 | #if 0 | ||
1731 | ba_refresh_reordering_mpdus(pAd, pBAEntry); | ||
1732 | INDICATE_LEGACY_OR_AMSDU(pAd, pRxBlk, FromWhichBSSID); | ||
1733 | #else | ||
1734 | LONG WinStartSeq, TmpSeq; | 1686 | LONG WinStartSeq, TmpSeq; |
1735 | 1687 | ||
1736 | 1688 | ||
@@ -1752,6 +1704,5 @@ VOID Indicate_AMPDU_Packet( | |||
1752 | { | 1704 | { |
1753 | pBAEntry->LastIndSeq = TmpSeq; | 1705 | pBAEntry->LastIndSeq = TmpSeq; |
1754 | } | 1706 | } |
1755 | #endif | ||
1756 | } | 1707 | } |
1757 | } | 1708 | } |
diff --git a/drivers/staging/rt2860/common/cmm_info.c b/drivers/staging/rt2860/common/cmm_info.c index a172f3715e40..ea76f5b252cf 100644 --- a/drivers/staging/rt2860/common/cmm_info.c +++ b/drivers/staging/rt2860/common/cmm_info.c | |||
@@ -1145,11 +1145,6 @@ VOID RTMPSetPhyMode( | |||
1145 | INT i; | 1145 | INT i; |
1146 | // the selected phymode must be supported by the RF IC encoded in E2PROM | 1146 | // the selected phymode must be supported by the RF IC encoded in E2PROM |
1147 | 1147 | ||
1148 | // if no change, do nothing | ||
1149 | /* bug fix | ||
1150 | if (pAd->CommonCfg.PhyMode == phymode) | ||
1151 | return; | ||
1152 | */ | ||
1153 | pAd->CommonCfg.PhyMode = (UCHAR)phymode; | 1148 | pAd->CommonCfg.PhyMode = (UCHAR)phymode; |
1154 | 1149 | ||
1155 | DBGPRINT(RT_DEBUG_TRACE,("RTMPSetPhyMode : PhyMode=%d, channel=%d \n", pAd->CommonCfg.PhyMode, pAd->CommonCfg.Channel)); | 1150 | DBGPRINT(RT_DEBUG_TRACE,("RTMPSetPhyMode : PhyMode=%d, channel=%d \n", pAd->CommonCfg.PhyMode, pAd->CommonCfg.Channel)); |
@@ -1981,7 +1976,6 @@ INT Set_BASetup_Proc( | |||
1981 | =>The six 2 digit hex-decimal number previous are the Mac address, | 1976 | =>The six 2 digit hex-decimal number previous are the Mac address, |
1982 | =>The seventh decimal number is the tid value. | 1977 | =>The seventh decimal number is the tid value. |
1983 | */ | 1978 | */ |
1984 | //printk("\n%s\n", arg); | ||
1985 | 1979 | ||
1986 | if(strlen(arg) < 19) //Mac address acceptable format 01:02:03:04:05:06 length 17 plus the "-" and tid value in decimal format. | 1980 | if(strlen(arg) < 19) //Mac address acceptable format 01:02:03:04:05:06 length 17 plus the "-" and tid value in decimal format. |
1987 | return FALSE; | 1981 | return FALSE; |
diff --git a/drivers/staging/rt2860/common/dfs.c b/drivers/staging/rt2860/common/dfs.c index 87289627e9e7..23330f2661d9 100644 --- a/drivers/staging/rt2860/common/dfs.c +++ b/drivers/staging/rt2860/common/dfs.c | |||
@@ -80,18 +80,6 @@ VOID BbpRadarDetectionStart( | |||
80 | RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, 124, 0x28); | 80 | RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, 124, 0x28); |
81 | RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, 125, 0xff); | 81 | RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, 125, 0xff); |
82 | 82 | ||
83 | #if 0 | ||
84 | // toggle Rx enable bit for radar detection. | ||
85 | // it's Andy's recommand. | ||
86 | { | ||
87 | UINT32 Value; | ||
88 | RTMP_IO_READ32(pAd, MAC_SYS_CTRL, &Value); | ||
89 | Value |= (0x1 << 3); | ||
90 | RTMP_IO_WRITE32(pAd, MAC_SYS_CTRL, Value); | ||
91 | Value &= ~(0x1 << 3); | ||
92 | RTMP_IO_WRITE32(pAd, MAC_SYS_CTRL, Value); | ||
93 | } | ||
94 | #endif | ||
95 | RadarPeriod = ((UINT)RdIdleTimeTable[pAd->CommonCfg.RadarDetect.RDDurRegion][0] + (UINT)pAd->CommonCfg.RadarDetect.DfsSessionTime) < 250 ? | 83 | RadarPeriod = ((UINT)RdIdleTimeTable[pAd->CommonCfg.RadarDetect.RDDurRegion][0] + (UINT)pAd->CommonCfg.RadarDetect.DfsSessionTime) < 250 ? |
96 | (RdIdleTimeTable[pAd->CommonCfg.RadarDetect.RDDurRegion][0] + pAd->CommonCfg.RadarDetect.DfsSessionTime) : 250; | 84 | (RdIdleTimeTable[pAd->CommonCfg.RadarDetect.RDDurRegion][0] + pAd->CommonCfg.RadarDetect.DfsSessionTime) : 250; |
97 | 85 | ||
diff --git a/drivers/staging/rt2860/common/mlme.c b/drivers/staging/rt2860/common/mlme.c index 886dcbeb0bf3..51468689a382 100644 --- a/drivers/staging/rt2860/common/mlme.c +++ b/drivers/staging/rt2860/common/mlme.c | |||
@@ -1921,11 +1921,6 @@ VOID MlmeDynamicTxRateSwitching( | |||
1921 | ULONG TxRetransmit = 0, TxSuccess = 0, TxFailCount = 0; | 1921 | ULONG TxRetransmit = 0, TxSuccess = 0, TxFailCount = 0; |
1922 | MAC_TABLE_ENTRY *pEntry; | 1922 | MAC_TABLE_ENTRY *pEntry; |
1923 | 1923 | ||
1924 | /*if (pAd->Antenna.field.RxPath > 1) | ||
1925 | Rssi = (pAd->StaCfg.RssiSample.AvgRssi0 + pAd->StaCfg.RssiSample.AvgRssi1) >> 1; | ||
1926 | else | ||
1927 | Rssi = pAd->StaCfg.RssiSample.AvgRssi0;*/ | ||
1928 | |||
1929 | // | 1924 | // |
1930 | // walk through MAC table, see if need to change AP's TX rate toward each entry | 1925 | // walk through MAC table, see if need to change AP's TX rate toward each entry |
1931 | // | 1926 | // |
@@ -2109,7 +2104,6 @@ VOID MlmeDynamicTxRateSwitching( | |||
2109 | { | 2104 | { |
2110 | MCS14 = idx; | 2105 | MCS14 = idx; |
2111 | } | 2106 | } |
2112 | //else if ((pCurrTxRate->CurrMCS == MCS_15)/* && (pCurrTxRate->ShortGI == GI_800)*/) //we hope to use ShortGI as initial rate | ||
2113 | else if ((pCurrTxRate->CurrMCS == MCS_15) && (pCurrTxRate->ShortGI == GI_800)) //we hope to use ShortGI as initial rate, however Atheros's chip has bugs when short GI | 2107 | else if ((pCurrTxRate->CurrMCS == MCS_15) && (pCurrTxRate->ShortGI == GI_800)) //we hope to use ShortGI as initial rate, however Atheros's chip has bugs when short GI |
2114 | { | 2108 | { |
2115 | MCS15 = idx; | 2109 | MCS15 = idx; |
@@ -5216,9 +5210,7 @@ VOID AsicUpdateProtect( | |||
5216 | // Config ASIC RTS threshold register | 5210 | // Config ASIC RTS threshold register |
5217 | RTMP_IO_READ32(pAd, TX_RTS_CFG, &MacReg); | 5211 | RTMP_IO_READ32(pAd, TX_RTS_CFG, &MacReg); |
5218 | MacReg &= 0xFF0000FF; | 5212 | MacReg &= 0xFF0000FF; |
5219 | #if 0 | 5213 | |
5220 | MacReg |= (pAd->CommonCfg.RtsThreshold << 8); | ||
5221 | #else | ||
5222 | // If the user want disable RtsThreshold and enable Amsdu/Ralink-Aggregation, set the RtsThreshold as 4096 | 5214 | // If the user want disable RtsThreshold and enable Amsdu/Ralink-Aggregation, set the RtsThreshold as 4096 |
5223 | if (( | 5215 | if (( |
5224 | (pAd->CommonCfg.BACapability.field.AmsduEnable) || | 5216 | (pAd->CommonCfg.BACapability.field.AmsduEnable) || |
@@ -5231,7 +5223,6 @@ VOID AsicUpdateProtect( | |||
5231 | { | 5223 | { |
5232 | MacReg |= (pAd->CommonCfg.RtsThreshold << 8); | 5224 | MacReg |= (pAd->CommonCfg.RtsThreshold << 8); |
5233 | } | 5225 | } |
5234 | #endif | ||
5235 | 5226 | ||
5236 | RTMP_IO_WRITE32(pAd, TX_RTS_CFG, MacReg); | 5227 | RTMP_IO_WRITE32(pAd, TX_RTS_CFG, MacReg); |
5237 | 5228 | ||
diff --git a/drivers/staging/rt2860/common/rtmp_init.c b/drivers/staging/rt2860/common/rtmp_init.c index 611c88c9cf6d..d79877e1e82a 100644 --- a/drivers/staging/rt2860/common/rtmp_init.c +++ b/drivers/staging/rt2860/common/rtmp_init.c | |||
@@ -969,67 +969,6 @@ VOID RTMPReadChannelPwr( | |||
969 | 969 | ||
970 | // 4. Print and Debug | 970 | // 4. Print and Debug |
971 | choffset = 14 + 12 + 16 + 7; | 971 | choffset = 14 + 12 + 16 + 7; |
972 | |||
973 | |||
974 | #if 0 | ||
975 | // Init the 802.11j channel number for TX channel power | ||
976 | // 0. 20MHz | ||
977 | for (i = 0; i < 3; i++) | ||
978 | { | ||
979 | pAd->TxPower11J[i].Channel = 8 + i * 4; | ||
980 | pAd->TxPower11J[i].BW = BW_20; | ||
981 | } | ||
982 | |||
983 | for (i = 0; i < 4; i++) | ||
984 | { | ||
985 | pAd->TxPower11J[i + 3].Channel = 34 + i * 4; | ||
986 | pAd->TxPower11J[i + 3].BW = BW_20; | ||
987 | } | ||
988 | |||
989 | for (i = 0; i < 4; i++) | ||
990 | { | ||
991 | pAd->TxPower11J[i + 7].Channel = 184 + i * 4; | ||
992 | pAd->TxPower11J[i + 7].BW = BW_20; | ||
993 | } | ||
994 | |||
995 | // 0. 10MHz | ||
996 | for (i = 0; i < 2; i++) | ||
997 | { | ||
998 | pAd->TxPower11J[i + 11].Channel = 7 + i; | ||
999 | pAd->TxPower11J[i + 11].BW = BW_10; | ||
1000 | } | ||
1001 | pAd->TxPower11J[13].Channel = 11; | ||
1002 | pAd->TxPower11J[13].BW = BW_10; | ||
1003 | |||
1004 | for (i = 0; i < 3; i++) | ||
1005 | { | ||
1006 | pAd->TxPower11J[i + 14].Channel = 183 + i; | ||
1007 | pAd->TxPower11J[i + 14].BW= BW_10; | ||
1008 | } | ||
1009 | |||
1010 | for (i = 0; i < 3; i++) | ||
1011 | { | ||
1012 | pAd->TxPower11J[i + 17].Channel = 187 + i; | ||
1013 | pAd->TxPower11J[i + 17].BW = BW_10; | ||
1014 | } | ||
1015 | for (i = 0; i < 10; i++) | ||
1016 | { | ||
1017 | Power.word = RTMP_EEPROM_READ16(pAd, EEPROM_Japan_TX_PWR_OFFSET + i * 2); | ||
1018 | Power2.word = RTMP_EEPROM_READ16(pAd, EEPROM_Japan_TX2_PWR_OFFSET + i * 2); | ||
1019 | |||
1020 | if ((Power.field.Byte0 < 36) && (Power.field.Byte0 > -6)) | ||
1021 | pAd->TxPower11J[i * 2].Power = Power.field.Byte0; | ||
1022 | |||
1023 | if ((Power.field.Byte1 < 36) && (Power.field.Byte1 > -6)) | ||
1024 | pAd->TxPower11J[i * 2 + 1].Power = Power.field.Byte1; | ||
1025 | |||
1026 | if ((Power2.field.Byte0 < 36) && (Power2.field.Byte0 > -6)) | ||
1027 | pAd->TxPower11J[i * 2].Power2 = Power2.field.Byte0; | ||
1028 | |||
1029 | if ((Power2.field.Byte1 < 36) && (Power2.field.Byte1 > -6)) | ||
1030 | pAd->TxPower11J[i * 2 + 1].Power2 = Power2.field.Byte1; | ||
1031 | } | ||
1032 | #endif | ||
1033 | } | 972 | } |
1034 | 973 | ||
1035 | /* | 974 | /* |
@@ -2217,10 +2156,6 @@ VOID NICUpdateFifoStaCounters( | |||
2217 | if (pEntry->FIFOCount >= 1) | 2156 | if (pEntry->FIFOCount >= 1) |
2218 | { | 2157 | { |
2219 | DBGPRINT(RT_DEBUG_TRACE, ("#")); | 2158 | DBGPRINT(RT_DEBUG_TRACE, ("#")); |
2220 | #if 0 | ||
2221 | SendRefreshBAR(pAd, pEntry); | ||
2222 | pEntry->NoBADataCountDown = 64; | ||
2223 | #else | ||
2224 | pEntry->NoBADataCountDown = 64; | 2159 | pEntry->NoBADataCountDown = 64; |
2225 | 2160 | ||
2226 | if(pEntry->PsMode == PWR_ACTIVE) | 2161 | if(pEntry->PsMode == PWR_ACTIVE) |
@@ -2241,10 +2176,7 @@ VOID NICUpdateFifoStaCounters( | |||
2241 | pEntry->FIFOCount = 0; | 2176 | pEntry->FIFOCount = 0; |
2242 | pEntry->ContinueTxFailCnt = 0; | 2177 | pEntry->ContinueTxFailCnt = 0; |
2243 | } | 2178 | } |
2244 | #endif | ||
2245 | //pEntry->FIFOCount = 0; | ||
2246 | } | 2179 | } |
2247 | //pEntry->bSendBAR = TRUE; | ||
2248 | } | 2180 | } |
2249 | else | 2181 | else |
2250 | { | 2182 | { |
diff --git a/drivers/staging/rt2860/rt_linux.h b/drivers/staging/rt2860/rt_linux.h index 9f836779220c..bfd9d062d095 100644 --- a/drivers/staging/rt2860/rt_linux.h +++ b/drivers/staging/rt2860/rt_linux.h | |||
@@ -647,10 +647,6 @@ void RTMP_GetCurrentSystemTime(LARGE_INTEGER *time); | |||
647 | #define RTMP_GET_PACKET_MOREDATA(_p) (RTPKT_TO_OSPKT(_p)->cb[CB_OFF+7]) | 647 | #define RTMP_GET_PACKET_MOREDATA(_p) (RTPKT_TO_OSPKT(_p)->cb[CB_OFF+7]) |
648 | 648 | ||
649 | 649 | ||
650 | #if 0 | ||
651 | //#define RTMP_SET_PACKET_DHCP(_p, _flg) (RTPKT_TO_OSPKT(_p)->cb[CB_OFF+11] = _flg) | ||
652 | //#define RTMP_GET_PACKET_DHCP(_p) (RTPKT_TO_OSPKT(_p)->cb[CB_OFF+11]) | ||
653 | #else | ||
654 | // | 650 | // |
655 | // Sepcific Pakcet Type definition | 651 | // Sepcific Pakcet Type definition |
656 | // | 652 | // |
@@ -730,8 +726,6 @@ void RTMP_GetCurrentSystemTime(LARGE_INTEGER *time); | |||
730 | 726 | ||
731 | #define RTMP_GET_PACKET_IPV4(_p) (RTPKT_TO_OSPKT(_p)->cb[CB_OFF+11] & RTMP_PACKET_SPECIFIC_IPV4) | 727 | #define RTMP_GET_PACKET_IPV4(_p) (RTPKT_TO_OSPKT(_p)->cb[CB_OFF+11] & RTMP_PACKET_SPECIFIC_IPV4) |
732 | 728 | ||
733 | #endif | ||
734 | |||
735 | 729 | ||
736 | // If this flag is set, it indicates that this EAPoL frame MUST be clear. | 730 | // If this flag is set, it indicates that this EAPoL frame MUST be clear. |
737 | #define RTMP_SET_PACKET_CLEAR_EAP_FRAME(_p, _flg) (RTPKT_TO_OSPKT(_p)->cb[CB_OFF+12] = _flg) | 731 | #define RTMP_SET_PACKET_CLEAR_EAP_FRAME(_p, _flg) (RTPKT_TO_OSPKT(_p)->cb[CB_OFF+12] = _flg) |
diff --git a/drivers/staging/rt2860/rt_main_dev.c b/drivers/staging/rt2860/rt_main_dev.c index 138b136b073a..5951567b2cb4 100644 --- a/drivers/staging/rt2860/rt_main_dev.c +++ b/drivers/staging/rt2860/rt_main_dev.c | |||
@@ -596,9 +596,6 @@ static NDIS_STATUS rt_ieee80211_if_setup(struct net_device *dev, PRTMP_ADAPTER p | |||
596 | CHAR slot_name[IFNAMSIZ]; | 596 | CHAR slot_name[IFNAMSIZ]; |
597 | struct net_device *device; | 597 | struct net_device *device; |
598 | 598 | ||
599 | |||
600 | //ether_setup(dev); | ||
601 | |||
602 | #if WIRELESS_EXT >= 12 | 599 | #if WIRELESS_EXT >= 12 |
603 | if (pAd->OpMode == OPMODE_STA) | 600 | if (pAd->OpMode == OPMODE_STA) |
604 | { | 601 | { |
diff --git a/drivers/staging/rt2860/rt_profile.c b/drivers/staging/rt2860/rt_profile.c index 48ec80863a90..a279eed5b453 100644 --- a/drivers/staging/rt2860/rt_profile.c +++ b/drivers/staging/rt2860/rt_profile.c | |||
@@ -1453,11 +1453,6 @@ NDIS_STATUS RTMPReadParametersHook( | |||
1453 | 1453 | ||
1454 | set_fs(orgfs); | 1454 | set_fs(orgfs); |
1455 | 1455 | ||
1456 | #if 0 | ||
1457 | current->cred->fsuid = orgfsuid; | ||
1458 | current->cred->fsgid = orgfsgid; | ||
1459 | #endif | ||
1460 | |||
1461 | kfree(buffer); | 1456 | kfree(buffer); |
1462 | kfree(tmpbuf); | 1457 | kfree(tmpbuf); |
1463 | 1458 | ||
diff --git a/drivers/staging/rt2860/rtmp.h b/drivers/staging/rt2860/rtmp.h index 9d10185afc93..55149537a4aa 100644 --- a/drivers/staging/rt2860/rtmp.h +++ b/drivers/staging/rt2860/rtmp.h | |||
@@ -2516,7 +2516,6 @@ typedef struct _RTMP_ADAPTER | |||
2516 | 2516 | ||
2517 | NDIS_MEDIA_STATE IndicateMediaState; // Base on Indication state, default is NdisMediaStateDisConnected | 2517 | NDIS_MEDIA_STATE IndicateMediaState; // Base on Indication state, default is NdisMediaStateDisConnected |
2518 | 2518 | ||
2519 | // MAT related parameters | ||
2520 | 2519 | ||
2521 | // configuration: read from Registry & E2PROM | 2520 | // configuration: read from Registry & E2PROM |
2522 | BOOLEAN bLocalAdminMAC; // Use user changed MAC | 2521 | BOOLEAN bLocalAdminMAC; // Use user changed MAC |
diff --git a/drivers/staging/rt2860/sta/sync.c b/drivers/staging/rt2860/sta/sync.c index f80c21dfd120..17dbe1dc2196 100644 --- a/drivers/staging/rt2860/sta/sync.c +++ b/drivers/staging/rt2860/sta/sync.c | |||
@@ -1499,7 +1499,6 @@ VOID PeerBeacon( | |||
1499 | // Set a flag to go to sleep . Then after parse this RxDoneInterrupt, will go to sleep mode. | 1499 | // Set a flag to go to sleep . Then after parse this RxDoneInterrupt, will go to sleep mode. |
1500 | RTMP_SET_PSFLAG(pAd, fRTMP_PS_GO_TO_SLEEP_NOW); | 1500 | RTMP_SET_PSFLAG(pAd, fRTMP_PS_GO_TO_SLEEP_NOW); |
1501 | pAd->ThisTbttNumToNextWakeUp = TbttNumToNextWakeUp; | 1501 | pAd->ThisTbttNumToNextWakeUp = TbttNumToNextWakeUp; |
1502 | //AsicSleepThenAutoWakeup(pAd, TbttNumToNextWakeUp); | ||
1503 | } | 1502 | } |
1504 | } | 1503 | } |
1505 | } | 1504 | } |
diff --git a/drivers/staging/rt2870/ap.h b/drivers/staging/rt2870/ap.h index 217df0ee1b3a..4b5457199252 100644 --- a/drivers/staging/rt2870/ap.h +++ b/drivers/staging/rt2870/ap.h | |||
@@ -535,9 +535,6 @@ BOOLEAN APPeerBeaconAndProbeRspSanity( | |||
535 | OUT BOOLEAN *ExtendedRateIeExist, | 535 | OUT BOOLEAN *ExtendedRateIeExist, |
536 | OUT UCHAR *Erp); | 536 | OUT UCHAR *Erp); |
537 | 537 | ||
538 | // ap_info.c | ||
539 | |||
540 | |||
541 | 538 | ||
542 | // ================== end of AP RTMP.h ======================== | 539 | // ================== end of AP RTMP.h ======================== |
543 | 540 | ||
diff --git a/drivers/staging/rt2870/rtmp.h b/drivers/staging/rt2870/rtmp.h index e360b33086b7..c7b74ad039b6 100644 --- a/drivers/staging/rt2870/rtmp.h +++ b/drivers/staging/rt2870/rtmp.h | |||
@@ -1239,7 +1239,6 @@ typedef struct _MLME_STRUCT { | |||
1239 | 1239 | ||
1240 | // structure for radar detection and channel switch | 1240 | // structure for radar detection and channel switch |
1241 | typedef struct _RADAR_DETECT_STRUCT { | 1241 | typedef struct _RADAR_DETECT_STRUCT { |
1242 | //BOOLEAN IEEE80211H; // 0: disable, 1: enable IEEE802.11h | ||
1243 | UCHAR CSCount; //Channel switch counter | 1242 | UCHAR CSCount; //Channel switch counter |
1244 | UCHAR CSPeriod; //Channel switch period (beacon count) | 1243 | UCHAR CSPeriod; //Channel switch period (beacon count) |
1245 | UCHAR RDCount; //Radar detection counter | 1244 | UCHAR RDCount; //Radar detection counter |