*
  */
 
-static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked)
+static int hostap_enable_hostapd(struct vnt_private *pDevice, int rtnl_locked)
 {
-       PSDevice apdev_priv;
+       struct vnt_private *apdev_priv;
        struct net_device *dev = pDevice->dev;
        int ret;
        const struct net_device_ops apdev_netdev_ops = {
  *
  */
 
-static int hostap_disable_hostapd(PSDevice pDevice, int rtnl_locked)
+static int hostap_disable_hostapd(struct vnt_private *pDevice, int rtnl_locked)
 {
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: disabling hostapd mode\n", pDevice->dev->name);
 
  *
  */
 
-int vt6655_hostap_set_hostapd(PSDevice pDevice, int val, int rtnl_locked)
+int vt6655_hostap_set_hostapd(struct vnt_private *pDevice,
+                             int val, int rtnl_locked)
 {
        if (val < 0 || val > 1)
                return -EINVAL;
  * Return Value:
  *
  */
-static int hostap_remove_sta(PSDevice pDevice,
+static int hostap_remove_sta(struct vnt_private *pDevice,
                             struct viawget_hostapd_param *param)
 {
        unsigned int uNodeIndex;
  * Return Value:
  *
  */
-static int hostap_add_sta(PSDevice pDevice,
+static int hostap_add_sta(struct vnt_private *pDevice,
                          struct viawget_hostapd_param *param)
 {
        PSMgmtObject    pMgmt = pDevice->pMgmt;
        unsigned int uNodeIndex;
 
        if (!BSSDBbIsSTAInNodeDB(pMgmt, param->sta_addr, &uNodeIndex))
-               BSSvCreateOneNode((PSDevice)pDevice, &uNodeIndex);
+               BSSvCreateOneNode(pDevice, &uNodeIndex);
 
        memcpy(pMgmt->sNodeDBTable[uNodeIndex].abyMACAddr, param->sta_addr, WLAN_ADDR_LEN);
        pMgmt->sNodeDBTable[uNodeIndex].eNodeState = NODE_ASSOC;
  *
  */
 
-static int hostap_get_info_sta(PSDevice pDevice,
+static int hostap_get_info_sta(struct vnt_private *pDevice,
                               struct viawget_hostapd_param *param)
 {
        PSMgmtObject    pMgmt = pDevice->pMgmt;
  * Return Value:
  *
  */
-static int hostap_set_flags_sta(PSDevice pDevice,
+static int hostap_set_flags_sta(struct vnt_private *pDevice,
                                struct viawget_hostapd_param *param)
 {
        PSMgmtObject    pMgmt = pDevice->pMgmt;
  * Return Value:
  *
  */
-static int hostap_set_generic_element(PSDevice pDevice,
+static int hostap_set_generic_element(struct vnt_private *pDevice,
                                      struct viawget_hostapd_param *param)
 {
        PSMgmtObject    pMgmt = pDevice->pMgmt;
  *
  */
 
-static void hostap_flush_sta(PSDevice pDevice)
+static void hostap_flush_sta(struct vnt_private *pDevice)
 {
        // reserved node index =0 for multicast node.
        BSSvClearNodeDBTable(pDevice, 1);
  * Return Value:
  *
  */
-static int hostap_set_encryption(PSDevice pDevice,
+static int hostap_set_encryption(struct vnt_private *pDevice,
                                 struct viawget_hostapd_param *param,
                                 int param_len)
 {
  * Return Value:
  *
  */
-static int hostap_get_encryption(PSDevice pDevice,
+static int hostap_get_encryption(struct vnt_private *pDevice,
                                 struct viawget_hostapd_param *param,
                                 int param_len)
 {
  * Return Value:
  *
  */
-int vt6655_hostap_ioctl(PSDevice pDevice, struct iw_point *p)
+int vt6655_hostap_ioctl(struct vnt_private *pDevice, struct iw_point *p)
 {
        struct viawget_hostapd_param *param;
        int ret = 0;
 
 
 struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev)
 {
-       PSDevice pDevice = netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        long ldBm;
 
        pDevice->wstats.status = pDevice->eOPMode;
                  struct iw_point *wrq,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
        struct iw_scan_req  *req = (struct iw_scan_req *)extra;
        unsigned char abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
                  char *extra)
 {
        int ii, jj, kk;
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
        PKnownBSS           pBSS;
        PWLAN_IE_SSID       pItemSSID;
                  struct iw_freq *wrq,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        int rc = 0;
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWFREQ\n");
                  struct iw_freq *wrq,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFREQ\n");
                  __u32 *wmode,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
        int rc = 0;
 
                  __u32 *wmode,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWMODE\n");
                struct sockaddr *wrq,
                char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
        int rc = 0;
        unsigned char ZeroBSSID[WLAN_BSSID_LEN] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
                struct sockaddr *wrq,
                char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAP\n");
        struct iw_quality *q    = NULL;
        PKnownBSS pBSS          = NULL;
 
-       PSDevice pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAPLIST\n");
                   struct iw_point *wrq,
                   char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
        PWLAN_IE_SSID       pItemSSID;
        //2008-0409-05, <Add> by Einsn Liu
                   struct iw_point *wrq,
                   char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
        PWLAN_IE_SSID       pItemSSID;
 
                  struct iw_param *wrq,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        int rc = 0;
        u8      brate = 0;
        int     i;
                  struct iw_param *wrq,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
 //2007-0118-05,<Mark> by EinsnLiu
 //Mark the unnecessary sentences.
 //    PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
                 struct iw_param *wrq,
                 char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        int rc = 0;
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRTS\n");
                 struct iw_param *wrq,
                 char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRTS\n");
        wrq->value = pDevice->wRTSThreshold;
                  struct iw_param *wrq,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        int rc = 0;
        int fthr = wrq->value;
 
                  struct iw_param *wrq,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFRAG\n");
        wrq->value = pDevice->wFragmentationThreshold;
                   struct iw_param *wrq,
                   char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        int rc = 0;
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRETRY\n");
                   struct iw_param *wrq,
                   char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRETRY\n");
        wrq->disabled = 0;      // Can't be disabled
                    struct iw_point *wrq,
                    char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
        unsigned long dwKeyIndex = (unsigned long)(wrq->flags & IW_ENCODE_INDEX);
        int ii, uu, rc = 0;
                    struct iw_point *wrq,
                    char *extra)
 {
-       PSDevice                        pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject            pMgmt = &(pDevice->sMgmtObj);
        char abyKey[WLAN_WEP232_KEYLEN];
 
                   struct iw_param *wrq,
                   char *extra)
 {
-       PSDevice            pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
        int rc = 0;
 
                   struct iw_param *wrq,
                   char *extra)
 {
-       PSDevice            pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject        pMgmt = &(pDevice->sMgmtObj);
        int mode = pDevice->ePSMode;
 
                  struct iw_param *wrq,
                  char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        long ldBm;
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWSENS\n");
                  struct iw_param *wrq,
                  char *extra)
 {
-       PSDevice                        pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject    pMgmt = &(pDevice->sMgmtObj);
        int ret = 0;
        static int wpa_version = 0;  //must be static to save the last value,einsn liu
                   struct iw_point *wrq,
                   char __user *extra)
 {
-       PSDevice                        pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject    pMgmt = &(pDevice->sMgmtObj);
        int ret = 0;
        char length;
                   struct iw_point *wrq,
                   char __user *extra)
 {
-       PSDevice                        pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject    pMgmt = &(pDevice->sMgmtObj);
        int ret = 0;
        int space = wrq->length;
                       struct iw_point *wrq,
                       char *extra)
 {
-       PSDevice                pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
        struct viawget_wpa_param *param = NULL;
 //original member
                  struct iw_point *wrq,
                  char __user *extra)
 {
-       PSDevice                        pDevice = (PSDevice)netdev_priv(dev);
+       struct vnt_private *pDevice = netdev_priv(dev);
        PSMgmtObject    pMgmt = &(pDevice->sMgmtObj);
        struct iw_mlme mime;