mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
staging: vt6656: camel case and cleanup CARDbyGetPktType
camel case changes pDevice -> priv Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
de0eb9ef70
commit
1f44238f6c
1 changed files with 7 additions and 10 deletions
|
@ -534,18 +534,15 @@ int CARDbIsOFDMinBasicRate(struct vnt_private *priv)
|
|||
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) {
|
||||
return (u8)pDevice->byBBType;
|
||||
}
|
||||
else if (CARDbIsOFDMinBasicRate(pDevice)) {
|
||||
return PK_TYPE_11GA;
|
||||
}
|
||||
else {
|
||||
return PK_TYPE_11GB;
|
||||
}
|
||||
if (priv->byBBType == BB_TYPE_11A || priv->byBBType == BB_TYPE_11B)
|
||||
return (u8)priv->byBBType;
|
||||
else if (CARDbIsOFDMinBasicRate(priv))
|
||||
return PK_TYPE_11GA;
|
||||
else
|
||||
return PK_TYPE_11GB;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue