mirror of https://gitee.com/openkylin/linux.git
Staging: rtl8192e: Clean up formatting in MapHwQueueToFirmwareQueue()
Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
eb40aeac63
commit
f72b6a505b
|
@ -1285,46 +1285,41 @@ void rtl819xE_tx_cmd(struct net_device *dev, struct sk_buff *skb)
|
||||||
*/
|
*/
|
||||||
static u8 MapHwQueueToFirmwareQueue(u8 QueueID)
|
static u8 MapHwQueueToFirmwareQueue(u8 QueueID)
|
||||||
{
|
{
|
||||||
u8 QueueSelect = 0x0; //defualt set to
|
u8 QueueSelect = 0;
|
||||||
|
|
||||||
switch(QueueID) {
|
switch (QueueID) {
|
||||||
case BE_QUEUE:
|
case BE_QUEUE:
|
||||||
QueueSelect = QSLT_BE; //or QSelect = pTcb->priority;
|
QueueSelect = QSLT_BE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BK_QUEUE:
|
case BK_QUEUE:
|
||||||
QueueSelect = QSLT_BK; //or QSelect = pTcb->priority;
|
QueueSelect = QSLT_BK;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VO_QUEUE:
|
case VO_QUEUE:
|
||||||
QueueSelect = QSLT_VO; //or QSelect = pTcb->priority;
|
QueueSelect = QSLT_VO;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VI_QUEUE:
|
case VI_QUEUE:
|
||||||
QueueSelect = QSLT_VI; //or QSelect = pTcb->priority;
|
QueueSelect = QSLT_VI;
|
||||||
break;
|
break;
|
||||||
case MGNT_QUEUE:
|
|
||||||
QueueSelect = QSLT_MGNT;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case BEACON_QUEUE:
|
case MGNT_QUEUE:
|
||||||
QueueSelect = QSLT_BEACON;
|
QueueSelect = QSLT_MGNT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// TODO: 2006.10.30 mark other queue selection until we verify it is OK
|
case BEACON_QUEUE:
|
||||||
// TODO: Remove Assertions
|
QueueSelect = QSLT_BEACON;
|
||||||
//#if (RTL819X_FPGA_VER & RTL819X_FPGA_GUANGAN_070502)
|
break;
|
||||||
case TXCMD_QUEUE:
|
|
||||||
QueueSelect = QSLT_CMD;
|
|
||||||
break;
|
|
||||||
//#endif
|
|
||||||
case HIGH_QUEUE:
|
|
||||||
//QueueSelect = QSLT_HIGH;
|
|
||||||
//break;
|
|
||||||
|
|
||||||
default:
|
case TXCMD_QUEUE:
|
||||||
RT_TRACE(COMP_ERR, "TransmitTCB(): Impossible Queue Selection: %d \n", QueueID);
|
QueueSelect = QSLT_CMD;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case HIGH_QUEUE:
|
||||||
|
default:
|
||||||
|
RT_TRACE(COMP_ERR, "Impossible Queue Selection: %d\n", QueueID);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return QueueSelect;
|
return QueueSelect;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue