staging: vt6656: rename CARDvSetBSSMode to vnt_set_bss_mode
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 30 May 2014 22:22:54 +0000 (23:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:56:49 +0000 (15:56 -0700)
drop card and rename to vnt_set_bss_mode

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 366d7d5b37b9bd63e78172b61ca3c2252996e9a2..ffd6a01e609bbfb7c2fdb13f66cc455e8738f304 100644 (file)
@@ -829,7 +829,7 @@ int vnt_radio_power_on(struct vnt_private *priv)
        return ret;
 }
 
-void CARDvSetBSSMode(struct vnt_private *priv)
+void vnt_set_bss_mode(struct vnt_private *priv)
 {
        if (priv->byRFType == RF_AIROHA7230 && priv->byBBType == BB_TYPE_11A)
                MACvSetBBType(priv, BB_TYPE_11G);
index 150f870a236282a0021f573232a67e43932240d3..8c6f67d5a9675b05cdf5a780297d5d73a9bd66bc 100644 (file)
@@ -61,6 +61,6 @@ u64 vnt_get_tsf_offset(u8 byRxRate, u64 qwTSF1, u64 qwTSF2);
 int vnt_radio_power_off(struct vnt_private *);
 int vnt_radio_power_on(struct vnt_private *);
 u8 vnt_get_pkt_type(struct vnt_private *);
-void CARDvSetBSSMode(struct vnt_private *pDevice);
+void vnt_set_bss_mode(struct vnt_private *);
 
 #endif /* __CARD_H__ */
index 09da861263c3249aeb781027d83ad94364fca125..bdb9de8b74406b5637fe5e60538beeaad82a4c2c 100644 (file)
@@ -525,7 +525,7 @@ static int device_init_registers(struct vnt_private *pDevice)
        }
 
        BBvSetShortSlotTime(pDevice);
-       CARDvSetBSSMode(pDevice);
+       vnt_set_bss_mode(pDevice);
 
        pDevice->byBBVGACurrent = pDevice->abyBBVGA[0];
        pDevice->byBBVGANew = pDevice->byBBVGACurrent;
index 191e7887198fecbedbca9f1eaff8925251382319..acd5be76a60af79fa107ae3369a5df55173d13a4 100644 (file)
@@ -333,11 +333,11 @@ void vRunCommand(struct work_struct *work)
                        if ((pDevice->byBBType != BB_TYPE_11A) &&
                            (pMgmt->uScanChannel > CB_MAX_CHANNEL_24G)) {
                                pDevice->byBBType = BB_TYPE_11A;
-                               CARDvSetBSSMode(pDevice);
+                               vnt_set_bss_mode(pDevice);
                        } else if ((pDevice->byBBType == BB_TYPE_11A) &&
                                   (pMgmt->uScanChannel <= CB_MAX_CHANNEL_24G)) {
                                pDevice->byBBType = BB_TYPE_11G;
-                               CARDvSetBSSMode(pDevice);
+                               vnt_set_bss_mode(pDevice);
                        }
                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Scanning....  channel: [%d]\n", pMgmt->uScanChannel);
                        // Set channel
@@ -377,7 +377,7 @@ void vRunCommand(struct work_struct *work)
                // Set Baseband's sensitivity back.
                if (pDevice->byBBType != pDevice->byScanBBType) {
                        pDevice->byBBType = pDevice->byScanBBType;
-                       CARDvSetBSSMode(pDevice);
+                       vnt_set_bss_mode(pDevice);
                }
 
                BBvSetShortSlotTime(pDevice);
index 1646aafa774faf4576bab6a1737aa843c5a22ef2..0ba292c2e6e177e8a53bbca0fde0ccc2f138691d 100644 (file)
@@ -2081,7 +2081,7 @@ void vMgrCreateOwnIBSS(struct vnt_private *pDevice, PCMD_STATUS pStatus)
     // vUpdateIFS() use pDevice->bShortSlotTime as parameter so it must be called
     // after setting ShortSlotTime.
     // CARDvSetBSSMode call vUpdateIFS()
-    CARDvSetBSSMode(pDevice);
+    vnt_set_bss_mode(pDevice);
 
     if (pMgmt->eConfigMode == WMAC_CONFIG_AP) {
         MACvRegBitsOn(pDevice, MAC_REG_HOSTCR, HOSTCR_AP);
@@ -2601,7 +2601,7 @@ static void s_vMgrSynchBSS(struct vnt_private *pDevice, u32 uBSSMode,
             pMgmt->eCurrentPHYMode = PHY_TYPE_11A;
             pDevice->bShortSlotTime = true;
             BBvSetShortSlotTime(pDevice);
-            CARDvSetBSSMode(pDevice);
+           vnt_set_bss_mode(pDevice);
         } else {
             return;
         }
@@ -2613,7 +2613,7 @@ static void s_vMgrSynchBSS(struct vnt_private *pDevice, u32 uBSSMode,
             pMgmt->eCurrentPHYMode = PHY_TYPE_11B;
             pDevice->bShortSlotTime = false;
             BBvSetShortSlotTime(pDevice);
-            CARDvSetBSSMode(pDevice);
+           vnt_set_bss_mode(pDevice);
         } else {
             return;
         }
@@ -2624,12 +2624,12 @@ static void s_vMgrSynchBSS(struct vnt_private *pDevice, u32 uBSSMode,
             pMgmt->eCurrentPHYMode = PHY_TYPE_11G;
             pDevice->bShortSlotTime = true;
             BBvSetShortSlotTime(pDevice);
-            CARDvSetBSSMode(pDevice);
+           vnt_set_bss_mode(pDevice);
         } else if (pDevice->eConfigPHYMode == PHY_TYPE_11B) {
             pDevice->byBBType = BB_TYPE_11B;
             pDevice->bShortSlotTime = false;
             BBvSetShortSlotTime(pDevice);
-            CARDvSetBSSMode(pDevice);
+           vnt_set_bss_mode(pDevice);
         } else {
             return;
         }