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

staging: vt6656: BBbVT3184Init fix word lenght

Correct to length
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7b1f9eef
...@@ -886,10 +886,10 @@ void BBvSetAntennaMode(struct vnt_private *priv, u8 antenna_mode) ...@@ -886,10 +886,10 @@ void BBvSetAntennaMode(struct vnt_private *priv, u8 antenna_mode)
int BBbVT3184Init(struct vnt_private *priv) int BBbVT3184Init(struct vnt_private *priv)
{ {
int status; int status;
u16 lenght; u16 length;
u8 *addr; u8 *addr;
u8 *agc; u8 *agc;
u16 lenght_agc; u16 length_agc;
u8 array[256]; u8 array[256];
u8 data; u8 data;
...@@ -947,10 +947,10 @@ int BBbVT3184Init(struct vnt_private *priv) ...@@ -947,10 +947,10 @@ int BBbVT3184Init(struct vnt_private *priv)
if ((priv->byRFType == RF_AL2230) || if ((priv->byRFType == RF_AL2230) ||
(priv->byRFType == RF_AL2230S)) { (priv->byRFType == RF_AL2230S)) {
priv->byBBRxConf = abyVT3184_AL2230[10]; priv->byBBRxConf = abyVT3184_AL2230[10];
lenght = sizeof(abyVT3184_AL2230); length = sizeof(abyVT3184_AL2230);
addr = abyVT3184_AL2230; addr = abyVT3184_AL2230;
agc = abyVT3184_AGC; agc = abyVT3184_AGC;
lenght_agc = sizeof(abyVT3184_AGC); length_agc = sizeof(abyVT3184_AGC);
priv->abyBBVGA[0] = 0x1C; priv->abyBBVGA[0] = 0x1C;
priv->abyBBVGA[1] = 0x10; priv->abyBBVGA[1] = 0x10;
...@@ -962,10 +962,10 @@ int BBbVT3184Init(struct vnt_private *priv) ...@@ -962,10 +962,10 @@ int BBbVT3184Init(struct vnt_private *priv)
priv->ldBmThreshold[3] = 0; priv->ldBmThreshold[3] = 0;
} else if (priv->byRFType == RF_AIROHA7230) { } else if (priv->byRFType == RF_AIROHA7230) {
priv->byBBRxConf = abyVT3184_AL2230[10]; priv->byBBRxConf = abyVT3184_AL2230[10];
lenght = sizeof(abyVT3184_AL2230); length = sizeof(abyVT3184_AL2230);
addr = abyVT3184_AL2230; addr = abyVT3184_AL2230;
agc = abyVT3184_AGC; agc = abyVT3184_AGC;
lenght_agc = sizeof(abyVT3184_AGC); length_agc = sizeof(abyVT3184_AGC);
addr[0xd7] = 0x06; addr[0xd7] = 0x06;
...@@ -980,10 +980,10 @@ int BBbVT3184Init(struct vnt_private *priv) ...@@ -980,10 +980,10 @@ int BBbVT3184Init(struct vnt_private *priv)
} else if ((priv->byRFType == RF_VT3226) || } else if ((priv->byRFType == RF_VT3226) ||
(priv->byRFType == RF_VT3226D0)) { (priv->byRFType == RF_VT3226D0)) {
priv->byBBRxConf = abyVT3184_VT3226D0[10]; priv->byBBRxConf = abyVT3184_VT3226D0[10];
lenght = sizeof(abyVT3184_VT3226D0); length = sizeof(abyVT3184_VT3226D0);
addr = abyVT3184_VT3226D0; addr = abyVT3184_VT3226D0;
agc = abyVT3184_AGC; agc = abyVT3184_AGC;
lenght_agc = sizeof(abyVT3184_AGC); length_agc = sizeof(abyVT3184_AGC);
priv->abyBBVGA[0] = 0x20; priv->abyBBVGA[0] = 0x20;
priv->abyBBVGA[1] = 0x10; priv->abyBBVGA[1] = 0x10;
...@@ -997,10 +997,10 @@ int BBbVT3184Init(struct vnt_private *priv) ...@@ -997,10 +997,10 @@ int BBbVT3184Init(struct vnt_private *priv)
MACvRegBitsOn(priv, MAC_REG_SOFTPWRCTL2, SOFTPWRCTL_RFLEOPT); MACvRegBitsOn(priv, MAC_REG_SOFTPWRCTL2, SOFTPWRCTL_RFLEOPT);
} else if ((priv->byRFType == RF_VT3342A0)) { } else if ((priv->byRFType == RF_VT3342A0)) {
priv->byBBRxConf = abyVT3184_VT3226D0[10]; priv->byBBRxConf = abyVT3184_VT3226D0[10];
lenght = sizeof(abyVT3184_VT3226D0); length = sizeof(abyVT3184_VT3226D0);
addr = abyVT3184_VT3226D0; addr = abyVT3184_VT3226D0;
agc = abyVT3184_AGC; agc = abyVT3184_AGC;
lenght_agc = sizeof(abyVT3184_AGC); length_agc = sizeof(abyVT3184_AGC);
priv->abyBBVGA[0] = 0x20; priv->abyBBVGA[0] = 0x20;
priv->abyBBVGA[1] = 0x10; priv->abyBBVGA[1] = 0x10;
...@@ -1016,15 +1016,15 @@ int BBbVT3184Init(struct vnt_private *priv) ...@@ -1016,15 +1016,15 @@ int BBbVT3184Init(struct vnt_private *priv)
return true; return true;
} }
memcpy(array, addr, lenght); memcpy(array, addr, length);
CONTROLnsRequestOut(priv, MESSAGE_TYPE_WRITE, 0, CONTROLnsRequestOut(priv, MESSAGE_TYPE_WRITE, 0,
MESSAGE_REQUEST_BBREG, lenght, array); MESSAGE_REQUEST_BBREG, length, array);
memcpy(array, agc, lenght_agc); memcpy(array, agc, length_agc);
CONTROLnsRequestOut(priv, MESSAGE_TYPE_WRITE, 0, CONTROLnsRequestOut(priv, MESSAGE_TYPE_WRITE, 0,
MESSAGE_REQUEST_BBAGC, lenght_agc, array); MESSAGE_REQUEST_BBAGC, length_agc, array);
if ((priv->byRFType == RF_VT3226) || if ((priv->byRFType == RF_VT3226) ||
(priv->byRFType == RF_VT3342A0)) { (priv->byRFType == RF_VT3342A0)) {
......
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