Lines Matching refs:param

2061 	struct prism2_hostapd_param *param,  in prism2_ioctl_set_encryption()  argument
2073 if (param->u.crypt.key_len > 0) { in prism2_ioctl_set_encryption()
2075 int index = param->u.crypt.idx; in prism2_ioctl_set_encryption()
2083 if (!(param->u.crypt.flags & IW_ENCODE_NOKEY)) { in prism2_ioctl_set_encryption()
2084 key.length = param->u.crypt.key_len > sizeof (param->u.crypt.key) ? in prism2_ioctl_set_encryption()
2085 sizeof (param->u.crypt.key) : param->u.crypt.key_len; in prism2_ioctl_set_encryption()
2086 memcpy(key.key, param->u.crypt.key, key.length); in prism2_ioctl_set_encryption()
2107 int index = (param->u.crypt.flags & IW_ENCODE_INDEX) - 1; in prism2_ioctl_set_encryption()
2114 if (!param->u.crypt.flags & IW_ENCODE_MODE) { in prism2_ioctl_set_encryption()
2121 if (param->u.crypt.flags & IW_ENCODE_DISABLED) { in prism2_ioctl_set_encryption()
2127 if (param->u.crypt.flags & IW_ENCODE_OPEN) in prism2_ioctl_set_encryption()
2130 if ((param->u.crypt.flags & IW_ENCODE_RESTRICTED) || force) { in prism2_ioctl_set_encryption()
2137 if ((param->u.crypt.flags & IW_ENCODE_MODE) || force) { in prism2_ioctl_set_encryption()
2151 struct prism2_hostapd_param *param, in prism2_ioctl_set_generic_element() argument
2158 len = param->u.generic_elem.len; in prism2_ioctl_set_generic_element()
2179 memcpy(attach->data, param->u.generic_elem.data, len); in prism2_ioctl_set_generic_element()
2200 prism2_ioctl_mlme(struct net_device *dev, struct prism2_hostapd_param *param) in prism2_ioctl_mlme() argument
2207 struct prism2_hostapd_param *param) in prism2_ioctl_scan_req() argument
2247 struct prism2_hostapd_param *param; in prism54_hostapd() local
2256 param = (struct prism2_hostapd_param *) kmalloc(p->length, GFP_KERNEL); in prism54_hostapd()
2257 if (param == NULL) in prism54_hostapd()
2260 if (copy_from_user(param, p->pointer, p->length)) { in prism54_hostapd()
2261 kfree(param); in prism54_hostapd()
2265 switch (param->cmd) { in prism54_hostapd()
2269 ret = prism2_ioctl_set_encryption(ndev, param, p->length); in prism54_hostapd()
2274 ret = prism2_ioctl_set_generic_element(ndev, param, in prism54_hostapd()
2280 ret = prism2_ioctl_mlme(ndev, param); in prism54_hostapd()
2285 ret = prism2_ioctl_scan_req(ndev, param); in prism54_hostapd()
2313 if (ret == 0 && copy_to_user(p->pointer, param, p->length)) in prism54_hostapd()
2316 kfree(param); in prism54_hostapd()