aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rt2870/sta/rtmp_data.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-04-26 10:05:09 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 14:00:44 -0400
commitbbdf6e888dfd4e8c4ee748c6d8803a1d343c5def (patch)
treed23a57ba907b0aed3b0f35e75ac6c1d88d954e00 /drivers/staging/rt2870/sta/rtmp_data.c
parent0aa7c8ddc027129e876642102a99ba4b51ace624 (diff)
Staging: rt2870: remove dead QOS_DLS_SUPPORT code
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt2870/sta/rtmp_data.c')
-rw-r--r--drivers/staging/rt2870/sta/rtmp_data.c109
1 files changed, 1 insertions, 108 deletions
diff --git a/drivers/staging/rt2870/sta/rtmp_data.c b/drivers/staging/rt2870/sta/rtmp_data.c
index 51710701443..309f3276282 100644
--- a/drivers/staging/rt2870/sta/rtmp_data.c
+++ b/drivers/staging/rt2870/sta/rtmp_data.c
@@ -180,9 +180,6 @@ VOID STARxDataFrameAnnounce(
180 // ARALINK 180 // ARALINK
181 CmmRxRalinkFrameIndicate(pAd, pEntry, pRxBlk, FromWhichBSSID); 181 CmmRxRalinkFrameIndicate(pAd, pEntry, pRxBlk, FromWhichBSSID);
182 } 182 }
183#ifdef QOS_DLS_SUPPORT
184 RX_BLK_CLEAR_FLAG(pRxBlk, fRX_DLS);
185#endif // QOS_DLS_SUPPORT //
186 } 183 }
187 else 184 else
188 { 185 {
@@ -288,14 +285,6 @@ VOID STAHandleRxDataFrame(
288 return; 285 return;
289 } 286 }
290 287
291#ifdef QOS_DLS_SUPPORT
292 //if ((pHeader->FC.FrDs == 0) && (pHeader->FC.ToDs == 0))
293 if (RTMPRcvFrameDLSCheck(pAd, pHeader, pRxWI->MPDUtotalByteCount, pRxD))
294 {
295 return;
296 }
297#endif // QOS_DLS_SUPPORT //
298
299 // Drop not my BSS frames 288 // Drop not my BSS frames
300 if (pRxD->MyBss == 0) 289 if (pRxD->MyBss == 0)
301 { 290 {
@@ -354,10 +343,7 @@ VOID STAHandleRxDataFrame(
354 } 343 }
355 344
356 // Drop not my BSS frame (we can not only check the MyBss bit in RxD) 345 // Drop not my BSS frame (we can not only check the MyBss bit in RxD)
357#ifdef QOS_DLS_SUPPORT 346
358 if (!pAd->CommonCfg.bDLSCapable)
359 {
360#endif // QOS_DLS_SUPPORT //
361 if (INFRA_ON(pAd)) 347 if (INFRA_ON(pAd))
362 { 348 {
363 // Infrastructure mode, check address 2 for BSSID 349 // Infrastructure mode, check address 2 for BSSID
@@ -380,9 +366,6 @@ VOID STAHandleRxDataFrame(
380 return; 366 return;
381 } 367 }
382 } 368 }
383#ifdef QOS_DLS_SUPPORT
384 }
385#endif // QOS_DLS_SUPPORT //
386 369
387 // 370 //
388 // find pEntry 371 // find pEntry
@@ -403,11 +386,6 @@ VOID STAHandleRxDataFrame(
403 if (INFRA_ON(pAd)) 386 if (INFRA_ON(pAd))
404 { 387 {
405 RX_BLK_SET_FLAG(pRxBlk, fRX_INFRA); 388 RX_BLK_SET_FLAG(pRxBlk, fRX_INFRA);
406#ifdef QOS_DLS_SUPPORT
407 if ((pHeader->FC.FrDs == 0) && (pHeader->FC.ToDs == 0))
408 RX_BLK_SET_FLAG(pRxBlk, fRX_DLS);
409 else
410#endif // QOS_DLS_SUPPORT //
411 ASSERT(pRxWI->WirelessCliID == BSSID_WCID); 389 ASSERT(pRxWI->WirelessCliID == BSSID_WCID);
412 } 390 }
413 391
@@ -521,18 +499,6 @@ VOID STAHandleRxDataFrame(
521 { 499 {
522 pAd->LastRxRate = (USHORT)((pRxWI->MCS) + (pRxWI->BW <<7) + (pRxWI->ShortGI <<8)+ (pRxWI->PHYMODE <<14)) ; 500 pAd->LastRxRate = (USHORT)((pRxWI->MCS) + (pRxWI->BW <<7) + (pRxWI->ShortGI <<8)+ (pRxWI->PHYMODE <<14)) ;
523 501
524
525#ifdef QOS_DLS_SUPPORT
526 if (RX_BLK_TEST_FLAG(pRxBlk, fRX_DLS))
527 {
528 MAC_TABLE_ENTRY *pDlsEntry = NULL;
529
530 pDlsEntry = DlsEntryTableLookupByWcid(pAd, pRxWI->WirelessCliID, pHeader->Addr2, TRUE);
531 if(pDlsEntry)
532 Update_Rssi_Sample(pAd, &pDlsEntry->RssiSample, pRxWI);
533 }
534 else
535#endif // QOS_DLS_SUPPORT //
536 if (ADHOC_ON(pAd)) 502 if (ADHOC_ON(pAd))
537 { 503 {
538 pEntry = MacTableLookup(pAd, pHeader->Addr2); 504 pEntry = MacTableLookup(pAd, pHeader->Addr2);
@@ -868,17 +834,6 @@ VOID STASendPackets(
868 { 834 {
869 // Record that orignal packet source is from NDIS layer,so that 835 // Record that orignal packet source is from NDIS layer,so that
870 // later on driver knows how to release this NDIS PACKET 836 // later on driver knows how to release this NDIS PACKET
871#ifdef QOS_DLS_SUPPORT
872 MAC_TABLE_ENTRY *pEntry;
873 PUCHAR pSrcBufVA = GET_OS_PKT_DATAPTR(pPacket);
874
875 pEntry = MacTableLookup(pAd, pSrcBufVA);
876 if (pEntry && (pEntry->ValidAsDls == TRUE))
877 {
878 RTMP_SET_PACKET_WCID(pPacket, pEntry->Aid);
879 }
880 else
881#endif // QOS_DLS_SUPPORT //
882 RTMP_SET_PACKET_WCID(pPacket, 0); // this field is useless when in STA mode 837 RTMP_SET_PACKET_WCID(pPacket, 0); // this field is useless when in STA mode
883 RTMP_SET_PACKET_SOURCE(pPacket, PKTSRC_NDIS); 838 RTMP_SET_PACKET_SOURCE(pPacket, PKTSRC_NDIS);
884 NDIS_SET_PACKET_STATUS(pPacket, NDIS_STATUS_PENDING); 839 NDIS_SET_PACKET_STATUS(pPacket, NDIS_STATUS_PENDING);
@@ -961,18 +916,6 @@ NDIS_STATUS STASendPacket(
961 { 916 {
962 if(INFRA_ON(pAd)) 917 if(INFRA_ON(pAd))
963 { 918 {
964#ifdef QOS_DLS_SUPPORT
965 USHORT tmpWcid;
966
967 tmpWcid = RTMP_GET_PACKET_WCID(pPacket);
968 if (VALID_WCID(tmpWcid) &&
969 (pAd->MacTab.Content[tmpWcid].ValidAsDls== TRUE))
970 {
971 pEntry = &pAd->MacTab.Content[tmpWcid];
972 Rate = pAd->MacTab.Content[tmpWcid].CurrTxRate;
973 }
974 else
975#endif // QOS_DLS_SUPPORT //
976 { 919 {
977 pEntry = &pAd->MacTab.Content[BSSID_WCID]; 920 pEntry = &pAd->MacTab.Content[BSSID_WCID];
978 RTMP_SET_PACKET_WCID(pPacket, BSSID_WCID); 921 RTMP_SET_PACKET_WCID(pPacket, BSSID_WCID);
@@ -1454,12 +1397,7 @@ VOID STABuildCommon802_11Header(
1454 IN PRTMP_ADAPTER pAd, 1397 IN PRTMP_ADAPTER pAd,
1455 IN TX_BLK *pTxBlk) 1398 IN TX_BLK *pTxBlk)
1456{ 1399{
1457
1458 HEADER_802_11 *pHeader_802_11; 1400 HEADER_802_11 *pHeader_802_11;
1459#ifdef QOS_DLS_SUPPORT
1460 BOOLEAN bDLSFrame = FALSE;
1461 INT DlsEntryIndex = 0;
1462#endif // QOS_DLS_SUPPORT //
1463 1401
1464 // 1402 //
1465 // MAKE A COMMON 802.11 HEADER 1403 // MAKE A COMMON 802.11 HEADER
@@ -1476,19 +1414,6 @@ VOID STABuildCommon802_11Header(
1476 pHeader_802_11->FC.Type = BTYPE_DATA; 1414 pHeader_802_11->FC.Type = BTYPE_DATA;
1477 pHeader_802_11->FC.SubType = ((TX_BLK_TEST_FLAG(pTxBlk, fTX_bWMM)) ? SUBTYPE_QDATA : SUBTYPE_DATA); 1415 pHeader_802_11->FC.SubType = ((TX_BLK_TEST_FLAG(pTxBlk, fTX_bWMM)) ? SUBTYPE_QDATA : SUBTYPE_DATA);
1478 1416
1479#ifdef QOS_DLS_SUPPORT
1480 if (INFRA_ON(pAd))
1481 {
1482 // Check if the frame can be sent through DLS direct link interface
1483 // If packet can be sent through DLS, then force aggregation disable. (Hard to determine peer STA's capability)
1484 DlsEntryIndex = RTMPCheckDLSFrame(pAd, pTxBlk->pSrcBufHeader);
1485 if (DlsEntryIndex >= 0)
1486 bDLSFrame = TRUE;
1487 else
1488 bDLSFrame = FALSE;
1489 }
1490#endif // QOS_DLS_SUPPORT //
1491
1492 if (pTxBlk->pMacEntry) 1417 if (pTxBlk->pMacEntry)
1493 { 1418 {
1494 if (TX_BLK_TEST_FLAG(pTxBlk, fTX_bForceNonQoS)) 1419 if (TX_BLK_TEST_FLAG(pTxBlk, fTX_bForceNonQoS))
@@ -1515,16 +1440,6 @@ VOID STABuildCommon802_11Header(
1515 { 1440 {
1516 if (INFRA_ON(pAd)) 1441 if (INFRA_ON(pAd))
1517 { 1442 {
1518#ifdef QOS_DLS_SUPPORT
1519 if (bDLSFrame)
1520 {
1521 COPY_MAC_ADDR(pHeader_802_11->Addr1, pTxBlk->pSrcBufHeader);
1522 COPY_MAC_ADDR(pHeader_802_11->Addr2, pAd->CurrentAddress);
1523 COPY_MAC_ADDR(pHeader_802_11->Addr3, pAd->CommonCfg.Bssid);
1524 pHeader_802_11->FC.ToDs = 0;
1525 }
1526 else
1527#endif // QOS_DLS_SUPPORT //
1528 { 1443 {
1529 COPY_MAC_ADDR(pHeader_802_11->Addr1, pAd->CommonCfg.Bssid); 1444 COPY_MAC_ADDR(pHeader_802_11->Addr1, pAd->CommonCfg.Bssid);
1530 COPY_MAC_ADDR(pHeader_802_11->Addr2, pAd->CurrentAddress); 1445 COPY_MAC_ADDR(pHeader_802_11->Addr2, pAd->CurrentAddress);
@@ -1580,29 +1495,7 @@ VOID STABuildCache802_11Header(
1580 pMacEntry->TxSeq[pTxBlk->UserPriority] = (pMacEntry->TxSeq[pTxBlk->UserPriority]+1) & MAXSEQ; 1495 pMacEntry->TxSeq[pTxBlk->UserPriority] = (pMacEntry->TxSeq[pTxBlk->UserPriority]+1) & MAXSEQ;
1581 1496
1582 { 1497 {
1583 // Check if the frame can be sent through DLS direct link interface
1584 // If packet can be sent through DLS, then force aggregation disable. (Hard to determine peer STA's capability)
1585#ifdef QOS_DLS_SUPPORT
1586 BOOLEAN bDLSFrame = FALSE;
1587 INT DlsEntryIndex = 0;
1588
1589 DlsEntryIndex = RTMPCheckDLSFrame(pAd, pTxBlk->pSrcBufHeader);
1590 if (DlsEntryIndex >= 0)
1591 bDLSFrame = TRUE;
1592 else
1593 bDLSFrame = FALSE;
1594#endif // QOS_DLS_SUPPORT //
1595
1596 // The addr3 of normal packet send from DS is Dest Mac address. 1498 // The addr3 of normal packet send from DS is Dest Mac address.
1597#ifdef QOS_DLS_SUPPORT
1598 if (bDLSFrame)
1599 {
1600 COPY_MAC_ADDR(pHeader80211->Addr1, pTxBlk->pSrcBufHeader);
1601 COPY_MAC_ADDR(pHeader80211->Addr3, pAd->CommonCfg.Bssid);
1602 pHeader80211->FC.ToDs = 0;
1603 }
1604 else
1605#endif // QOS_DLS_SUPPORT //
1606 if (ADHOC_ON(pAd)) 1499 if (ADHOC_ON(pAd))
1607 COPY_MAC_ADDR(pHeader80211->Addr3, pAd->CommonCfg.Bssid); 1500 COPY_MAC_ADDR(pHeader80211->Addr3, pAd->CommonCfg.Bssid);
1608 else 1501 else