Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d99952d authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman
Browse files

staging: vt6656: checkpatch cleanup BBuGetFrameTime.



clean up white space.

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2a4ee86f
Loading
Loading
Loading
Loading
+36 −42
Original line number Diff line number Diff line
@@ -663,13 +663,8 @@ s_vClearSQ3Value(PSDevice pDevice);
 * Return Value: FrameTime
 *
 */
unsigned int
BBuGetFrameTime(
     u8 byPreambleType,
     u8 byPktType,
     unsigned int cbFrameLength,
     u16 wRate
    )
unsigned int BBuGetFrameTime(u8 byPreambleType,  u8 byPktType,
	unsigned int cbFrameLength, u16 wRate)
{
	unsigned int uFrameTime;
	unsigned int uPreamble;
@@ -677,38 +672,37 @@ BBuGetFrameTime(
	unsigned int uRateIdx = (unsigned int)wRate;
	unsigned int uRate = 0;

    if (uRateIdx > RATE_54M) {
	if (uRateIdx > RATE_54M)
		return 0;
    }

	uRate = (unsigned int)awcFrameTime[uRateIdx];

    if (uRateIdx <= 3) {          //CCK mode

        if (byPreambleType == 1) {//Short
	if (uRateIdx <= 3) {
		if (byPreambleType == 1)
			uPreamble = 96;
        } else {
		else
			uPreamble = 192;
        }
        uFrameTime = (cbFrameLength * 80) / uRate;  //?????

		uFrameTime = (cbFrameLength * 80) / uRate;
		uTmp = (uFrameTime * uRate) / 80;
        if (cbFrameLength != uTmp) {

		if (cbFrameLength != uTmp)
			uFrameTime++;
        }

        return (uPreamble + uFrameTime);
    }
    else {
        uFrameTime = (cbFrameLength * 8 + 22) / uRate;   //????????
		return uPreamble + uFrameTime;
	} else {
		uFrameTime = (cbFrameLength * 8 + 22) / uRate;
		uTmp = ((uFrameTime * uRate) - 22) / 8;
        if(cbFrameLength != uTmp) {

		if (cbFrameLength != uTmp)
			uFrameTime++;
        }
        uFrameTime = uFrameTime * 4;    //???????
        if(byPktType != PK_TYPE_11A) {

		uFrameTime = uFrameTime * 4;

		if (byPktType != PK_TYPE_11A)
			uFrameTime += 6;
        }
        return (20 + uFrameTime); //??????

		return 20 + uFrameTime;
	}
}