Commit a4fb3e78 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: checkpatch cleanup BBvCalculateParameter.

White space clean up.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 030ede1e
...@@ -735,123 +735,111 @@ void BBvCalculateParameter(struct vnt_private *pDevice, u32 cbFrameLength, ...@@ -735,123 +735,111 @@ void BBvCalculateParameter(struct vnt_private *pDevice, u32 cbFrameLength,
bExtBit = false; bExtBit = false;
switch (wRate) { switch (wRate) {
case RATE_1M : case RATE_1M:
cbUsCount = cbBitCount; cbUsCount = cbBitCount;
phy->signal = 0x00; phy->signal = 0x00;
break;
case RATE_2M : break;
case RATE_2M:
cbUsCount = cbBitCount / 2; cbUsCount = cbBitCount / 2;
if (byPreambleType == 1) if (byPreambleType == 1)
phy->signal = 0x09; phy->signal = 0x09;
else // long preamble else
phy->signal = 0x01; phy->signal = 0x01;
break;
case RATE_5M : break;
case RATE_5M:
cbUsCount = (cbBitCount * 10) / 55; cbUsCount = (cbBitCount * 10) / 55;
cbTmp = (cbUsCount * 55) / 10; cbTmp = (cbUsCount * 55) / 10;
if (cbTmp != cbBitCount) if (cbTmp != cbBitCount)
cbUsCount ++; cbUsCount++;
if (byPreambleType == 1) if (byPreambleType == 1)
phy->signal = 0x0a; phy->signal = 0x0a;
else // long preamble else
phy->signal = 0x02; phy->signal = 0x02;
break;
case RATE_11M : break;
case RATE_11M:
cbUsCount = cbBitCount / 11; cbUsCount = cbBitCount / 11;
cbTmp = cbUsCount * 11; cbTmp = cbUsCount * 11;
if (cbTmp != cbBitCount) { if (cbTmp != cbBitCount) {
cbUsCount ++; cbUsCount++;
if ((cbBitCount - cbTmp) <= 3) if ((cbBitCount - cbTmp) <= 3)
bExtBit = true; bExtBit = true;
} }
if (byPreambleType == 1) if (byPreambleType == 1)
phy->signal = 0x0b; phy->signal = 0x0b;
else // long preamble else
phy->signal = 0x03; phy->signal = 0x03;
break;
case RATE_6M : break;
if(byPacketType == PK_TYPE_11A) {//11a, 5GHZ case RATE_6M:
if (byPacketType == PK_TYPE_11A)
phy->signal = 0x9b; phy->signal = 0x9b;
} else
else {//11g, 2.4GHZ
phy->signal = 0x8b; phy->signal = 0x8b;
}
break;
case RATE_9M : break;
if(byPacketType == PK_TYPE_11A) {//11a, 5GHZ case RATE_9M:
if (byPacketType == PK_TYPE_11A)
phy->signal = 0x9f; phy->signal = 0x9f;
} else
else {//11g, 2.4GHZ
phy->signal = 0x8f; phy->signal = 0x8f;
}
break;
case RATE_12M : break;
if(byPacketType == PK_TYPE_11A) {//11a, 5GHZ case RATE_12M:
if (byPacketType == PK_TYPE_11A)
phy->signal = 0x9a; phy->signal = 0x9a;
} else
else {//11g, 2.4GHZ
phy->signal = 0x8a; phy->signal = 0x8a;
}
break;
case RATE_18M : break;
if(byPacketType == PK_TYPE_11A) {//11a, 5GHZ case RATE_18M:
if (byPacketType == PK_TYPE_11A)
phy->signal = 0x9e; phy->signal = 0x9e;
} else
else {//11g, 2.4GHZ
phy->signal = 0x8e; phy->signal = 0x8e;
}
break;
case RATE_24M : break;
if(byPacketType == PK_TYPE_11A) {//11a, 5GHZ case RATE_24M:
if (byPacketType == PK_TYPE_11A)
phy->signal = 0x99; phy->signal = 0x99;
} else
else {//11g, 2.4GHZ
phy->signal = 0x89; phy->signal = 0x89;
}
break;
case RATE_36M : break;
if(byPacketType == PK_TYPE_11A) {//11a, 5GHZ case RATE_36M:
if (byPacketType == PK_TYPE_11A)
phy->signal = 0x9d; phy->signal = 0x9d;
} else
else {//11g, 2.4GHZ
phy->signal = 0x8d; phy->signal = 0x8d;
}
break;
case RATE_48M : break;
if(byPacketType == PK_TYPE_11A) {//11a, 5GHZ case RATE_48M:
if (byPacketType == PK_TYPE_11A)
phy->signal = 0x98; phy->signal = 0x98;
} else
else {//11g, 2.4GHZ
phy->signal = 0x88; phy->signal = 0x88;
}
break;
case RATE_54M : break;
if (byPacketType == PK_TYPE_11A) {//11a, 5GHZ case RATE_54M:
if (byPacketType == PK_TYPE_11A)
phy->signal = 0x9c; phy->signal = 0x9c;
} else
else {//11g, 2.4GHZ
phy->signal = 0x8c; phy->signal = 0x8c;
}
break; break;
default:
default : if (byPacketType == PK_TYPE_11A)
if (byPacketType == PK_TYPE_11A) {//11a, 5GHZ
phy->signal = 0x9c; phy->signal = 0x9c;
} else
else {//11g, 2.4GHZ
phy->signal = 0x8c; phy->signal = 0x8c;
}
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment