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

staging: vt6655: common variable size channel numbers to ieee80211_channel->hw_value

hw_value is u16 so fix all to the same size.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d7a4cfa8
...@@ -197,11 +197,11 @@ bool set_channel(void *pDeviceHandler, struct ieee80211_channel *ch) ...@@ -197,11 +197,11 @@ bool set_channel(void *pDeviceHandler, struct ieee80211_channel *ch)
if (pDevice->byRFType == RF_AIROHA7230) if (pDevice->byRFType == RF_AIROHA7230)
RFbAL7230SelectChannelPostProcess(pDevice, pDevice->byCurrentCh, RFbAL7230SelectChannelPostProcess(pDevice, pDevice->byCurrentCh,
(unsigned char)ch->hw_value); ch->hw_value);
pDevice->byCurrentCh = (unsigned char)ch->hw_value; pDevice->byCurrentCh = ch->hw_value;
bResult &= RFbSelectChannel(pDevice, pDevice->byRFType, bResult &= RFbSelectChannel(pDevice, pDevice->byRFType,
(unsigned char)ch->hw_value); ch->hw_value);
/* Init Synthesizer Table */ /* Init Synthesizer Table */
if (pDevice->bEnablePSMode) if (pDevice->bEnablePSMode)
......
...@@ -367,7 +367,7 @@ struct vnt_private { ...@@ -367,7 +367,7 @@ struct vnt_private {
bool bIsBeaconBufReadySet; bool bIsBeaconBufReadySet;
unsigned int cbBeaconBufReadySetCnt; unsigned int cbBeaconBufReadySetCnt;
bool bFixRate; bool bFixRate;
unsigned char byCurrentCh; u16 byCurrentCh;
bool bAES; bool bAES;
......
...@@ -651,7 +651,8 @@ bool RFbInit( ...@@ -651,7 +651,8 @@ bool RFbInit(
* Return Value: true if succeeded; false if failed. * Return Value: true if succeeded; false if failed.
* *
*/ */
bool RFbSelectChannel(struct vnt_private *priv, unsigned char byRFType, unsigned char byChannel) bool RFbSelectChannel(struct vnt_private *priv, unsigned char byRFType,
u16 byChannel)
{ {
bool bResult = true; bool bResult = true;
...@@ -687,7 +688,8 @@ bool RFbSelectChannel(struct vnt_private *priv, unsigned char byRFType, unsigned ...@@ -687,7 +688,8 @@ bool RFbSelectChannel(struct vnt_private *priv, unsigned char byRFType, unsigned
* Return Value: None. * Return Value: None.
* *
*/ */
bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, unsigned int uChannel) bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
u16 uChannel)
{ {
void __iomem *dwIoBase = priv->PortOffset; void __iomem *dwIoBase = priv->PortOffset;
int ii; int ii;
...@@ -767,7 +769,7 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, unsig ...@@ -767,7 +769,7 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, unsig
bool RFbSetPower( bool RFbSetPower(
struct vnt_private *priv, struct vnt_private *priv,
unsigned int uRATE, unsigned int uRATE,
unsigned int uCH u16 uCH
) )
{ {
bool bResult = true; bool bResult = true;
...@@ -937,8 +939,8 @@ RFvRSSITodBm( ...@@ -937,8 +939,8 @@ RFvRSSITodBm(
/* Post processing for the 11b/g and 11a. /* Post processing for the 11b/g and 11a.
* for save time on changing Reg2,3,5,7,10,12,15 */ * for save time on changing Reg2,3,5,7,10,12,15 */
bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv,
unsigned char byOldChannel, u16 byOldChannel,
unsigned char byNewChannel) u16 byNewChannel)
{ {
bool bResult; bool bResult;
......
...@@ -74,12 +74,12 @@ ...@@ -74,12 +74,12 @@
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
bool IFRFbWriteEmbedded(struct vnt_private *, unsigned long dwData); bool IFRFbWriteEmbedded(struct vnt_private *, unsigned long dwData);
bool RFbSelectChannel(struct vnt_private *, unsigned char byRFType, unsigned char byChannel); bool RFbSelectChannel(struct vnt_private *, unsigned char byRFType, u16);
bool RFbInit( bool RFbInit(
struct vnt_private * struct vnt_private *
); );
bool RFvWriteWakeProgSyn(struct vnt_private *, unsigned char byRFType, unsigned int uChannel); bool RFvWriteWakeProgSyn(struct vnt_private *, unsigned char byRFType, u16);
bool RFbSetPower(struct vnt_private *, unsigned int uRATE, unsigned int uCH); bool RFbSetPower(struct vnt_private *, unsigned int uRATE, u16);
bool RFbRawSetPower( bool RFbRawSetPower(
struct vnt_private *, struct vnt_private *,
unsigned char byPwr, unsigned char byPwr,
...@@ -94,7 +94,7 @@ RFvRSSITodBm( ...@@ -94,7 +94,7 @@ RFvRSSITodBm(
); );
//{{ RobertYu: 20050104 //{{ RobertYu: 20050104
bool RFbAL7230SelectChannelPostProcess(struct vnt_private *, unsigned char byOldChannel, unsigned char byNewChannel); bool RFbAL7230SelectChannelPostProcess(struct vnt_private *, u16, u16);
//}} RobertYu //}} RobertYu
#endif // __RF_H__ #endif // __RF_H__
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