diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2008-12-07 02:58:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-07 02:58:37 -0500 |
commit | 979123d5343b4fdcd4c682745b8a0be9b8fac248 (patch) | |
tree | 64cb88ca96912ce9f9fd21ecf51a3a100fb9ccf3 | |
parent | ad660e2f97e7dc9d0f5627456b37e64bde714a5e (diff) |
staging-p80211: Kill directly reference of netdev->priv
In this driver, netdev's private data is wlandevice_t. And the
wlandev(type of wlandevice_t) is exist before netdev be allocated. So
use netdev->ml_priv to point to the private data.
I am not sure whether I should consider the kernel version older than
2.3.38. Because in those kernels, netdevice_t is "structure dev"
instead of "structure net_device" and of course "dev->ml_priv" will
cause compile error. But before my patch, in function wlan_setup(),
there is a ether_setup(net_device) which already broke kernels which
older than 2.3.38.
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.c | 20 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211wext.c | 58 |
2 files changed, 39 insertions, 39 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index 11f84a829e14..2b705eaa50e8 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c | |||
@@ -244,7 +244,7 @@ static int p80211knetdev_init( netdevice_t *netdev) | |||
244 | static struct net_device_stats* | 244 | static struct net_device_stats* |
245 | p80211knetdev_get_stats(netdevice_t *netdev) | 245 | p80211knetdev_get_stats(netdevice_t *netdev) |
246 | { | 246 | { |
247 | wlandevice_t *wlandev = (wlandevice_t*)netdev->priv; | 247 | wlandevice_t *wlandev = netdev->ml_priv; |
248 | DBFENTER; | 248 | DBFENTER; |
249 | 249 | ||
250 | /* TODO: review the MIB stats for items that correspond to | 250 | /* TODO: review the MIB stats for items that correspond to |
@@ -272,7 +272,7 @@ p80211knetdev_get_stats(netdevice_t *netdev) | |||
272 | static int p80211knetdev_open( netdevice_t *netdev ) | 272 | static int p80211knetdev_open( netdevice_t *netdev ) |
273 | { | 273 | { |
274 | int result = 0; /* success */ | 274 | int result = 0; /* success */ |
275 | wlandevice_t *wlandev = (wlandevice_t*)(netdev->priv); | 275 | wlandevice_t *wlandev = netdev->ml_priv; |
276 | 276 | ||
277 | DBFENTER; | 277 | DBFENTER; |
278 | 278 | ||
@@ -315,7 +315,7 @@ static int p80211knetdev_open( netdevice_t *netdev ) | |||
315 | static int p80211knetdev_stop( netdevice_t *netdev ) | 315 | static int p80211knetdev_stop( netdevice_t *netdev ) |
316 | { | 316 | { |
317 | int result = 0; | 317 | int result = 0; |
318 | wlandevice_t *wlandev = (wlandevice_t*)(netdev->priv); | 318 | wlandevice_t *wlandev = netdev->ml_priv; |
319 | 319 | ||
320 | DBFENTER; | 320 | DBFENTER; |
321 | 321 | ||
@@ -460,7 +460,7 @@ static int p80211knetdev_hard_start_xmit( struct sk_buff *skb, netdevice_t *netd | |||
460 | { | 460 | { |
461 | int result = 0; | 461 | int result = 0; |
462 | int txresult = -1; | 462 | int txresult = -1; |
463 | wlandevice_t *wlandev = (wlandevice_t*)netdev->priv; | 463 | wlandevice_t *wlandev = netdev->ml_priv; |
464 | p80211_hdr_t p80211_hdr; | 464 | p80211_hdr_t p80211_hdr; |
465 | p80211_metawep_t p80211_wep; | 465 | p80211_metawep_t p80211_wep; |
466 | 466 | ||
@@ -603,7 +603,7 @@ static int p80211knetdev_hard_start_xmit( struct sk_buff *skb, netdevice_t *netd | |||
603 | ----------------------------------------------------------------*/ | 603 | ----------------------------------------------------------------*/ |
604 | static void p80211knetdev_set_multicast_list(netdevice_t *dev) | 604 | static void p80211knetdev_set_multicast_list(netdevice_t *dev) |
605 | { | 605 | { |
606 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 606 | wlandevice_t *wlandev = dev->ml_priv; |
607 | 607 | ||
608 | DBFENTER; | 608 | DBFENTER; |
609 | 609 | ||
@@ -696,7 +696,7 @@ static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd) | |||
696 | { | 696 | { |
697 | int result = 0; | 697 | int result = 0; |
698 | p80211ioctl_req_t *req = (p80211ioctl_req_t*)ifr; | 698 | p80211ioctl_req_t *req = (p80211ioctl_req_t*)ifr; |
699 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 699 | wlandevice_t *wlandev = dev->ml_priv; |
700 | UINT8 *msgbuf; | 700 | UINT8 *msgbuf; |
701 | DBFENTER; | 701 | DBFENTER; |
702 | 702 | ||
@@ -812,7 +812,7 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) | |||
812 | dot11req.msgcode = DIDmsg_dot11req_mibset; | 812 | dot11req.msgcode = DIDmsg_dot11req_mibset; |
813 | dot11req.msglen = sizeof(p80211msg_dot11req_mibset_t); | 813 | dot11req.msglen = sizeof(p80211msg_dot11req_mibset_t); |
814 | memcpy(dot11req.devname, | 814 | memcpy(dot11req.devname, |
815 | ((wlandevice_t*)(dev->priv))->name, | 815 | ((wlandevice_t *)dev->ml_priv)->name, |
816 | WLAN_DEVNAMELEN_MAX - 1); | 816 | WLAN_DEVNAMELEN_MAX - 1); |
817 | 817 | ||
818 | /* Set up the mibattribute argument */ | 818 | /* Set up the mibattribute argument */ |
@@ -833,7 +833,7 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) | |||
833 | resultcode->data = 0; | 833 | resultcode->data = 0; |
834 | 834 | ||
835 | /* now fire the request */ | 835 | /* now fire the request */ |
836 | result = p80211req_dorequest(dev->priv, (UINT8*)&dot11req); | 836 | result = p80211req_dorequest(dev->ml_priv, (UINT8 *)&dot11req); |
837 | 837 | ||
838 | /* If the request wasn't successful, report an error and don't | 838 | /* If the request wasn't successful, report an error and don't |
839 | * change the netdev address | 839 | * change the netdev address |
@@ -917,7 +917,7 @@ int wlan_setup(wlandevice_t *wlandev) | |||
917 | memset( dev, 0, sizeof(netdevice_t)); | 917 | memset( dev, 0, sizeof(netdevice_t)); |
918 | ether_setup(dev); | 918 | ether_setup(dev); |
919 | wlandev->netdev = dev; | 919 | wlandev->netdev = dev; |
920 | dev->priv = wlandev; | 920 | dev->ml_priv = wlandev; |
921 | dev->hard_start_xmit = p80211knetdev_hard_start_xmit; | 921 | dev->hard_start_xmit = p80211knetdev_hard_start_xmit; |
922 | dev->get_stats = p80211knetdev_get_stats; | 922 | dev->get_stats = p80211knetdev_get_stats; |
923 | #ifdef HAVE_PRIVATE_IOCTL | 923 | #ifdef HAVE_PRIVATE_IOCTL |
@@ -1487,7 +1487,7 @@ void p80211_resume(wlandevice_t *wlandev) | |||
1487 | 1487 | ||
1488 | static void p80211knetdev_tx_timeout( netdevice_t *netdev) | 1488 | static void p80211knetdev_tx_timeout( netdevice_t *netdev) |
1489 | { | 1489 | { |
1490 | wlandevice_t *wlandev = (wlandevice_t*)netdev->priv; | 1490 | wlandevice_t *wlandev = netdev->ml_priv; |
1491 | DBFENTER; | 1491 | DBFENTER; |
1492 | 1492 | ||
1493 | if (wlandev->tx_timeout) { | 1493 | if (wlandev->tx_timeout) { |
diff --git a/drivers/staging/wlan-ng/p80211wext.c b/drivers/staging/wlan-ng/p80211wext.c index 906ba4392376..b2c9ea25fa42 100644 --- a/drivers/staging/wlan-ng/p80211wext.c +++ b/drivers/staging/wlan-ng/p80211wext.c | |||
@@ -218,7 +218,7 @@ exit: | |||
218 | struct iw_statistics* p80211wext_get_wireless_stats (netdevice_t *dev) | 218 | struct iw_statistics* p80211wext_get_wireless_stats (netdevice_t *dev) |
219 | { | 219 | { |
220 | p80211msg_lnxreq_commsquality_t quality; | 220 | p80211msg_lnxreq_commsquality_t quality; |
221 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 221 | wlandevice_t *wlandev = dev->ml_priv; |
222 | struct iw_statistics* wstats = &wlandev->wstats; | 222 | struct iw_statistics* wstats = &wlandev->wstats; |
223 | int retval; | 223 | int retval; |
224 | 224 | ||
@@ -301,7 +301,7 @@ static int p80211wext_giwfreq(netdevice_t *dev, | |||
301 | struct iw_request_info *info, | 301 | struct iw_request_info *info, |
302 | struct iw_freq *freq, char *extra) | 302 | struct iw_freq *freq, char *extra) |
303 | { | 303 | { |
304 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 304 | wlandevice_t *wlandev = dev->ml_priv; |
305 | p80211item_uint32_t mibitem; | 305 | p80211item_uint32_t mibitem; |
306 | p80211msg_dot11req_mibset_t msg; | 306 | p80211msg_dot11req_mibset_t msg; |
307 | int result; | 307 | int result; |
@@ -339,7 +339,7 @@ static int p80211wext_siwfreq(netdevice_t *dev, | |||
339 | struct iw_request_info *info, | 339 | struct iw_request_info *info, |
340 | struct iw_freq *freq, char *extra) | 340 | struct iw_freq *freq, char *extra) |
341 | { | 341 | { |
342 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 342 | wlandevice_t *wlandev = dev->ml_priv; |
343 | p80211item_uint32_t mibitem; | 343 | p80211item_uint32_t mibitem; |
344 | p80211msg_dot11req_mibset_t msg; | 344 | p80211msg_dot11req_mibset_t msg; |
345 | int result; | 345 | int result; |
@@ -380,7 +380,7 @@ static int p80211wext_giwmode(netdevice_t *dev, | |||
380 | struct iw_request_info *info, | 380 | struct iw_request_info *info, |
381 | __u32 *mode, char *extra) | 381 | __u32 *mode, char *extra) |
382 | { | 382 | { |
383 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 383 | wlandevice_t *wlandev = dev->ml_priv; |
384 | 384 | ||
385 | DBFENTER; | 385 | DBFENTER; |
386 | 386 | ||
@@ -407,7 +407,7 @@ static int p80211wext_siwmode(netdevice_t *dev, | |||
407 | struct iw_request_info *info, | 407 | struct iw_request_info *info, |
408 | __u32 *mode, char *extra) | 408 | __u32 *mode, char *extra) |
409 | { | 409 | { |
410 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 410 | wlandevice_t *wlandev = dev->ml_priv; |
411 | p80211item_uint32_t mibitem; | 411 | p80211item_uint32_t mibitem; |
412 | p80211msg_dot11req_mibset_t msg; | 412 | p80211msg_dot11req_mibset_t msg; |
413 | int result; | 413 | int result; |
@@ -550,7 +550,7 @@ static int p80211wext_giwap(netdevice_t *dev, | |||
550 | struct sockaddr *ap_addr, char *extra) | 550 | struct sockaddr *ap_addr, char *extra) |
551 | { | 551 | { |
552 | 552 | ||
553 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 553 | wlandevice_t *wlandev = dev->ml_priv; |
554 | 554 | ||
555 | DBFENTER; | 555 | DBFENTER; |
556 | 556 | ||
@@ -566,7 +566,7 @@ static int p80211wext_giwencode(netdevice_t *dev, | |||
566 | struct iw_request_info *info, | 566 | struct iw_request_info *info, |
567 | struct iw_point *erq, char *key) | 567 | struct iw_point *erq, char *key) |
568 | { | 568 | { |
569 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 569 | wlandevice_t *wlandev = dev->ml_priv; |
570 | int err = 0; | 570 | int err = 0; |
571 | int i; | 571 | int i; |
572 | 572 | ||
@@ -607,7 +607,7 @@ static int p80211wext_siwencode(netdevice_t *dev, | |||
607 | struct iw_request_info *info, | 607 | struct iw_request_info *info, |
608 | struct iw_point *erq, char *key) | 608 | struct iw_point *erq, char *key) |
609 | { | 609 | { |
610 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 610 | wlandevice_t *wlandev = dev->ml_priv; |
611 | p80211msg_dot11req_mibset_t msg; | 611 | p80211msg_dot11req_mibset_t msg; |
612 | p80211item_pstr32_t pstr; | 612 | p80211item_pstr32_t pstr; |
613 | 613 | ||
@@ -736,7 +736,7 @@ static int p80211wext_giwessid(netdevice_t *dev, | |||
736 | struct iw_request_info *info, | 736 | struct iw_request_info *info, |
737 | struct iw_point *data, char *essid) | 737 | struct iw_point *data, char *essid) |
738 | { | 738 | { |
739 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 739 | wlandevice_t *wlandev = dev->ml_priv; |
740 | 740 | ||
741 | DBFENTER; | 741 | DBFENTER; |
742 | 742 | ||
@@ -762,7 +762,7 @@ static int p80211wext_siwessid(netdevice_t *dev, | |||
762 | struct iw_request_info *info, | 762 | struct iw_request_info *info, |
763 | struct iw_point *data, char *essid) | 763 | struct iw_point *data, char *essid) |
764 | { | 764 | { |
765 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 765 | wlandevice_t *wlandev = dev->ml_priv; |
766 | p80211msg_lnxreq_autojoin_t msg; | 766 | p80211msg_lnxreq_autojoin_t msg; |
767 | 767 | ||
768 | int result; | 768 | int result; |
@@ -816,7 +816,7 @@ static int p80211wext_siwcommit(netdevice_t *dev, | |||
816 | struct iw_request_info *info, | 816 | struct iw_request_info *info, |
817 | struct iw_point *data, char *essid) | 817 | struct iw_point *data, char *essid) |
818 | { | 818 | { |
819 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 819 | wlandevice_t *wlandev = dev->ml_priv; |
820 | int err = 0; | 820 | int err = 0; |
821 | 821 | ||
822 | DBFENTER; | 822 | DBFENTER; |
@@ -839,7 +839,7 @@ static int p80211wext_giwrate(netdevice_t *dev, | |||
839 | struct iw_request_info *info, | 839 | struct iw_request_info *info, |
840 | struct iw_param *rrq, char *extra) | 840 | struct iw_param *rrq, char *extra) |
841 | { | 841 | { |
842 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 842 | wlandevice_t *wlandev = dev->ml_priv; |
843 | p80211item_uint32_t mibitem; | 843 | p80211item_uint32_t mibitem; |
844 | p80211msg_dot11req_mibset_t msg; | 844 | p80211msg_dot11req_mibset_t msg; |
845 | int result; | 845 | int result; |
@@ -893,7 +893,7 @@ static int p80211wext_giwrts(netdevice_t *dev, | |||
893 | struct iw_request_info *info, | 893 | struct iw_request_info *info, |
894 | struct iw_param *rts, char *extra) | 894 | struct iw_param *rts, char *extra) |
895 | { | 895 | { |
896 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 896 | wlandevice_t *wlandev = dev->ml_priv; |
897 | p80211item_uint32_t mibitem; | 897 | p80211item_uint32_t mibitem; |
898 | p80211msg_dot11req_mibset_t msg; | 898 | p80211msg_dot11req_mibset_t msg; |
899 | int result; | 899 | int result; |
@@ -927,7 +927,7 @@ static int p80211wext_siwrts(netdevice_t *dev, | |||
927 | struct iw_request_info *info, | 927 | struct iw_request_info *info, |
928 | struct iw_param *rts, char *extra) | 928 | struct iw_param *rts, char *extra) |
929 | { | 929 | { |
930 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 930 | wlandevice_t *wlandev = dev->ml_priv; |
931 | p80211item_uint32_t mibitem; | 931 | p80211item_uint32_t mibitem; |
932 | p80211msg_dot11req_mibset_t msg; | 932 | p80211msg_dot11req_mibset_t msg; |
933 | int result; | 933 | int result; |
@@ -964,7 +964,7 @@ static int p80211wext_giwfrag(netdevice_t *dev, | |||
964 | struct iw_request_info *info, | 964 | struct iw_request_info *info, |
965 | struct iw_param *frag, char *extra) | 965 | struct iw_param *frag, char *extra) |
966 | { | 966 | { |
967 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 967 | wlandevice_t *wlandev = dev->ml_priv; |
968 | p80211item_uint32_t mibitem; | 968 | p80211item_uint32_t mibitem; |
969 | p80211msg_dot11req_mibset_t msg; | 969 | p80211msg_dot11req_mibset_t msg; |
970 | int result; | 970 | int result; |
@@ -997,7 +997,7 @@ static int p80211wext_siwfrag(netdevice_t *dev, | |||
997 | struct iw_request_info *info, | 997 | struct iw_request_info *info, |
998 | struct iw_param *frag, char *extra) | 998 | struct iw_param *frag, char *extra) |
999 | { | 999 | { |
1000 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1000 | wlandevice_t *wlandev = dev->ml_priv; |
1001 | p80211item_uint32_t mibitem; | 1001 | p80211item_uint32_t mibitem; |
1002 | p80211msg_dot11req_mibset_t msg; | 1002 | p80211msg_dot11req_mibset_t msg; |
1003 | int result; | 1003 | int result; |
@@ -1047,7 +1047,7 @@ static int p80211wext_giwretry(netdevice_t *dev, | |||
1047 | struct iw_request_info *info, | 1047 | struct iw_request_info *info, |
1048 | struct iw_param *rrq, char *extra) | 1048 | struct iw_param *rrq, char *extra) |
1049 | { | 1049 | { |
1050 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1050 | wlandevice_t *wlandev = dev->ml_priv; |
1051 | p80211item_uint32_t mibitem; | 1051 | p80211item_uint32_t mibitem; |
1052 | p80211msg_dot11req_mibset_t msg; | 1052 | p80211msg_dot11req_mibset_t msg; |
1053 | int result; | 1053 | int result; |
@@ -1126,7 +1126,7 @@ static int p80211wext_siwretry(netdevice_t *dev, | |||
1126 | struct iw_request_info *info, | 1126 | struct iw_request_info *info, |
1127 | struct iw_param *rrq, char *extra) | 1127 | struct iw_param *rrq, char *extra) |
1128 | { | 1128 | { |
1129 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1129 | wlandevice_t *wlandev = dev->ml_priv; |
1130 | p80211item_uint32_t mibitem; | 1130 | p80211item_uint32_t mibitem; |
1131 | p80211msg_dot11req_mibset_t msg; | 1131 | p80211msg_dot11req_mibset_t msg; |
1132 | int result; | 1132 | int result; |
@@ -1198,7 +1198,7 @@ static int p80211wext_siwtxpow(netdevice_t *dev, | |||
1198 | struct iw_request_info *info, | 1198 | struct iw_request_info *info, |
1199 | struct iw_param *rrq, char *extra) | 1199 | struct iw_param *rrq, char *extra) |
1200 | { | 1200 | { |
1201 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1201 | wlandevice_t *wlandev = dev->ml_priv; |
1202 | p80211item_uint32_t mibitem; | 1202 | p80211item_uint32_t mibitem; |
1203 | p80211msg_dot11req_mibset_t msg; | 1203 | p80211msg_dot11req_mibset_t msg; |
1204 | int result; | 1204 | int result; |
@@ -1243,7 +1243,7 @@ static int p80211wext_giwtxpow(netdevice_t *dev, | |||
1243 | struct iw_request_info *info, | 1243 | struct iw_request_info *info, |
1244 | struct iw_param *rrq, char *extra) | 1244 | struct iw_param *rrq, char *extra) |
1245 | { | 1245 | { |
1246 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1246 | wlandevice_t *wlandev = dev->ml_priv; |
1247 | p80211item_uint32_t mibitem; | 1247 | p80211item_uint32_t mibitem; |
1248 | p80211msg_dot11req_mibset_t msg; | 1248 | p80211msg_dot11req_mibset_t msg; |
1249 | int result; | 1249 | int result; |
@@ -1281,7 +1281,7 @@ static int p80211wext_siwspy(netdevice_t *dev, | |||
1281 | struct iw_request_info *info, | 1281 | struct iw_request_info *info, |
1282 | struct iw_point *srq, char *extra) | 1282 | struct iw_point *srq, char *extra) |
1283 | { | 1283 | { |
1284 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1284 | wlandevice_t *wlandev = dev->ml_priv; |
1285 | struct sockaddr address[IW_MAX_SPY]; | 1285 | struct sockaddr address[IW_MAX_SPY]; |
1286 | int number = srq->length; | 1286 | int number = srq->length; |
1287 | int i; | 1287 | int i; |
@@ -1317,7 +1317,7 @@ static int p80211wext_giwspy(netdevice_t *dev, | |||
1317 | struct iw_request_info *info, | 1317 | struct iw_request_info *info, |
1318 | struct iw_point *srq, char *extra) | 1318 | struct iw_point *srq, char *extra) |
1319 | { | 1319 | { |
1320 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1320 | wlandevice_t *wlandev = dev->ml_priv; |
1321 | 1321 | ||
1322 | struct sockaddr address[IW_MAX_SPY]; | 1322 | struct sockaddr address[IW_MAX_SPY]; |
1323 | struct iw_quality spy_stat[IW_MAX_SPY]; | 1323 | struct iw_quality spy_stat[IW_MAX_SPY]; |
@@ -1378,7 +1378,7 @@ static int p80211wext_siwscan(netdevice_t *dev, | |||
1378 | struct iw_request_info *info, | 1378 | struct iw_request_info *info, |
1379 | struct iw_point *srq, char *extra) | 1379 | struct iw_point *srq, char *extra) |
1380 | { | 1380 | { |
1381 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1381 | wlandevice_t *wlandev = dev->ml_priv; |
1382 | p80211msg_dot11req_scan_t msg; | 1382 | p80211msg_dot11req_scan_t msg; |
1383 | int result; | 1383 | int result; |
1384 | int err = 0; | 1384 | int err = 0; |
@@ -1501,7 +1501,7 @@ static int p80211wext_giwscan(netdevice_t *dev, | |||
1501 | struct iw_request_info *info, | 1501 | struct iw_request_info *info, |
1502 | struct iw_point *srq, char *extra) | 1502 | struct iw_point *srq, char *extra) |
1503 | { | 1503 | { |
1504 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1504 | wlandevice_t *wlandev = dev->ml_priv; |
1505 | p80211msg_dot11req_scan_results_t msg; | 1505 | p80211msg_dot11req_scan_results_t msg; |
1506 | int result = 0; | 1506 | int result = 0; |
1507 | int err = 0; | 1507 | int err = 0; |
@@ -1551,7 +1551,7 @@ static int p80211wext_set_encodeext(struct net_device *dev, | |||
1551 | struct iw_request_info *info, | 1551 | struct iw_request_info *info, |
1552 | union iwreq_data *wrqu, char *extra) | 1552 | union iwreq_data *wrqu, char *extra) |
1553 | { | 1553 | { |
1554 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1554 | wlandevice_t *wlandev = dev->ml_priv; |
1555 | struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; | 1555 | struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; |
1556 | p80211msg_dot11req_mibset_t msg; | 1556 | p80211msg_dot11req_mibset_t msg; |
1557 | p80211item_pstr32_t *pstr; | 1557 | p80211item_pstr32_t *pstr; |
@@ -1627,7 +1627,7 @@ static int p80211wext_get_encodeext(struct net_device *dev, | |||
1627 | union iwreq_data *wrqu, char *extra) | 1627 | union iwreq_data *wrqu, char *extra) |
1628 | 1628 | ||
1629 | { | 1629 | { |
1630 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1630 | wlandevice_t *wlandev = dev->ml_priv; |
1631 | struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; | 1631 | struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; |
1632 | 1632 | ||
1633 | struct iw_point *encoding = &wrqu->encoding; | 1633 | struct iw_point *encoding = &wrqu->encoding; |
@@ -1682,7 +1682,7 @@ static int p80211_wext_set_iwauth (struct net_device *dev, | |||
1682 | struct iw_request_info *info, | 1682 | struct iw_request_info *info, |
1683 | union iwreq_data *wrqu, char *extra) | 1683 | union iwreq_data *wrqu, char *extra) |
1684 | { | 1684 | { |
1685 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1685 | wlandevice_t *wlandev = dev->ml_priv; |
1686 | struct iw_param *param = &wrqu->param; | 1686 | struct iw_param *param = &wrqu->param; |
1687 | int result =0; | 1687 | int result =0; |
1688 | 1688 | ||
@@ -1734,7 +1734,7 @@ static int p80211_wext_get_iwauth (struct net_device *dev, | |||
1734 | struct iw_request_info *info, | 1734 | struct iw_request_info *info, |
1735 | union iwreq_data *wrqu, char *extra) | 1735 | union iwreq_data *wrqu, char *extra) |
1736 | { | 1736 | { |
1737 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1737 | wlandevice_t *wlandev = dev->ml_priv; |
1738 | struct iw_param *param = &wrqu->param; | 1738 | struct iw_param *param = &wrqu->param; |
1739 | int result =0; | 1739 | int result =0; |
1740 | 1740 | ||
@@ -1868,7 +1868,7 @@ struct iw_handler_def p80211wext_handler_def = { | |||
1868 | /* wireless extensions' ioctls */ | 1868 | /* wireless extensions' ioctls */ |
1869 | int p80211wext_support_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd) | 1869 | int p80211wext_support_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd) |
1870 | { | 1870 | { |
1871 | wlandevice_t *wlandev = (wlandevice_t*)dev->priv; | 1871 | wlandevice_t *wlandev = dev->ml_priv; |
1872 | 1872 | ||
1873 | #if WIRELESS_EXT < 13 | 1873 | #if WIRELESS_EXT < 13 |
1874 | struct iwreq *iwr = (struct iwreq*)ifr; | 1874 | struct iwreq *iwr = (struct iwreq*)ifr; |