|
@@ -580,7 +580,7 @@ rt_ioctl_giwname(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
char *name, char *extra)
|
|
char *name, char *extra)
|
|
{
|
|
{
|
|
-// PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+// PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
|
|
|
|
#ifdef RT2870
|
|
#ifdef RT2870
|
|
strncpy(name, "RT2870 Wireless", IFNAMSIZ);
|
|
strncpy(name, "RT2870 Wireless", IFNAMSIZ);
|
|
@@ -592,7 +592,7 @@ int rt_ioctl_siwfreq(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
struct iw_freq *freq, char *extra)
|
|
struct iw_freq *freq, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
int chan = -1;
|
|
int chan = -1;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
@@ -632,19 +632,19 @@ int rt_ioctl_giwfreq(struct net_device *dev,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -662,7 +662,7 @@ int rt_ioctl_siwmode(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
__u32 *mode, char *extra)
|
|
__u32 *mode, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
@@ -704,19 +704,19 @@ int rt_ioctl_giwmode(struct net_device *dev,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -741,7 +741,7 @@ int rt_ioctl_siwsens(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
char *name, char *extra)
|
|
char *name, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
@@ -772,19 +772,19 @@ int rt_ioctl_giwrange(struct net_device *dev,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -866,7 +866,7 @@ int rt_ioctl_siwap(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
struct sockaddr *ap_addr, char *extra)
|
|
struct sockaddr *ap_addr, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
NDIS_802_11_MAC_ADDRESS Bssid;
|
|
NDIS_802_11_MAC_ADDRESS Bssid;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
@@ -911,19 +911,19 @@ int rt_ioctl_giwap(struct net_device *dev,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -993,7 +993,7 @@ int rt_ioctl_iwaplist(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
struct iw_point *data, char *extra)
|
|
struct iw_point *data, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
|
|
|
|
struct sockaddr addr[IW_MAX_AP];
|
|
struct sockaddr addr[IW_MAX_AP];
|
|
struct iw_quality qual[IW_MAX_AP];
|
|
struct iw_quality qual[IW_MAX_AP];
|
|
@@ -1029,7 +1029,7 @@ int rt_ioctl_siwscan(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
struct iw_point *data, char *extra)
|
|
struct iw_point *data, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
|
|
|
|
ULONG Now;
|
|
ULONG Now;
|
|
int Status = NDIS_STATUS_SUCCESS;
|
|
int Status = NDIS_STATUS_SUCCESS;
|
|
@@ -1111,7 +1111,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
|
struct iw_point *data, char *extra)
|
|
struct iw_point *data, char *extra)
|
|
{
|
|
{
|
|
|
|
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
int i=0;
|
|
int i=0;
|
|
char *current_ev = extra, *previous_ev = extra;
|
|
char *current_ev = extra, *previous_ev = extra;
|
|
char *end_buf;
|
|
char *end_buf;
|
|
@@ -1400,7 +1400,7 @@ int rt_ioctl_siwessid(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
struct iw_point *data, char *essid)
|
|
struct iw_point *data, char *essid)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
@@ -1446,19 +1446,19 @@ int rt_ioctl_giwessid(struct net_device *dev,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1499,7 +1499,7 @@ int rt_ioctl_siwnickn(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
struct iw_point *data, char *nickname)
|
|
struct iw_point *data, char *nickname)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
@@ -1527,19 +1527,19 @@ int rt_ioctl_giwnickn(struct net_device *dev,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1556,7 +1556,7 @@ int rt_ioctl_siwrts(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
struct iw_param *rts, char *extra)
|
|
struct iw_param *rts, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
u16 val;
|
|
u16 val;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
@@ -1590,19 +1590,19 @@ int rt_ioctl_giwrts(struct net_device *dev,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1624,7 +1624,7 @@ int rt_ioctl_siwfrag(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
struct iw_param *frag, char *extra)
|
|
struct iw_param *frag, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
u16 val;
|
|
u16 val;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
@@ -1656,19 +1656,19 @@ int rt_ioctl_giwfrag(struct net_device *dev,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1692,7 +1692,7 @@ int rt_ioctl_siwencode(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
struct iw_point *erq, char *extra)
|
|
struct iw_point *erq, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
if(!RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
|
|
@@ -1800,19 +1800,19 @@ rt_ioctl_giwencode(struct net_device *dev,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
if (pVirtualAd && pVirtualAd->RtmpDev)
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1880,19 +1880,19 @@ rt_ioctl_setparam(struct net_device *dev, struct iw_request_info *info,
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAdapter = dev->priv;
|
|
|
|
|
|
+ pAdapter = dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
- pAdapter = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
|
|
+ pAdapter = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
pObj = (POS_COOKIE) pAdapter->OS_Cookie;
|
|
pObj = (POS_COOKIE) pAdapter->OS_Cookie;
|
|
|
|
|
|
if (pAdapter == NULL)
|
|
if (pAdapter == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1948,7 +1948,7 @@ rt_private_get_statistics(struct net_device *dev, struct iw_request_info *info,
|
|
struct iw_point *wrq, char *extra)
|
|
struct iw_point *wrq, char *extra)
|
|
{
|
|
{
|
|
INT Status = 0;
|
|
INT Status = 0;
|
|
- PRTMP_ADAPTER pAd = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAd = dev->ml_priv;
|
|
|
|
|
|
if (extra == NULL)
|
|
if (extra == NULL)
|
|
{
|
|
{
|
|
@@ -2075,18 +2075,18 @@ rt_private_show(struct net_device *dev, struct iw_request_info *info,
|
|
u32 subcmd = wrq->flags;
|
|
u32 subcmd = wrq->flags;
|
|
|
|
|
|
if (dev->priv_flags == INT_MAIN)
|
|
if (dev->priv_flags == INT_MAIN)
|
|
- pAd = dev->priv;
|
|
|
|
|
|
+ pAd = dev->ml_priv;
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = dev->priv;
|
|
|
|
- pAd = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pVirtualAd = dev->ml_priv;
|
|
|
|
+ pAd = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
pObj = (POS_COOKIE) pAd->OS_Cookie;
|
|
pObj = (POS_COOKIE) pAd->OS_Cookie;
|
|
|
|
|
|
if (pAd == NULL)
|
|
if (pAd == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2237,7 +2237,7 @@ int rt_ioctl_siwmlme(struct net_device *dev,
|
|
union iwreq_data *wrqu,
|
|
union iwreq_data *wrqu,
|
|
char *extra)
|
|
char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAd = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAd = dev->ml_priv;
|
|
struct iw_mlme *pMlme = (struct iw_mlme *)wrqu->data.pointer;
|
|
struct iw_mlme *pMlme = (struct iw_mlme *)wrqu->data.pointer;
|
|
MLME_QUEUE_ELEM MsgElem;
|
|
MLME_QUEUE_ELEM MsgElem;
|
|
MLME_DISASSOC_REQ_STRUCT DisAssocReq;
|
|
MLME_DISASSOC_REQ_STRUCT DisAssocReq;
|
|
@@ -2294,7 +2294,7 @@ int rt_ioctl_siwauth(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
union iwreq_data *wrqu, char *extra)
|
|
union iwreq_data *wrqu, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
struct iw_param *param = &wrqu->param;
|
|
struct iw_param *param = &wrqu->param;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
@@ -2447,7 +2447,7 @@ int rt_ioctl_giwauth(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
union iwreq_data *wrqu, char *extra)
|
|
union iwreq_data *wrqu, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
struct iw_param *param = &wrqu->param;
|
|
struct iw_param *param = &wrqu->param;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
@@ -2521,7 +2521,7 @@ int rt_ioctl_siwencodeext(struct net_device *dev,
|
|
union iwreq_data *wrqu,
|
|
union iwreq_data *wrqu,
|
|
char *extra)
|
|
char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
struct iw_point *encoding = &wrqu->encoding;
|
|
struct iw_point *encoding = &wrqu->encoding;
|
|
struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
|
|
struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
|
|
int keyIdx, alg = ext->alg;
|
|
int keyIdx, alg = ext->alg;
|
|
@@ -2649,7 +2649,7 @@ rt_ioctl_giwencodeext(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
union iwreq_data *wrqu, char *extra)
|
|
union iwreq_data *wrqu, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAd = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAd = dev->ml_priv;
|
|
PCHAR pKey = NULL;
|
|
PCHAR pKey = NULL;
|
|
struct iw_point *encoding = &wrqu->encoding;
|
|
struct iw_point *encoding = &wrqu->encoding;
|
|
struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
|
|
struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
|
|
@@ -2733,7 +2733,7 @@ int rt_ioctl_siwgenie(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
union iwreq_data *wrqu, char *extra)
|
|
union iwreq_data *wrqu, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAd = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAd = dev->ml_priv;
|
|
|
|
|
|
if (wrqu->data.length > MAX_LEN_OF_RSNIE ||
|
|
if (wrqu->data.length > MAX_LEN_OF_RSNIE ||
|
|
(wrqu->data.length && extra == NULL))
|
|
(wrqu->data.length && extra == NULL))
|
|
@@ -2758,7 +2758,7 @@ int rt_ioctl_giwgenie(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
union iwreq_data *wrqu, char *extra)
|
|
union iwreq_data *wrqu, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAd = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAd = dev->ml_priv;
|
|
|
|
|
|
if ((pAd->StaCfg.RSNIE_Len == 0) ||
|
|
if ((pAd->StaCfg.RSNIE_Len == 0) ||
|
|
(pAd->StaCfg.AuthMode < Ndis802_11AuthModeWPA))
|
|
(pAd->StaCfg.AuthMode < Ndis802_11AuthModeWPA))
|
|
@@ -2804,7 +2804,7 @@ int rt_ioctl_siwpmksa(struct net_device *dev,
|
|
union iwreq_data *wrqu,
|
|
union iwreq_data *wrqu,
|
|
char *extra)
|
|
char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAd = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAd = dev->ml_priv;
|
|
struct iw_pmksa *pPmksa = (struct iw_pmksa *)wrqu->data.pointer;
|
|
struct iw_pmksa *pPmksa = (struct iw_pmksa *)wrqu->data.pointer;
|
|
INT CachedIdx = 0, idx = 0;
|
|
INT CachedIdx = 0, idx = 0;
|
|
|
|
|
|
@@ -2888,7 +2888,7 @@ rt_private_ioctl_bbp(struct net_device *dev, struct iw_request_info *info,
|
|
UINT32 bbpValue;
|
|
UINT32 bbpValue;
|
|
BOOLEAN bIsPrintAllBBP = FALSE;
|
|
BOOLEAN bIsPrintAllBBP = FALSE;
|
|
INT Status = 0;
|
|
INT Status = 0;
|
|
- PRTMP_ADAPTER pAdapter = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAdapter = dev->ml_priv;
|
|
|
|
|
|
|
|
|
|
memset(extra, 0x00, IW_PRIV_SIZE_MASK);
|
|
memset(extra, 0x00, IW_PRIV_SIZE_MASK);
|
|
@@ -3015,7 +3015,7 @@ int rt_ioctl_siwrate(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
union iwreq_data *wrqu, char *extra)
|
|
union iwreq_data *wrqu, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAd = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAd = dev->ml_priv;
|
|
UINT32 rate = wrqu->bitrate.value, fixed = wrqu->bitrate.fixed;
|
|
UINT32 rate = wrqu->bitrate.value, fixed = wrqu->bitrate.fixed;
|
|
|
|
|
|
//check if the interface is down
|
|
//check if the interface is down
|
|
@@ -3073,7 +3073,7 @@ int rt_ioctl_giwrate(struct net_device *dev,
|
|
struct iw_request_info *info,
|
|
struct iw_request_info *info,
|
|
union iwreq_data *wrqu, char *extra)
|
|
union iwreq_data *wrqu, char *extra)
|
|
{
|
|
{
|
|
- PRTMP_ADAPTER pAd = (PRTMP_ADAPTER) dev->priv;
|
|
|
|
|
|
+ PRTMP_ADAPTER pAd = dev->ml_priv;
|
|
int rate_index = 0, rate_count = 0;
|
|
int rate_index = 0, rate_count = 0;
|
|
HTTRANSMIT_SETTING ht_setting;
|
|
HTTRANSMIT_SETTING ht_setting;
|
|
__s32 ralinkrate[] =
|
|
__s32 ralinkrate[] =
|
|
@@ -5483,19 +5483,19 @@ INT rt28xx_sta_ioctl(
|
|
|
|
|
|
if (net_dev->priv_flags == INT_MAIN)
|
|
if (net_dev->priv_flags == INT_MAIN)
|
|
{
|
|
{
|
|
- pAd = net_dev->priv;
|
|
|
|
|
|
+ pAd = net_dev->ml_priv;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pVirtualAd = net_dev->priv;
|
|
|
|
- pAd = pVirtualAd->RtmpDev->priv;
|
|
|
|
|
|
+ pVirtualAd = net_dev->ml_priv;
|
|
|
|
+ pAd = pVirtualAd->RtmpDev->ml_priv;
|
|
}
|
|
}
|
|
pObj = (POS_COOKIE) pAd->OS_Cookie;
|
|
pObj = (POS_COOKIE) pAd->OS_Cookie;
|
|
|
|
|
|
if (pAd == NULL)
|
|
if (pAd == NULL)
|
|
{
|
|
{
|
|
/* if 1st open fail, pAd will be free;
|
|
/* if 1st open fail, pAd will be free;
|
|
- So the net_dev->priv will be NULL in 2rd open */
|
|
|
|
|
|
+ So the net_dev->ml_priv will be NULL in 2rd open */
|
|
return -ENETDOWN;
|
|
return -ENETDOWN;
|
|
}
|
|
}
|
|
|
|
|