Lines Matching refs:erq

118 	struct iw_point *erq = &wrqu->encoding;  in prism2_ioctl_siwencode()  local
127 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_siwencode()
137 if (erq->flags & IW_ENCODE_DISABLED) { in prism2_ioctl_siwencode()
176 if (erq->length > 0) { in prism2_ioctl_siwencode()
177 int len = erq->length <= 5 ? 5 : 13; in prism2_ioctl_siwencode()
179 if (len > erq->length) in prism2_ioctl_siwencode()
180 memset(keybuf + erq->length, 0, len - erq->length); in prism2_ioctl_siwencode()
196 local->open_wep = erq->flags & IW_ENCODE_OPEN; in prism2_ioctl_siwencode()
221 struct iw_point *erq = &wrqu->encoding; in prism2_ioctl_giwencode() local
231 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_giwencode()
240 erq->flags = i + 1; in prism2_ioctl_giwencode()
243 erq->length = 0; in prism2_ioctl_giwencode()
244 erq->flags |= IW_ENCODE_DISABLED; in prism2_ioctl_giwencode()
251 erq->length = 0; in prism2_ioctl_giwencode()
252 erq->flags |= IW_ENCODE_ENABLED; in prism2_ioctl_giwencode()
259 erq->length = (len >= 0 ? len : 0); in prism2_ioctl_giwencode()
268 erq->flags |= IW_ENCODE_ENABLED; in prism2_ioctl_giwencode()
270 erq->flags |= IW_ENCODE_DISABLED; in prism2_ioctl_giwencode()
272 erq->flags |= IW_ENCODE_RESTRICTED; in prism2_ioctl_giwencode()
274 erq->flags |= IW_ENCODE_OPEN; in prism2_ioctl_giwencode()
3221 struct iw_point *erq = &wrqu->encoding; in prism2_ioctl_siwencodeext() local
3232 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_siwencodeext()
3264 if ((erq->flags & IW_ENCODE_DISABLED) || in prism2_ioctl_siwencodeext()
3373 local->open_wep = erq->flags & IW_ENCODE_OPEN; in prism2_ioctl_siwencodeext()
3396 struct iw_point *erq = &wrqu->encoding; in prism2_ioctl_giwencodeext() local
3405 max_key_len = erq->length - sizeof(*ext); in prism2_ioctl_giwencodeext()
3409 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_giwencodeext()
3425 erq->flags = i + 1; in prism2_ioctl_giwencodeext()
3431 erq->flags |= IW_ENCODE_DISABLED; in prism2_ioctl_giwencodeext()