]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6655: common variable size channel numbers to ieee80211_channel->hw_value
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 19 Jan 2015 18:24:11 +0000 (18:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 11:59:16 +0000 (19:59 +0800)
hw_value is u16 so fix all to the same size.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/channel.c
drivers/staging/vt6655/device.h
drivers/staging/vt6655/rf.c
drivers/staging/vt6655/rf.h

index 3fc09f4b3842d82f74ddf5670ea798451b5157d7..3c17725d5910d1c2ccae323b3a56fc48b93bfbc9 100644 (file)
@@ -197,11 +197,11 @@ bool set_channel(void *pDeviceHandler, struct ieee80211_channel *ch)
 
        if (pDevice->byRFType == RF_AIROHA7230)
                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,
-                                   (unsigned char)ch->hw_value);
+                                   ch->hw_value);
 
        /* Init Synthesizer Table */
        if (pDevice->bEnablePSMode)
index 83efbfb57c798ef2189aa73e67ff2afbb48ba160..96d8e62a60fc4e2b7097295056ed829b6ad441ce 100644 (file)
@@ -367,7 +367,7 @@ struct vnt_private {
        bool bIsBeaconBufReadySet;
        unsigned int    cbBeaconBufReadySetCnt;
        bool bFixRate;
-       unsigned char byCurrentCh;
+       u16 byCurrentCh;
 
        bool bAES;
 
index 32ef99341e204f7f6e84092a85c2dc9d20c2f515..27841aa0ca87882997536290932874391e731648 100644 (file)
@@ -651,7 +651,8 @@ bool RFbInit(
  * 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;
 
@@ -687,7 +688,8 @@ bool RFbSelectChannel(struct vnt_private *priv, unsigned char byRFType, unsigned
  * 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;
        int   ii;
@@ -767,7 +769,7 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, unsig
 bool RFbSetPower(
        struct vnt_private *priv,
        unsigned int uRATE,
-       unsigned int uCH
+       u16 uCH
 )
 {
        bool bResult = true;
@@ -937,8 +939,8 @@ RFvRSSITodBm(
 /* Post processing for the 11b/g and 11a.
  * for save time on changing Reg2,3,5,7,10,12,15 */
 bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv,
-                                      unsigned char byOldChannel,
-                                      unsigned char byNewChannel)
+                                      u16 byOldChannel,
+                                      u16 byNewChannel)
 {
        bool bResult;
 
index 8a6e2cfedaa54bd5a1d5ebb52af8b2cada7666d0..2ea21e2b00f2ce93aff6123925f2f6e0a1c09936 100644 (file)
 /*---------------------  Export Functions  --------------------------*/
 
 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(
        struct vnt_private *
 );
-bool RFvWriteWakeProgSyn(struct vnt_private *, unsigned char byRFType, unsigned int uChannel);
-bool RFbSetPower(struct vnt_private *, unsigned int uRATE, unsigned int uCH);
+bool RFvWriteWakeProgSyn(struct vnt_private *, unsigned char byRFType, u16);
+bool RFbSetPower(struct vnt_private *, unsigned int uRATE, u16);
 bool RFbRawSetPower(
        struct vnt_private *,
        unsigned char byPwr,
@@ -94,7 +94,7 @@ RFvRSSITodBm(
 );
 
 //{{ RobertYu: 20050104
-bool RFbAL7230SelectChannelPostProcess(struct vnt_private *, unsigned char byOldChannel, unsigned char byNewChannel);
+bool RFbAL7230SelectChannelPostProcess(struct vnt_private *, u16, u16);
 //}} RobertYu
 
 #endif // __RF_H__