Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141279
b: refs/heads/master
c: bdc0a17
h: refs/heads/master
i:
  141277: 90a2a23
  141275: 15eeca0
  141271: cdf7da8
  141263: 9906a12
  141247: 6c2c40c
v: v3
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 25d577a commit 4b61eb6
Show file tree
Hide file tree
Showing 21 changed files with 6 additions and 234 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f72c4bf5e184353bd848b9b6de87fe2b07a3066c
refs/heads/master: bdc0a1739fee93152bf33ed83b9cc07d328e4013
1 change: 0 additions & 1 deletion trunk/drivers/staging/rt2860/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ obj-$(CONFIG_RT2860) += rt2860sta.o

# TODO: all of these should be removed
EXTRA_CFLAGS += -DLINUX -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT
EXTRA_CFLAGS += -DRT2860
EXTRA_CFLAGS += -DCONFIG_STA_SUPPORT
EXTRA_CFLAGS += -DDBG
EXTRA_CFLAGS += -DDOT11_N_SUPPORT
Expand Down
23 changes: 1 addition & 22 deletions trunk/drivers/staging/rt2860/common/cmm_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ NDIS_STATUS MiniportMMRequest(
PNDIS_PACKET pPacket;
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
ULONG FreeNum;
#ifdef RT2860
unsigned long IrqFlags = 0;
#endif // RT2860 //
UCHAR IrqState;
UCHAR rtmpHwHdr[TXINFO_SIZE + TXWI_SIZE]; //RTMP_HW_HDR_LEN];

Expand All @@ -118,10 +116,9 @@ NDIS_STATUS MiniportMMRequest(
// 2860C use Tx Ring

IrqState = pAd->irq_disabled;
#ifdef RT2860

if ((pAd->MACVersion == 0x28600100) && (!IrqState))
RTMP_IRQ_LOCK(&pAd->irq_lock, IrqFlags);
#endif // RT2860 //

do
{
Expand Down Expand Up @@ -175,17 +172,14 @@ NDIS_STATUS MiniportMMRequest(

} while (FALSE);

#ifdef RT2860
// 2860C use Tx Ring
if ((pAd->MACVersion == 0x28600100) && (!IrqState))
RTMP_IRQ_UNLOCK(&pAd->irq_lock, IrqFlags);
#endif // RT2860 //

return Status;
}


#ifdef RT2860
NDIS_STATUS MiniportMMRequestUnlock(
IN PRTMP_ADAPTER pAd,
IN UCHAR QueIdx,
Expand Down Expand Up @@ -253,7 +247,6 @@ NDIS_STATUS MiniportMMRequestUnlock(

return Status;
}
#endif // RT2860 //


/*
Expand Down Expand Up @@ -290,17 +283,14 @@ NDIS_STATUS MlmeHardTransmit(
return NDIS_STATUS_FAILURE;
}

#ifdef RT2860
if ( pAd->MACVersion == 0x28600100 )
return MlmeHardTransmitTxRing(pAd,QueIdx,pPacket);
else
#endif // RT2860 //
return MlmeHardTransmitMgmtRing(pAd,QueIdx,pPacket);

}


#ifdef RT2860
NDIS_STATUS MlmeHardTransmitTxRing(
IN PRTMP_ADAPTER pAd,
IN UCHAR QueIdx,
Expand Down Expand Up @@ -509,7 +499,6 @@ NDIS_STATUS MlmeHardTransmitTxRing(

return NDIS_STATUS_SUCCESS;
}
#endif // RT2860 //


NDIS_STATUS MlmeHardTransmitMgmtRing(
Expand Down Expand Up @@ -1076,7 +1065,6 @@ VOID RTMPDeQueuePacket(
break;
}

#ifdef RT2860
FreeNumber[QueIdx] = GET_TXRING_FREENO(pAd, QueIdx);

#ifdef DBG_DIAGNOSE
Expand All @@ -1101,7 +1089,6 @@ VOID RTMPDeQueuePacket(
RTMPFreeTXDUponTxDmaDone(pAd, QueIdx);
FreeNumber[QueIdx] = GET_TXRING_FREENO(pAd, QueIdx);
}
#endif // RT2860 //

// probe the Queue Head
pQueue = &pAd->TxSwQueue[QueIdx];
Expand Down Expand Up @@ -1180,12 +1167,10 @@ VOID RTMPDeQueuePacket(
Status = STAHardTransmit(pAd, pTxBlk, QueIdx);
#endif // CONFIG_STA_SUPPORT //

#ifdef RT2860
DEQUEUE_UNLOCK(&pAd->irq_lock, bIntContext, IrqFlags);
// static rate also need NICUpdateFifoStaCounters() function.
//if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_TX_RATE_SWITCH_ENABLED))
NICUpdateFifoStaCounters(pAd);
#endif // RT2860 //
}

RT28XX_STOP_DEQUEUE(pAd, QueIdx, IrqFlags);
Expand Down Expand Up @@ -1764,7 +1749,6 @@ PQUEUE_HEADER RTMPCheckTxSwQueue(
}


#ifdef RT2860
BOOLEAN RTMPFreeTXDUponTxDmaDone(
IN PRTMP_ADAPTER pAd,
IN UCHAR QueIdx)
Expand Down Expand Up @@ -2309,7 +2293,6 @@ VOID DBGPRINT_RX_RING(
DBGPRINT_RAW(RT_DEBUG_TRACE,(" RxSwReadIdx [%d]=", AC0freeIdx));
DBGPRINT_RAW(RT_DEBUG_TRACE,(" pending-NDIS=%ld\n", pAd->RalinkCounters.PendingNdisPacketCount));
}
#endif // RT2860 //

/*
========================================================================
Expand Down Expand Up @@ -2634,9 +2617,7 @@ MAC_TABLE_ENTRY *MacTableInsertEntry(
pEntry->AuthMode = pAd->StaCfg.AuthMode;
pEntry->WepStatus = pAd->StaCfg.WepStatus;
pEntry->PrivacyFilter = Ndis802_11PrivFilterAcceptAll;
#ifdef RT2860
AsicRemovePairwiseKeyEntry(pAd, pEntry->apidx, (UCHAR)i);
#endif // RT2860 //
}
#endif // CONFIG_STA_SUPPORT //
}
Expand Down Expand Up @@ -2823,9 +2804,7 @@ VOID MacTableReset(

for (i=1; i<MAX_LEN_OF_MAC_TABLE; i++)
{
#ifdef RT2860
RT28XX_STA_ENTRY_MAC_RESET(pAd, i);
#endif // RT2860 //
if (pAd->MacTab.Content[i].ValidAsCLI == TRUE)
{

Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/staging/rt2860/common/cmm_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,6 @@ INT Show_DescInfo_Proc(
IN PRTMP_ADAPTER pAd,
IN PUCHAR arg)
{
#ifdef RT2860
INT i, QueIdx=0;
PRT28XX_RXD_STRUC pRxD;
PTXD_STRUC pTxD;
Expand Down Expand Up @@ -845,7 +844,6 @@ INT Show_DescInfo_Proc(
hex_dump("Rx Descriptor", (char *)pRxD, 16);
printk("pRxD->DDONE = %x\n", pRxD->DDONE);
}
#endif // RT2860 //

return TRUE;
}
Expand Down Expand Up @@ -1803,9 +1801,7 @@ VOID RTMPAddWcidAttributeEntry(
}

// For key index and ext IV bit, so only need to update the position(offset+3).
#ifdef RT2860
RTMP_IO_WRITE8(pAd, offset+3, IVEIV);
#endif // RT2860 //

DBGPRINT(RT_DEBUG_TRACE,("RTMPAddWcidAttributeEntry: WCID #%d, KeyIndex #%d, Alg=%s\n",Wcid, KeyIdx, CipherName[CipherAlg]));
DBGPRINT(RT_DEBUG_TRACE,(" WCIDAttri = 0x%x \n", WCIDAttri));
Expand Down Expand Up @@ -2827,9 +2823,7 @@ INT Set_OpMode_Proc(

Value = simple_strtol(arg, 0, 10);

#ifdef RT2860
if (RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_INTERRUPT_IN_USE))
#endif // RT2860 //
{
DBGPRINT(RT_DEBUG_ERROR, ("Can not switch operate mode on interface up !! \n"));
return FALSE;
Expand Down
Loading

0 comments on commit 4b61eb6

Please sign in to comment.