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

staging: vt6656: swGetOFDMControlRate remove camel case

camel case changes
pDevice -> priv
wRateIdx -> rate_idx
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7879be81
...@@ -149,31 +149,31 @@ static u16 swGetCCKControlRate(struct vnt_private *pDevice, u16 wRateIdx) ...@@ -149,31 +149,31 @@ static u16 swGetCCKControlRate(struct vnt_private *pDevice, u16 wRateIdx)
* *
* Parameters: * Parameters:
* In: * In:
* pDevice - The adapter to be set * priv - The adapter to be set
* wRateIdx - Receiving data rate * rate_idx - Receiving data rate
* Out: * Out:
* none * none
* *
* Return Value: response Control frame rate * Return Value: response Control frame rate
* *
*/ */
static u16 swGetOFDMControlRate(struct vnt_private *pDevice, u16 wRateIdx) static u16 swGetOFDMControlRate(struct vnt_private *priv, u16 rate_idx)
{ {
u16 ui = wRateIdx; u16 ui = rate_idx;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"BASIC RATE: %X\n", DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"BASIC RATE: %X\n",
pDevice->wBasicRate); priv->wBasicRate);
if (!CARDbIsOFDMinBasicRate(pDevice)) { if (!CARDbIsOFDMinBasicRate(priv)) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"swGetOFDMControlRate:(NO OFDM) %d\n", wRateIdx); "swGetOFDMControlRate:(NO OFDM) %d\n", rate_idx);
if (wRateIdx > RATE_24M) if (rate_idx > RATE_24M)
wRateIdx = RATE_24M; rate_idx = RATE_24M;
return wRateIdx; return rate_idx;
} }
while (ui > RATE_11M) { while (ui > RATE_11M) {
if (pDevice->wBasicRate & (1 << ui)) { if (priv->wBasicRate & (1 << ui)) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"swGetOFDMControlRate: %d\n", ui); "swGetOFDMControlRate: %d\n", ui);
return ui; return ui;
......
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