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

staging: vt6656: camel case and cleanup CARDbyGetPktType

camel case changes
pDevice -> priv
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent de0eb9ef
...@@ -534,18 +534,15 @@ int CARDbIsOFDMinBasicRate(struct vnt_private *priv) ...@@ -534,18 +534,15 @@ int CARDbIsOFDMinBasicRate(struct vnt_private *priv)
return false; return false;
} }
u8 CARDbyGetPktType(struct vnt_private *pDevice) u8 CARDbyGetPktType(struct vnt_private *priv)
{ {
if (pDevice->byBBType == BB_TYPE_11A || pDevice->byBBType == BB_TYPE_11B) { if (priv->byBBType == BB_TYPE_11A || priv->byBBType == BB_TYPE_11B)
return (u8)pDevice->byBBType; return (u8)priv->byBBType;
} else if (CARDbIsOFDMinBasicRate(priv))
else if (CARDbIsOFDMinBasicRate(pDevice)) {
return PK_TYPE_11GA; return PK_TYPE_11GA;
} else
else {
return PK_TYPE_11GB; return PK_TYPE_11GB;
}
} }
/* /*
......
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