staging: vt6656: rename CARDbSetMediaChannel to vnt_set_channel
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 30 May 2014 15:27:40 +0000 (16:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:55:42 +0000 (15:55 -0700)
Drop card and media and just use vnt_set_channel.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c
drivers/staging/vt6656/card.h
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/wcmd.c
drivers/staging/vt6656/wmgr.c

index d662e5431daddc66629b951a64de5eb312dc32af..f8ba75bcfc16673679f6a5e2548960fc8a882002 100644 (file)
@@ -75,7 +75,7 @@ static const u16 cwRXBCNTSFOff[MAX_RATE] =
  *  Out:
  *      none
  */
-void CARDbSetMediaChannel(struct vnt_private *priv, u32 connection_channel)
+void vnt_set_channel(struct vnt_private *priv, u32 connection_channel)
 {
 
        if (priv->byBBType == BB_TYPE_11A) {
index ac734714c7d1c5fc667dd09e61dcb0cd29f3809f..06498ef82885f9f24c752dd07caa15a3d55af0ac 100644 (file)
@@ -45,7 +45,7 @@ typedef enum _CARD_PHY_TYPE {
 
 struct vnt_private;
 
-void CARDbSetMediaChannel(struct vnt_private *pDevice, u32 uConnectionChannel);
+void vnt_set_channel(struct vnt_private *, u32);
 void CARDvSetRSPINF(struct vnt_private *, u8);
 void vUpdateIFS(struct vnt_private *);
 void CARDvUpdateBasicTopRate(struct vnt_private *);
index e18071f121c5ef009657ff83656338800056b84f..aca486dc391d188db3ac53004d2663ba5e964d10 100644 (file)
@@ -500,7 +500,8 @@ static int device_init_registers(struct vnt_private *pDevice)
        pMgmt->eScanType = WMAC_SCAN_PASSIVE;
        pMgmt->uCurrChannel = pDevice->uChannel;
        pMgmt->uIBSSChannel = pDevice->uChannel;
-       CARDbSetMediaChannel(pDevice, pMgmt->uCurrChannel);
+
+       vnt_set_channel(pDevice, pMgmt->uCurrChannel);
 
        /* get permanent network address */
        memcpy(pDevice->abyPermanentNetAddr, init_rsp->net_addr, 6);
index da72d4df6fcaf54512d584187bac9c873a54201e..cec6fc6dc6b707c24563627e979dba8722cb21d6 100644 (file)
@@ -341,7 +341,7 @@ void vRunCommand(struct work_struct *work)
                        }
                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Scanning....  channel: [%d]\n", pMgmt->uScanChannel);
                        // Set channel
-                       CARDbSetMediaChannel(pDevice, pMgmt->uScanChannel);
+                       vnt_set_channel(pDevice, pMgmt->uScanChannel);
                        // Set Baseband to be more sensitive.
 
                        BBvSetShortSlotTime(pDevice);
@@ -387,7 +387,7 @@ void vRunCommand(struct work_struct *work)
                // Set channel back
                vAdHocBeaconRestart(pDevice);
                // Set channel back
-               CARDbSetMediaChannel(pDevice, pMgmt->uCurrChannel);
+               vnt_set_channel(pDevice, pMgmt->uCurrChannel);
                // Set Filter
                if (pMgmt->bCurrBSSIDFilterOn) {
                        MACvRegBitsOn(pDevice, MAC_REG_RCR, RCR_BSSID);
@@ -876,7 +876,7 @@ void vRunCommand(struct work_struct *work)
                break;
 
        case WLAN_CMD_11H_CHSW_START:
-               CARDbSetMediaChannel(pDevice, pDevice->byNewChannel);
+               vnt_set_channel(pDevice, pDevice->byNewChannel);
                pDevice->bChannelSwitch = false;
                pMgmt->uCurrChannel = pDevice->byNewChannel;
                pDevice->bStopDataPkt = false;
index 18723eab93d2b5bf1048c2b145ea9c72ac0c7309..c30782fefbd29a1bc4f3bc1ac8814e74f18d3302 100644 (file)
@@ -2059,7 +2059,7 @@ void vMgrCreateOwnIBSS(struct vnt_private *pDevice, PCMD_STATUS pStatus)
         pMgmt->uIBSSChannel = DEFAULT_IBSS_CHANNEL;
 
     // set channel and clear NAV
-    CARDbSetMediaChannel(pDevice, pMgmt->uIBSSChannel);
+    vnt_set_channel(pDevice, pMgmt->uIBSSChannel);
     pMgmt->uCurrChannel = pMgmt->uIBSSChannel;
 
     pDevice->byPreambleType = pDevice->byShortPreamble;
@@ -2642,7 +2642,7 @@ static void s_vMgrSynchBSS(struct vnt_private *pDevice, u32 uBSSMode,
     }
 
     // set channel and clear NAV
-    CARDbSetMediaChannel(pDevice, pCurr->uChannel);
+    vnt_set_channel(pDevice, pCurr->uChannel);
     pMgmt->uCurrChannel = pCurr->uChannel;
     DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "<----s_bSynchBSS Set Channel [%d]\n", pCurr->uChannel);