]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: vt6656: rename MACvRegBitsOff to vnt_mac_reg_bits_off
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 31 May 2014 10:50:41 +0000 (11:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:57:37 +0000 (15:57 -0700)
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/mac.c
drivers/staging/vt6656/mac.h
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/power.c
drivers/staging/vt6656/wcmd.c
drivers/staging/vt6656/wmgr.c

index 03b0cf3626e89df8d429d26b0d0e59cbd3624c51..4e3f34a1c73a217e3ebd140c79776b0a6acd955a 100644 (file)
@@ -92,7 +92,7 @@ void vnt_set_channel(struct vnt_private *priv, u32 connection_channel)
        MACvRegBitsOn(priv, MAC_REG_MACCR, MACCR_CLRNAV);
 
        /* Set Channel[7] = 0 to tell H/W channel is changing now. */
-       MACvRegBitsOff(priv, MAC_REG_CHANNEL, 0xb0);
+       vnt_mac_reg_bits_off(priv, MAC_REG_CHANNEL, 0xb0);
 
        vnt_control_out(priv, MESSAGE_TYPE_SELECT_CHANNLE,
                                        connection_channel, 0, 0, NULL);
@@ -777,12 +777,12 @@ int vnt_radio_power_off(struct vnt_private *priv)
        case RF_VT3226:
        case RF_VT3226D0:
        case RF_VT3342A0:
-               MACvRegBitsOff(priv, MAC_REG_SOFTPWRCTL,
+               vnt_mac_reg_bits_off(priv, MAC_REG_SOFTPWRCTL,
                                (SOFTPWRCTL_SWPE2 | SOFTPWRCTL_SWPE3));
                break;
        }
 
-       MACvRegBitsOff(priv, MAC_REG_HOSTCR, HOSTCR_RXON);
+       vnt_mac_reg_bits_off(priv, MAC_REG_HOSTCR, HOSTCR_RXON);
 
        BBvSetDeepSleep(priv);
 
index 2d5121ab6d6dd41729d00ffd30e598b9645a734a..cf62ddfa41ea882dc78d43536ac83c2d209c8ae4 100644 (file)
@@ -147,7 +147,7 @@ void vnt_mac_set_keyentry(struct vnt_private *priv, u16 key_ctl, u32 entry_idx,
                (u16)key_idx, sizeof(struct vnt_mac_set_key), (u8 *)&set_key);
 }
 
-void MACvRegBitsOff(struct vnt_private *priv, u8 reg_ofs, u8 bits)
+void vnt_mac_reg_bits_off(struct vnt_private *priv, u8 reg_ofs, u8 bits)
 {
        u8 data[2];
 
index 331c75cd62ae89e456a4fcebfffee81e8ab444f5..a12f88392694a29c0cedf5e015f50071e480fdf1 100644 (file)
@@ -419,7 +419,7 @@ void vnt_mac_shutdown(struct vnt_private *);
 void vnt_mac_set_bb_type(struct vnt_private *, u8);
 void vnt_mac_disable_keyentry(struct vnt_private *, u8);
 void vnt_mac_set_keyentry(struct vnt_private *, u16, u32, u32, u8 *, u8 *);
-void MACvRegBitsOff(struct vnt_private *, u8, u8);
+void vnt_mac_reg_bits_off(struct vnt_private *, u8, u8);
 void MACvRegBitsOn(struct vnt_private *, u8, u8);
 void MACvWriteWord(struct vnt_private *, u8, u16);
 void MACvWriteBSSIDAddress(struct vnt_private *, u8 *);
index fea667fd8914610088818024a1cbc07b56fb0329..e8c5f973e2038e7b44dfd7c0e90b05da7e54ded1 100644 (file)
@@ -546,7 +546,8 @@ static int device_init_registers(struct vnt_private *pDevice)
                        pDevice->bHWRadioOff = true;
                        MACvRegBitsOn(pDevice, MAC_REG_GPIOCTL1, GPIO3_INTMD);
                } else {
-                       MACvRegBitsOff(pDevice, MAC_REG_GPIOCTL1, GPIO3_INTMD);
+                       vnt_mac_reg_bits_off(pDevice, MAC_REG_GPIOCTL1,
+                                                               GPIO3_INTMD);
                        pDevice->bHWRadioOff = false;
                }
 
index ddbd04695c9970d76755b9c939e68b71dbf68cd0..fc7a29b4de00c0f03f88388cdc85923f7894d840 100644 (file)
@@ -88,7 +88,7 @@ void PSvEnablePowerSaving(struct vnt_private *pDevice, u16 wListenInterval)
        if (wListenInterval >= 2) {
 
                /* clear always listen beacon */
-               MACvRegBitsOff(pDevice, MAC_REG_PSCTL, PSCTL_ALBCN);
+               vnt_mac_reg_bits_off(pDevice, MAC_REG_PSCTL, PSCTL_ALBCN);
 
                /* first time set listen next beacon */
                MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
@@ -133,7 +133,7 @@ void PSvDisablePowerSaving(struct vnt_private *pDevice)
                                                0, 0, NULL);
 
        /* clear AutoSleep */
