Lines Matching refs:cmd
452 unsigned int cmd, in wireless_send_event() argument
481 if (WARN_ON(cmd == SIOCGIWSCAN && extra)) in wireless_send_event()
485 if (cmd <= SIOCIWLAST) { in wireless_send_event()
486 cmd_index = IW_IOCTL_IDX(cmd); in wireless_send_event()
490 cmd_index = IW_EVENT_IDX(cmd); in wireless_send_event()
504 cmd); in wireless_send_event()
513 cmd, wrqu->data.length); in wireless_send_event()
518 cmd, wrqu->data.length); in wireless_send_event()
577 event->cmd = cmd; in wireless_send_event()
611 compat_event->cmd = cmd; in wireless_send_event()
682 static iw_handler get_handler(struct net_device *dev, unsigned int cmd) in get_handler() argument
701 index = IW_IOCTL_IDX(cmd); in get_handler()
707 index = cmd - SIOCIWFIRSTPRIV; in get_handler()
716 static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd, in ioctl_standard_iw_point() argument
730 switch (cmd) { in ioctl_standard_iw_point()
737 else if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
760 if (IW_IS_SET(cmd)) { in ioctl_standard_iw_point()
804 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
812 if (cmd == SIOCSIWENCODEEXT) { in ioctl_standard_iw_point()
822 if (IW_IS_GET(cmd) && !(descr->flags & IW_DESCR_FLAG_NOMAX)) { in ioctl_standard_iw_point()
843 if (!err && IW_IS_GET(cmd)) { in ioctl_standard_iw_point()
867 wireless_send_event(dev, cmd, data, NULL); in ioctl_standard_iw_point()
869 wireless_send_event(dev, cmd, data, extra); in ioctl_standard_iw_point()
916 unsigned int cmd, in wireless_process_ioctl() argument
934 if (cmd == SIOCGIWSTATS) in wireless_process_ioctl()
935 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
939 if (cmd == SIOCGIWPRIV && dev->wireless_handlers) in wireless_process_ioctl()
940 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
949 handler = get_handler(dev, cmd); in wireless_process_ioctl()
952 if (cmd < SIOCIWFIRSTPRIV) in wireless_process_ioctl()
953 return standard(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
955 return private(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
963 static int wext_permission_check(unsigned int cmd) in wext_permission_check() argument
965 if ((IW_IS_SET(cmd) || cmd == SIOCGIWENCODE || in wext_permission_check()
966 cmd == SIOCGIWENCODEEXT) && in wext_permission_check()
975 unsigned int cmd, struct iw_request_info *info, in wext_ioctl_dispatch() argument
979 int ret = wext_permission_check(cmd); in wext_ioctl_dispatch()
986 ret = wireless_process_ioctl(net, iwr, cmd, info, standard, private); in wext_ioctl_dispatch()
999 unsigned int cmd, in ioctl_standard_call() argument
1007 if (IW_IOCTL_IDX(cmd) >= standard_ioctl_num) in ioctl_standard_call()
1009 descr = &(standard_ioctl[IW_IOCTL_IDX(cmd)]); in ioctl_standard_call()
1020 wireless_send_event(dev, cmd, &(iwr->u), NULL); in ioctl_standard_call()
1022 ret = ioctl_standard_iw_point(&iwr->u.data, cmd, descr, in ioctl_standard_call()
1036 int wext_handle_ioctl(struct net *net, unsigned int cmd, void __user *arg) in wext_handle_ioctl() argument
1038 struct iw_request_info info = { .cmd = cmd, .flags = 0 }; in wext_handle_ioctl()
1047 ret = wext_ioctl_dispatch(net, &iwr, cmd, &info, in wext_handle_ioctl()
1051 IW_IS_GET(cmd) && in wext_handle_ioctl()
1061 unsigned int cmd, in compat_standard_call() argument
1070 descr = standard_ioctl + IW_IOCTL_IDX(cmd); in compat_standard_call()
1073 return ioctl_standard_call(dev, iwr, cmd, info, handler); in compat_standard_call()
1080 err = ioctl_standard_iw_point(&iwp, cmd, descr, handler, dev, info); in compat_standard_call()
1089 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument
1106 info.cmd = cmd; in compat_wext_handle_ioctl()
1109 ret = wext_ioctl_dispatch(net, &iwr, cmd, &info, in compat_wext_handle_ioctl()
1114 IW_IS_GET(cmd) && in compat_wext_handle_ioctl()