staging: vt6656: camel case clean up CARDvCalculateOFDMRParameter

Camel case changes
wRate -> rate
byBBType -> bb_type
pbyTxRate -> tx_rate
pbyRsvTime -> rsv_time

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Malcolm Priestley 2014-05-23 18:00:15 +01:00 committed by Greg Kroah-Hartman
parent ddb8c95f93
commit 3605f84e78
1 changed files with 83 additions and 102 deletions

View File

@ -190,114 +190,95 @@ static u16 swGetOFDMControlRate(struct vnt_private *pDevice, u16 wRateIdx)
* Description: Calculate TxRate and RsvTime fields for RSPINF in OFDM mode. * Description: Calculate TxRate and RsvTime fields for RSPINF in OFDM mode.
* *
* Parameters: * Parameters:
* In: * In:
* wRate - Tx Rate * rate - Tx Rate
* byPktType - Tx Packet type * bb_type - Tx Packet type
* Out: * Out:
* pbyTxRate - pointer to RSPINF TxRate field * tx_rate - pointer to RSPINF TxRate field
* pbyRsvTime - pointer to RSPINF RsvTime field * rsv_time- pointer to RSPINF RsvTime field
* *
* Return Value: none * Return Value: none
* *
*/ */
static void void CARDvCalculateOFDMRParameter(u16 rate, u8 bb_type,
CARDvCalculateOFDMRParameter ( u8 *tx_rate, u8 *rsv_time)
u16 wRate,
u8 byBBType,
u8 * pbyTxRate,
u8 * pbyRsvTime
)
{ {
switch (wRate) {
case RATE_6M :
if (byBBType == BB_TYPE_11A) {//5GHZ
*pbyTxRate = 0x9B;
*pbyRsvTime = 24;
}
else {
*pbyTxRate = 0x8B;
*pbyRsvTime = 30;
}
break;
case RATE_9M : switch (rate) {
if (byBBType == BB_TYPE_11A) {//5GHZ case RATE_6M:
*pbyTxRate = 0x9F; if (bb_type == BB_TYPE_11A) {
*pbyRsvTime = 16; *tx_rate = 0x9b;
} *rsv_time = 24;
else { } else {
*pbyTxRate = 0x8F; *tx_rate = 0x8b;
*pbyRsvTime = 22; *rsv_time = 30;
} }
break; break;
case RATE_9M:
case RATE_12M : if (bb_type == BB_TYPE_11A) {
if (byBBType == BB_TYPE_11A) {//5GHZ *tx_rate = 0x9f;
*pbyTxRate = 0x9A; *rsv_time = 16;
*pbyRsvTime = 12; } else {
} *tx_rate = 0x8f;
else { *rsv_time = 22;
*pbyTxRate = 0x8A; }
*pbyRsvTime = 18; break;
} case RATE_12M:
break; if (bb_type == BB_TYPE_11A) {
*tx_rate = 0x9a;
case RATE_18M : *rsv_time = 12;
if (byBBType == BB_TYPE_11A) {//5GHZ } else {
*pbyTxRate = 0x9E; *tx_rate = 0x8a;
*pbyRsvTime = 8; *rsv_time = 18;
} }
else { break;
*pbyTxRate = 0x8E; case RATE_18M:
*pbyRsvTime = 14; if (bb_type == BB_TYPE_11A) {
} *tx_rate = 0x9e;
break; *rsv_time = 8;
} else {
case RATE_36M : *tx_rate = 0x8e;
if (byBBType == BB_TYPE_11A) {//5GHZ *rsv_time = 14;
*pbyTxRate = 0x9D; }
*pbyRsvTime = 4; break;
} case RATE_36M:
else { if (bb_type == BB_TYPE_11A) {
*pbyTxRate = 0x8D; *tx_rate = 0x9d;
*pbyRsvTime = 10; *rsv_time = 4;
} } else {
break; *tx_rate = 0x8d;
*rsv_time = 10;
case RATE_48M : }
if (byBBType == BB_TYPE_11A) {//5GHZ break;
*pbyTxRate = 0x98; case RATE_48M:
*pbyRsvTime = 4; if (bb_type == BB_TYPE_11A) {
} *tx_rate = 0x98;
else { *rsv_time = 4;
*pbyTxRate = 0x88; } else {
*pbyRsvTime = 10; *tx_rate = 0x88;
} *rsv_time = 10;
break; }
break;
case RATE_54M : case RATE_54M:
if (byBBType == BB_TYPE_11A) {//5GHZ if (bb_type == BB_TYPE_11A) {
*pbyTxRate = 0x9C; *tx_rate = 0x9c;
*pbyRsvTime = 4; *rsv_time = 4;
} } else {
else { *tx_rate = 0x8c;
*pbyTxRate = 0x8C; *rsv_time = 10;
*pbyRsvTime = 10; }
} break;
break; case RATE_24M:
default:
case RATE_24M : if (bb_type == BB_TYPE_11A) {
default : *tx_rate = 0x99;
if (byBBType == BB_TYPE_11A) {//5GHZ *rsv_time = 8;
*pbyTxRate = 0x99; } else {
*pbyRsvTime = 8; *tx_rate = 0x89;
} *rsv_time = 14;
else { }
*pbyTxRate = 0x89; break;
*pbyRsvTime = 14; }
}
break;
}
} }
/* /*