-       MACvRegBitsOff(pDevice, MAC_REG_PSCFG, PSCFG_AUTOSLEEP);
+       vnt_mac_reg_bits_off(pDevice, MAC_REG_PSCFG, PSCFG_AUTOSLEEP);
 
        /* set always listen beacon */
        MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_ALBCN);
index acd5be76a60af79fa107ae3369a5df55173d13a4..35cf0cf39d93bda6c365c68796fb7bb1827fe17c 100644 (file)
@@ -111,7 +111,7 @@ static void vAdHocBeaconStop(struct vnt_private *pDevice)
        if (bStop) {
                //PMESG(("STOP_BEACON: IBSSChannel = %u, ScanChannel = %u\n",
                //        pMgmt->uIBSSChannel, pMgmt->uScanChannel));
-               MACvRegBitsOff(pDevice, MAC_REG_TCR, TCR_AUTOBCNTX);
+               vnt_mac_reg_bits_off(pDevice, MAC_REG_TCR, TCR_AUTOBCNTX);
        }
 
 } /* vAdHocBeaconStop */
@@ -325,7 +325,7 @@ void vRunCommand(struct work_struct *work)
                                pDevice->byScanBBType = pDevice->byBBType;  //lucas
                                pDevice->bStopDataPkt = true;
                                // Turn off RCR_BSSID filter every time
-                               MACvRegBitsOff(pDevice, MAC_REG_RCR, RCR_BSSID);
+                               vnt_mac_reg_bits_off(pDevice, MAC_REG_RCR, RCR_BSSID);
                                pDevice->byRxMode &= ~RCR_BSSID;
                        }
                        //lucas
@@ -647,7 +647,7 @@ void vRunCommand(struct work_struct *work)
                                        KERN_INFO "vMgrCreateOwnIBSS fail!\n");
                        }
                        // always turn off unicast bit
-                       MACvRegBitsOff(pDevice, MAC_REG_RCR, RCR_UNICAST);
+                       vnt_mac_reg_bits_off(pDevice, MAC_REG_RCR, RCR_UNICAST);
                        pDevice->byRxMode &= ~RCR_UNICAST;
                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "wcmd: rx_mode = %x\n", pDevice->byRxMode);
                        BSSvAddMulticastNode(pDevice);
@@ -808,7 +808,7 @@ void vRunCommand(struct work_struct *work)
                                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" WLAN_CMD_RADIO_START_ON........................\n");
                                pDevice->bHWRadioOff = false;
                                vnt_radio_power_on(pDevice);
-                               MACvRegBitsOff(pDevice, MAC_REG_GPIOCTL1, GPIO3_INTMD);
+                               vnt_mac_reg_bits_off(pDevice, MAC_REG_GPIOCTL1, GPIO3_INTMD);
 
                                vnt_mac_set_led(pDevice, LEDSTS_STS, LEDSTS_ON);
                        }
index 0ba292c2e6e177e8a53bbca0fde0ccc2f138691d..7827d792ea0c1aed68e845268e4c28e171d6382d 100644 (file)
@@ -1932,7 +1932,6 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true)
                     if (pDevice->byPreambleType != byOldPreambleType)
                        vnt_set_rspinf(pDevice, (u8)pDevice->byBBType);
 
-                     // MACvRegBitsOff(pDevice->PortOffset, MAC_REG_RCR, RCR_BSSID);
                      // set highest basic rate
                      // s_vSetHighestBasicRate(pDevice, (PWLAN_IE_SUPP_RATES)pMgmt->abyCurrSuppRates);
                      // Prepare beacon frame
@@ -2561,7 +2560,7 @@ static void s_vMgrSynchBSS(struct vnt_private *pDevice, u32 uBSSMode,
 
     // if previous mode is IBSS.
     if(pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) {
-        MACvRegBitsOff(pDevice, MAC_REG_TCR, TCR_AUTOBCNTX);
+       vnt_mac_reg_bits_off(pDevice, MAC_REG_TCR, TCR_AUTOBCNTX);
     }
 
     // Init the BSS informations
@@ -2636,7 +2635,7 @@ static void s_vMgrSynchBSS(struct vnt_private *pDevice, u32 uBSSMode,
     }
 
     if (uBSSMode == WMAC_MODE_ESS_STA) {
-        MACvRegBitsOff(pDevice, MAC_REG_HOSTCR, HOSTCR_ADHOC);
+       vnt_mac_reg_bits_off(pDevice, MAC_REG_HOSTCR, HOSTCR_ADHOC);
         MACvRegBitsOn(pDevice, MAC_REG_RCR, RCR_BSSID);
         pDevice->byRxMode |= RCR_BSSID;
         pMgmt->bCurrBSSIDFilterOn = true;