Loading drivers/staging/vt6655/hostap.c +15 −14 Original line number Original line Diff line number Diff line Loading @@ -68,9 +68,9 @@ static int msglevel = MSG_LEVEL_INFO; * * */ */ 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; struct net_device *dev = pDevice->dev; int ret; int ret; const struct net_device_ops apdev_netdev_ops = { const struct net_device_ops apdev_netdev_ops = { Loading Loading @@ -130,7 +130,7 @@ static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked) * * */ */ 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); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: disabling hostapd mode\n", pDevice->dev->name); Loading Loading @@ -172,7 +172,8 @@ static int hostap_disable_hostapd(PSDevice pDevice, int rtnl_locked) * * */ */ 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) if (val < 0 || val > 1) return -EINVAL; return -EINVAL; Loading Loading @@ -201,7 +202,7 @@ int vt6655_hostap_set_hostapd(PSDevice pDevice, int val, int rtnl_locked) * Return Value: * Return Value: * * */ */ static int hostap_remove_sta(PSDevice pDevice, static int hostap_remove_sta(struct vnt_private *pDevice, struct viawget_hostapd_param *param) struct viawget_hostapd_param *param) { { unsigned int uNodeIndex; unsigned int uNodeIndex; Loading @@ -227,14 +228,14 @@ static int hostap_remove_sta(PSDevice pDevice, * Return Value: * Return Value: * * */ */ static int hostap_add_sta(PSDevice pDevice, static int hostap_add_sta(struct vnt_private *pDevice, struct viawget_hostapd_param *param) struct viawget_hostapd_param *param) { { PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; unsigned int uNodeIndex; unsigned int uNodeIndex; if (!BSSDBbIsSTAInNodeDB(pMgmt, param->sta_addr, &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); memcpy(pMgmt->sNodeDBTable[uNodeIndex].abyMACAddr, param->sta_addr, WLAN_ADDR_LEN); pMgmt->sNodeDBTable[uNodeIndex].eNodeState = NODE_ASSOC; pMgmt->sNodeDBTable[uNodeIndex].eNodeState = NODE_ASSOC; Loading Loading @@ -285,7 +286,7 @@ static int hostap_add_sta(PSDevice pDevice, * * */ */ static int hostap_get_info_sta(PSDevice pDevice, static int hostap_get_info_sta(struct vnt_private *pDevice, struct viawget_hostapd_param *param) struct viawget_hostapd_param *param) { { PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; Loading Loading @@ -314,7 +315,7 @@ static int hostap_get_info_sta(PSDevice pDevice, * Return Value: * 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) struct viawget_hostapd_param *param) { { PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; Loading Loading @@ -345,7 +346,7 @@ static int hostap_set_flags_sta(PSDevice pDevice, * Return Value: * 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) struct viawget_hostapd_param *param) { { PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; Loading Loading @@ -389,7 +390,7 @@ static int hostap_set_generic_element(PSDevice pDevice, * * */ */ static void hostap_flush_sta(PSDevice pDevice) static void hostap_flush_sta(struct vnt_private *pDevice) { { // reserved node index =0 for multicast node. // reserved node index =0 for multicast node. BSSvClearNodeDBTable(pDevice, 1); BSSvClearNodeDBTable(pDevice, 1); Loading @@ -409,7 +410,7 @@ static void hostap_flush_sta(PSDevice pDevice) * Return Value: * Return Value: * * */ */ static int hostap_set_encryption(PSDevice pDevice, static int hostap_set_encryption(struct vnt_private *pDevice, struct viawget_hostapd_param *param, struct viawget_hostapd_param *param, int param_len) int param_len) { { Loading Loading @@ -635,7 +636,7 @@ static int hostap_set_encryption(PSDevice pDevice, * Return Value: * Return Value: * * */ */ static int hostap_get_encryption(PSDevice pDevice, static int hostap_get_encryption(struct vnt_private *pDevice, struct viawget_hostapd_param *param, struct viawget_hostapd_param *param, int param_len) int param_len) { { Loading Loading @@ -675,7 +676,7 @@ static int hostap_get_encryption(PSDevice pDevice, * Return Value: * 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; struct viawget_hostapd_param *param; int ret = 0; int ret = 0; Loading drivers/staging/vt6655/hostap.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -52,7 +52,7 @@ #define ARPHRD_IEEE80211 801 #define ARPHRD_IEEE80211 801 #endif #endif int vt6655_hostap_set_hostapd(PSDevice pDevice, int val, int rtnl_locked); int vt6655_hostap_set_hostapd(struct vnt_private *, int val, int rtnl_locked); int vt6655_hostap_ioctl(PSDevice pDevice, struct iw_point *p); int vt6655_hostap_ioctl(struct vnt_private *, struct iw_point *p); #endif // __HOSTAP_H__ #endif // __HOSTAP_H__ drivers/staging/vt6655/ioctl.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -44,7 +44,7 @@ static int msglevel = MSG_LEVEL_INFO; SWPAResult wpa_Result; SWPAResult wpa_Result; #endif #endif int private_ioctl(PSDevice pDevice, struct ifreq *rq) int private_ioctl(struct vnt_private *pDevice, struct ifreq *rq) { { PSCmdRequest pReq = (PSCmdRequest)rq; PSCmdRequest pReq = (PSCmdRequest)rq; PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; Loading drivers/staging/vt6655/ioctl.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -31,6 +31,6 @@ #include "device.h" #include "device.h" int private_ioctl(PSDevice pDevice, struct ifreq *rq); int private_ioctl(struct vnt_private *, struct ifreq *rq); #endif // __IOCTL_H__ #endif // __IOCTL_H__ drivers/staging/vt6655/iwctl.c +30 −30 Original line number Original line Diff line number Diff line Loading @@ -76,7 +76,7 @@ static int msglevel = MSG_LEVEL_INFO; struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev) 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; long ldBm; pDevice->wstats.status = pDevice->eOPMode; pDevice->wstats.status = pDevice->eOPMode; Loading Loading @@ -134,7 +134,7 @@ static int iwctl_siwscan(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); struct iw_scan_req *req = (struct iw_scan_req *)extra; struct iw_scan_req *req = (struct iw_scan_req *)extra; unsigned char abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; unsigned char abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; Loading Loading @@ -198,7 +198,7 @@ static int iwctl_giwscan(struct net_device *dev, char *extra) char *extra) { { int ii, jj, kk; int ii, jj, kk; PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PKnownBSS pBSS; PKnownBSS pBSS; PWLAN_IE_SSID pItemSSID; PWLAN_IE_SSID pItemSSID; Loading Loading @@ -350,7 +350,7 @@ int iwctl_siwfreq(struct net_device *dev, struct iw_freq *wrq, struct iw_freq *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWFREQ\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWFREQ\n"); Loading Loading @@ -398,7 +398,7 @@ int iwctl_giwfreq(struct net_device *dev, struct iw_freq *wrq, struct iw_freq *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFREQ\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFREQ\n"); Loading Loading @@ -429,7 +429,7 @@ int iwctl_siwmode(struct net_device *dev, __u32 *wmode, __u32 *wmode, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int rc = 0; int rc = 0; Loading Loading @@ -495,7 +495,7 @@ int iwctl_giwmode(struct net_device *dev, __u32 *wmode, __u32 *wmode, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWMODE\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWMODE\n"); Loading Loading @@ -635,7 +635,7 @@ int iwctl_siwap(struct net_device *dev, struct sockaddr *wrq, struct sockaddr *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int rc = 0; int rc = 0; unsigned char ZeroBSSID[WLAN_BSSID_LEN] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; unsigned char ZeroBSSID[WLAN_BSSID_LEN] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; Loading Loading @@ -694,7 +694,7 @@ int iwctl_giwap(struct net_device *dev, struct sockaddr *wrq, struct sockaddr *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAP\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAP\n"); Loading Loading @@ -728,7 +728,7 @@ int iwctl_giwaplist(struct net_device *dev, struct iw_quality *q = NULL; struct iw_quality *q = NULL; PKnownBSS pBSS = NULL; PKnownBSS pBSS = NULL; PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAPLIST\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAPLIST\n"); Loading Loading @@ -794,7 +794,7 @@ int iwctl_siwessid(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PWLAN_IE_SSID pItemSSID; PWLAN_IE_SSID pItemSSID; //2008-0409-05, <Add> by Einsn Liu //2008-0409-05, <Add> by Einsn Liu Loading Loading @@ -903,7 +903,7 @@ int iwctl_giwessid(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PWLAN_IE_SSID pItemSSID; PWLAN_IE_SSID pItemSSID; Loading Loading @@ -933,7 +933,7 @@ int iwctl_siwrate(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; u8 brate = 0; u8 brate = 0; int i; int i; Loading Loading @@ -1014,7 +1014,7 @@ int iwctl_giwrate(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); //2007-0118-05,<Mark> by EinsnLiu //2007-0118-05,<Mark> by EinsnLiu //Mark the unnecessary sentences. //Mark the unnecessary sentences. // PSMgmtObject pMgmt = &(pDevice->sMgmtObj); // PSMgmtObject pMgmt = &(pDevice->sMgmtObj); Loading Loading @@ -1059,7 +1059,7 @@ int iwctl_siwrts(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRTS\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRTS\n"); Loading Loading @@ -1088,7 +1088,7 @@ int iwctl_giwrts(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRTS\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRTS\n"); wrq->value = pDevice->wRTSThreshold; wrq->value = pDevice->wRTSThreshold; Loading @@ -1107,7 +1107,7 @@ int iwctl_siwfrag(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; int fthr = wrq->value; int fthr = wrq->value; Loading @@ -1134,7 +1134,7 @@ int iwctl_giwfrag(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFRAG\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFRAG\n"); wrq->value = pDevice->wFragmentationThreshold; wrq->value = pDevice->wFragmentationThreshold; Loading @@ -1152,7 +1152,7 @@ int iwctl_siwretry(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRETRY\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRETRY\n"); Loading Loading @@ -1187,7 +1187,7 @@ int iwctl_giwretry(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRETRY\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRETRY\n"); wrq->disabled = 0; // Can't be disabled wrq->disabled = 0; // Can't be disabled Loading Loading @@ -1217,7 +1217,7 @@ int iwctl_siwencode(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); unsigned long dwKeyIndex = (unsigned long)(wrq->flags & IW_ENCODE_INDEX); unsigned long dwKeyIndex = (unsigned long)(wrq->flags & IW_ENCODE_INDEX); int ii, uu, rc = 0; int ii, uu, rc = 0; Loading Loading @@ -1348,7 +1348,7 @@ int iwctl_giwencode(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); char abyKey[WLAN_WEP232_KEYLEN]; char abyKey[WLAN_WEP232_KEYLEN]; Loading Loading @@ -1410,7 +1410,7 @@ int iwctl_siwpower(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int rc = 0; int rc = 0; Loading Loading @@ -1460,7 +1460,7 @@ int iwctl_giwpower(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int mode = pDevice->ePSMode; int mode = pDevice->ePSMode; Loading Loading @@ -1490,7 +1490,7 @@ int iwctl_giwsens(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); long ldBm; long ldBm; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWSENS\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWSENS\n"); Loading @@ -1514,7 +1514,7 @@ int iwctl_siwauth(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int ret = 0; int ret = 0; static int wpa_version = 0; //must be static to save the last value,einsn liu static int wpa_version = 0; //must be static to save the last value,einsn liu Loading Loading @@ -1623,7 +1623,7 @@ int iwctl_siwgenie(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char __user *extra) char __user *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int ret = 0; int ret = 0; char length; char length; Loading Loading @@ -1663,7 +1663,7 @@ int iwctl_giwgenie(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char __user *extra) char __user *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int ret = 0; int ret = 0; int space = wrq->length; int space = wrq->length; Loading @@ -1688,7 +1688,7 @@ int iwctl_siwencodeext(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) 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 iw_encode_ext *ext = (struct iw_encode_ext *)extra; struct viawget_wpa_param *param = NULL; struct viawget_wpa_param *param = NULL; //original member //original member Loading Loading @@ -1810,7 +1810,7 @@ int iwctl_siwmlme(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char __user *extra) char __user *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); struct iw_mlme mime; struct iw_mlme mime; Loading Loading
drivers/staging/vt6655/hostap.c +15 −14 Original line number Original line Diff line number Diff line Loading @@ -68,9 +68,9 @@ static int msglevel = MSG_LEVEL_INFO; * * */ */ 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; struct net_device *dev = pDevice->dev; int ret; int ret; const struct net_device_ops apdev_netdev_ops = { const struct net_device_ops apdev_netdev_ops = { Loading Loading @@ -130,7 +130,7 @@ static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked) * * */ */ 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); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: disabling hostapd mode\n", pDevice->dev->name); Loading Loading @@ -172,7 +172,8 @@ static int hostap_disable_hostapd(PSDevice pDevice, int rtnl_locked) * * */ */ 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) if (val < 0 || val > 1) return -EINVAL; return -EINVAL; Loading Loading @@ -201,7 +202,7 @@ int vt6655_hostap_set_hostapd(PSDevice pDevice, int val, int rtnl_locked) * Return Value: * Return Value: * * */ */ static int hostap_remove_sta(PSDevice pDevice, static int hostap_remove_sta(struct vnt_private *pDevice, struct viawget_hostapd_param *param) struct viawget_hostapd_param *param) { { unsigned int uNodeIndex; unsigned int uNodeIndex; Loading @@ -227,14 +228,14 @@ static int hostap_remove_sta(PSDevice pDevice, * Return Value: * Return Value: * * */ */ static int hostap_add_sta(PSDevice pDevice, static int hostap_add_sta(struct vnt_private *pDevice, struct viawget_hostapd_param *param) struct viawget_hostapd_param *param) { { PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; unsigned int uNodeIndex; unsigned int uNodeIndex; if (!BSSDBbIsSTAInNodeDB(pMgmt, param->sta_addr, &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); memcpy(pMgmt->sNodeDBTable[uNodeIndex].abyMACAddr, param->sta_addr, WLAN_ADDR_LEN); pMgmt->sNodeDBTable[uNodeIndex].eNodeState = NODE_ASSOC; pMgmt->sNodeDBTable[uNodeIndex].eNodeState = NODE_ASSOC; Loading Loading @@ -285,7 +286,7 @@ static int hostap_add_sta(PSDevice pDevice, * * */ */ static int hostap_get_info_sta(PSDevice pDevice, static int hostap_get_info_sta(struct vnt_private *pDevice, struct viawget_hostapd_param *param) struct viawget_hostapd_param *param) { { PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; Loading Loading @@ -314,7 +315,7 @@ static int hostap_get_info_sta(PSDevice pDevice, * Return Value: * 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) struct viawget_hostapd_param *param) { { PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; Loading Loading @@ -345,7 +346,7 @@ static int hostap_set_flags_sta(PSDevice pDevice, * Return Value: * 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) struct viawget_hostapd_param *param) { { PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; Loading Loading @@ -389,7 +390,7 @@ static int hostap_set_generic_element(PSDevice pDevice, * * */ */ static void hostap_flush_sta(PSDevice pDevice) static void hostap_flush_sta(struct vnt_private *pDevice) { { // reserved node index =0 for multicast node. // reserved node index =0 for multicast node. BSSvClearNodeDBTable(pDevice, 1); BSSvClearNodeDBTable(pDevice, 1); Loading @@ -409,7 +410,7 @@ static void hostap_flush_sta(PSDevice pDevice) * Return Value: * Return Value: * * */ */ static int hostap_set_encryption(PSDevice pDevice, static int hostap_set_encryption(struct vnt_private *pDevice, struct viawget_hostapd_param *param, struct viawget_hostapd_param *param, int param_len) int param_len) { { Loading Loading @@ -635,7 +636,7 @@ static int hostap_set_encryption(PSDevice pDevice, * Return Value: * Return Value: * * */ */ static int hostap_get_encryption(PSDevice pDevice, static int hostap_get_encryption(struct vnt_private *pDevice, struct viawget_hostapd_param *param, struct viawget_hostapd_param *param, int param_len) int param_len) { { Loading Loading @@ -675,7 +676,7 @@ static int hostap_get_encryption(PSDevice pDevice, * Return Value: * 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; struct viawget_hostapd_param *param; int ret = 0; int ret = 0; Loading
drivers/staging/vt6655/hostap.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -52,7 +52,7 @@ #define ARPHRD_IEEE80211 801 #define ARPHRD_IEEE80211 801 #endif #endif int vt6655_hostap_set_hostapd(PSDevice pDevice, int val, int rtnl_locked); int vt6655_hostap_set_hostapd(struct vnt_private *, int val, int rtnl_locked); int vt6655_hostap_ioctl(PSDevice pDevice, struct iw_point *p); int vt6655_hostap_ioctl(struct vnt_private *, struct iw_point *p); #endif // __HOSTAP_H__ #endif // __HOSTAP_H__
drivers/staging/vt6655/ioctl.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -44,7 +44,7 @@ static int msglevel = MSG_LEVEL_INFO; SWPAResult wpa_Result; SWPAResult wpa_Result; #endif #endif int private_ioctl(PSDevice pDevice, struct ifreq *rq) int private_ioctl(struct vnt_private *pDevice, struct ifreq *rq) { { PSCmdRequest pReq = (PSCmdRequest)rq; PSCmdRequest pReq = (PSCmdRequest)rq; PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt; Loading
drivers/staging/vt6655/ioctl.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -31,6 +31,6 @@ #include "device.h" #include "device.h" int private_ioctl(PSDevice pDevice, struct ifreq *rq); int private_ioctl(struct vnt_private *, struct ifreq *rq); #endif // __IOCTL_H__ #endif // __IOCTL_H__
drivers/staging/vt6655/iwctl.c +30 −30 Original line number Original line Diff line number Diff line Loading @@ -76,7 +76,7 @@ static int msglevel = MSG_LEVEL_INFO; struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev) 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; long ldBm; pDevice->wstats.status = pDevice->eOPMode; pDevice->wstats.status = pDevice->eOPMode; Loading Loading @@ -134,7 +134,7 @@ static int iwctl_siwscan(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); struct iw_scan_req *req = (struct iw_scan_req *)extra; struct iw_scan_req *req = (struct iw_scan_req *)extra; unsigned char abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; unsigned char abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; Loading Loading @@ -198,7 +198,7 @@ static int iwctl_giwscan(struct net_device *dev, char *extra) char *extra) { { int ii, jj, kk; int ii, jj, kk; PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PKnownBSS pBSS; PKnownBSS pBSS; PWLAN_IE_SSID pItemSSID; PWLAN_IE_SSID pItemSSID; Loading Loading @@ -350,7 +350,7 @@ int iwctl_siwfreq(struct net_device *dev, struct iw_freq *wrq, struct iw_freq *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWFREQ\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWFREQ\n"); Loading Loading @@ -398,7 +398,7 @@ int iwctl_giwfreq(struct net_device *dev, struct iw_freq *wrq, struct iw_freq *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFREQ\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFREQ\n"); Loading Loading @@ -429,7 +429,7 @@ int iwctl_siwmode(struct net_device *dev, __u32 *wmode, __u32 *wmode, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int rc = 0; int rc = 0; Loading Loading @@ -495,7 +495,7 @@ int iwctl_giwmode(struct net_device *dev, __u32 *wmode, __u32 *wmode, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWMODE\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWMODE\n"); Loading Loading @@ -635,7 +635,7 @@ int iwctl_siwap(struct net_device *dev, struct sockaddr *wrq, struct sockaddr *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int rc = 0; int rc = 0; unsigned char ZeroBSSID[WLAN_BSSID_LEN] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; unsigned char ZeroBSSID[WLAN_BSSID_LEN] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; Loading Loading @@ -694,7 +694,7 @@ int iwctl_giwap(struct net_device *dev, struct sockaddr *wrq, struct sockaddr *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAP\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAP\n"); Loading Loading @@ -728,7 +728,7 @@ int iwctl_giwaplist(struct net_device *dev, struct iw_quality *q = NULL; struct iw_quality *q = NULL; PKnownBSS pBSS = NULL; PKnownBSS pBSS = NULL; PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAPLIST\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWAPLIST\n"); Loading Loading @@ -794,7 +794,7 @@ int iwctl_siwessid(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PWLAN_IE_SSID pItemSSID; PWLAN_IE_SSID pItemSSID; //2008-0409-05, <Add> by Einsn Liu //2008-0409-05, <Add> by Einsn Liu Loading Loading @@ -903,7 +903,7 @@ int iwctl_giwessid(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PWLAN_IE_SSID pItemSSID; PWLAN_IE_SSID pItemSSID; Loading Loading @@ -933,7 +933,7 @@ int iwctl_siwrate(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; u8 brate = 0; u8 brate = 0; int i; int i; Loading Loading @@ -1014,7 +1014,7 @@ int iwctl_giwrate(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); //2007-0118-05,<Mark> by EinsnLiu //2007-0118-05,<Mark> by EinsnLiu //Mark the unnecessary sentences. //Mark the unnecessary sentences. // PSMgmtObject pMgmt = &(pDevice->sMgmtObj); // PSMgmtObject pMgmt = &(pDevice->sMgmtObj); Loading Loading @@ -1059,7 +1059,7 @@ int iwctl_siwrts(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRTS\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRTS\n"); Loading Loading @@ -1088,7 +1088,7 @@ int iwctl_giwrts(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRTS\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRTS\n"); wrq->value = pDevice->wRTSThreshold; wrq->value = pDevice->wRTSThreshold; Loading @@ -1107,7 +1107,7 @@ int iwctl_siwfrag(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; int fthr = wrq->value; int fthr = wrq->value; Loading @@ -1134,7 +1134,7 @@ int iwctl_giwfrag(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFRAG\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWFRAG\n"); wrq->value = pDevice->wFragmentationThreshold; wrq->value = pDevice->wFragmentationThreshold; Loading @@ -1152,7 +1152,7 @@ int iwctl_siwretry(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); int rc = 0; int rc = 0; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRETRY\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRETRY\n"); Loading Loading @@ -1187,7 +1187,7 @@ int iwctl_giwretry(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRETRY\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRETRY\n"); wrq->disabled = 0; // Can't be disabled wrq->disabled = 0; // Can't be disabled Loading Loading @@ -1217,7 +1217,7 @@ int iwctl_siwencode(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); unsigned long dwKeyIndex = (unsigned long)(wrq->flags & IW_ENCODE_INDEX); unsigned long dwKeyIndex = (unsigned long)(wrq->flags & IW_ENCODE_INDEX); int ii, uu, rc = 0; int ii, uu, rc = 0; Loading Loading @@ -1348,7 +1348,7 @@ int iwctl_giwencode(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); char abyKey[WLAN_WEP232_KEYLEN]; char abyKey[WLAN_WEP232_KEYLEN]; Loading Loading @@ -1410,7 +1410,7 @@ int iwctl_siwpower(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int rc = 0; int rc = 0; Loading Loading @@ -1460,7 +1460,7 @@ int iwctl_giwpower(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int mode = pDevice->ePSMode; int mode = pDevice->ePSMode; Loading Loading @@ -1490,7 +1490,7 @@ int iwctl_giwsens(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); long ldBm; long ldBm; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWSENS\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWSENS\n"); Loading @@ -1514,7 +1514,7 @@ int iwctl_siwauth(struct net_device *dev, struct iw_param *wrq, struct iw_param *wrq, char *extra) char *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int ret = 0; int ret = 0; static int wpa_version = 0; //must be static to save the last value,einsn liu static int wpa_version = 0; //must be static to save the last value,einsn liu Loading Loading @@ -1623,7 +1623,7 @@ int iwctl_siwgenie(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char __user *extra) char __user *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int ret = 0; int ret = 0; char length; char length; Loading Loading @@ -1663,7 +1663,7 @@ int iwctl_giwgenie(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char __user *extra) char __user *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); int ret = 0; int ret = 0; int space = wrq->length; int space = wrq->length; Loading @@ -1688,7 +1688,7 @@ int iwctl_siwencodeext(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char *extra) 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 iw_encode_ext *ext = (struct iw_encode_ext *)extra; struct viawget_wpa_param *param = NULL; struct viawget_wpa_param *param = NULL; //original member //original member Loading Loading @@ -1810,7 +1810,7 @@ int iwctl_siwmlme(struct net_device *dev, struct iw_point *wrq, struct iw_point *wrq, char __user *extra) char __user *extra) { { PSDevice pDevice = (PSDevice)netdev_priv(dev); struct vnt_private *pDevice = netdev_priv(dev); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj); struct iw_mlme mime; struct iw_mlme mime; Loading