@@ -914,21 +914,20 @@ int call_commit_handler(struct net_device *dev)
914
914
* Main IOCTl dispatcher.
915
915
* Check the type of IOCTL and call the appropriate wrapper...
916
916
*/
917
- static int wireless_process_ioctl (struct net * net , struct ifreq * ifr ,
917
+ static int wireless_process_ioctl (struct net * net , struct iwreq * iwr ,
918
918
unsigned int cmd ,
919
919
struct iw_request_info * info ,
920
920
wext_ioctl_func standard ,
921
921
wext_ioctl_func private )
922
922
{
923
- struct iwreq * iwr = (struct iwreq * ) ifr ;
924
923
struct net_device * dev ;
925
924
iw_handler handler ;
926
925
927
926
/* Permissions are already checked in dev_ioctl() before calling us.
928
927
* The copy_to/from_user() of ifr is also dealt with in there */
929
928
930
929
/* Make sure the device exist */
931
- if ((dev = __dev_get_by_name (net , ifr -> ifr_name )) == NULL )
930
+ if ((dev = __dev_get_by_name (net , iwr -> ifr_name )) == NULL )
932
931
return - ENODEV ;
933
932
934
933
/* A bunch of special cases, then the generic case...
@@ -974,7 +973,7 @@ static int wext_permission_check(unsigned int cmd)
974
973
}
975
974
976
975
/* entry point from dev ioctl */
977
- static int wext_ioctl_dispatch (struct net * net , struct ifreq * ifr ,
976
+ static int wext_ioctl_dispatch (struct net * net , struct iwreq * iwr ,
978
977
unsigned int cmd , struct iw_request_info * info ,
979
978
wext_ioctl_func standard ,
980
979
wext_ioctl_func private )
@@ -984,9 +983,9 @@ static int wext_ioctl_dispatch(struct net *net, struct ifreq *ifr,
984
983
if (ret )
985
984
return ret ;
986
985
987
- dev_load (net , ifr -> ifr_name );
986
+ dev_load (net , iwr -> ifr_name );
988
987
rtnl_lock ();
989
- ret = wireless_process_ioctl (net , ifr , cmd , info , standard , private );
988
+ ret = wireless_process_ioctl (net , iwr , cmd , info , standard , private );
990
989
rtnl_unlock ();
991
990
992
991
return ret ;
@@ -1042,7 +1041,7 @@ int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
1042
1041
struct iw_request_info info = { .cmd = cmd , .flags = 0 };
1043
1042
int ret ;
1044
1043
1045
- ret = wext_ioctl_dispatch (net , ifr , cmd , & info ,
1044
+ ret = wext_ioctl_dispatch (net , ( void * ) ifr , cmd , & info ,
1046
1045
ioctl_standard_call ,
1047
1046
ioctl_private_call );
1048
1047
if (ret >= 0 &&
@@ -1104,7 +1103,7 @@ int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
1104
1103
info .cmd = cmd ;
1105
1104
info .flags = IW_REQUEST_FLAG_COMPAT ;
1106
1105
1107
- ret = wext_ioctl_dispatch (net , ( struct ifreq * ) & iwr , cmd , & info ,
1106
+ ret = wext_ioctl_dispatch (net , & iwr , cmd , & info ,
1108
1107
compat_standard_call ,
1109
1108
compat_private_call );
1110
1109
0 commit comments