Home
last modified time | relevance | path

Searched refs:iwp (Results 1 – 2 of 2) sorted by relevance

/net/wireless/
Dwext-priv.c65 static int adjust_priv_size(__u16 args, struct iw_point *iwp) in adjust_priv_size() argument
67 int num = iwp->length; in adjust_priv_size()
137 static int ioctl_private_iw_point(struct iw_point *iwp, unsigned int cmd, in ioctl_private_iw_point() argument
147 if (!iwp->pointer && iwp->length != 0) in ioctl_private_iw_point()
150 if (iwp->length > (descr->set_args & IW_PRIV_SIZE_MASK)) in ioctl_private_iw_point()
152 } else if (!iwp->pointer) in ioctl_private_iw_point()
160 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_private_iw_point()
161 if (copy_from_user(extra, iwp->pointer, extra_size)) { in ioctl_private_iw_point()
168 err = handler(dev, info, (union iwreq_data *) iwp, extra); in ioctl_private_iw_point()
176 extra_size = adjust_priv_size(descr->get_args, iwp); in ioctl_private_iw_point()
[all …]
Dwext-core.c715 static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd, in ioctl_standard_iw_point() argument
734 if (iwp->length == descr->max_tokens + 1) in ioctl_standard_iw_point()
736 else if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
739 len = iwp->length * descr->token_size; in ioctl_standard_iw_point()
744 err = copy_from_user(essid, iwp->pointer, len); in ioctl_standard_iw_point()
748 if (essid[iwp->length - 1] == '\0') in ioctl_standard_iw_point()
756 iwp->length -= essid_compat; in ioctl_standard_iw_point()
761 if (!iwp->pointer && iwp->length != 0) in ioctl_standard_iw_point()
764 if (iwp->length > descr->max_tokens) in ioctl_standard_iw_point()
766 if (iwp->length < descr->min_tokens) in ioctl_standard_iw_point()
[all …]