mirror of https://gitee.com/openkylin/linux.git
staging; vt6656: swGetCCKControlRate remove camel case
camel case changes pDevice -> priv wRateIdx -> rate_idx Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a5a7c43906
commit
3d2988c74b
|
@ -123,20 +123,20 @@ void CARDbSetMediaChannel(struct vnt_private *priv, u32 connection_channel)
|
||||||
*
|
*
|
||||||
* 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 swGetCCKControlRate(struct vnt_private *pDevice, u16 wRateIdx)
|
static u16 swGetCCKControlRate(struct vnt_private *priv, u16 rate_idx)
|
||||||
{
|
{
|
||||||
u16 ui = wRateIdx;
|
u16 ui = rate_idx;
|
||||||
|
|
||||||
while (ui > RATE_1M) {
|
while (ui > RATE_1M) {
|
||||||
if (pDevice->wBasicRate & (1 << ui))
|
if (priv->wBasicRate & (1 << ui))
|
||||||
return ui;
|
return ui;
|
||||||
ui--;
|
ui--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue