Lines Matching refs:dwrq

405 		  struct iw_point *dwrq, char *extra)  in prism54_get_range()  argument
415 dwrq->length = sizeof (struct iw_range); in prism54_get_range()
652 struct iw_point *dwrq, char *extra) in prism54_get_scan() argument
663 dwrq->length = 0; in prism54_get_scan()
685 extra + dwrq->length, in prism54_get_scan()
690 if((extra + dwrq->length - current_ev) <= IW_EV_ADDR_LEN) { in prism54_get_scan()
699 dwrq->length = (current_ev - extra); in prism54_get_scan()
700 dwrq->flags = 0; /* todo */ in prism54_get_scan()
707 struct iw_point *dwrq, char *extra) in prism54_set_essid() argument
715 if (dwrq->flags && dwrq->length) { in prism54_set_essid()
716 if (dwrq->length > min(33, IW_ESSID_MAX_SIZE + 1)) in prism54_set_essid()
718 essid.length = dwrq->length - 1; in prism54_set_essid()
719 memcpy(essid.octets, extra, dwrq->length); in prism54_set_essid()
734 struct iw_point *dwrq, char *extra) in prism54_get_essid() argument
745 dwrq->flags = 1; /* set ESSID to ON for Wireless Extensions */ in prism54_get_essid()
747 dwrq->length = min(IW_ESSID_MAX_SIZE, essid->length + 1); in prism54_get_essid()
749 dwrq->flags = 0; in prism54_get_essid()
750 dwrq->length = 0; in prism54_get_essid()
753 memcpy(extra, essid->octets, dwrq->length); in prism54_get_essid()
764 struct iw_point *dwrq, char *extra) in prism54_set_nick() argument
768 if (dwrq->length > IW_ESSID_MAX_SIZE) in prism54_set_nick()
773 memcpy(priv->nickname, extra, dwrq->length); in prism54_set_nick()
781 struct iw_point *dwrq, char *extra) in prism54_get_nick() argument
785 dwrq->length = 0; in prism54_get_nick()
788 dwrq->length = strlen(priv->nickname) + 1; in prism54_get_nick()
789 memcpy(extra, priv->nickname, dwrq->length); in prism54_get_nick()
1028 struct iw_point *dwrq, char *extra) in prism54_set_encode() argument
1039 if (dwrq->length > 0) { in prism54_set_encode()
1041 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in prism54_set_encode()
1049 if (!(dwrq->flags & IW_ENCODE_NOKEY)) { in prism54_set_encode()
1050 key.length = dwrq->length > sizeof (key.key) ? in prism54_set_encode()
1051 sizeof (key.key) : dwrq->length; in prism54_set_encode()
1073 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in prism54_set_encode()
1080 if (!dwrq->flags & IW_ENCODE_MODE) { in prism54_set_encode()
1087 if (dwrq->flags & IW_ENCODE_DISABLED) { in prism54_set_encode()
1093 if (dwrq->flags & IW_ENCODE_OPEN) in prism54_set_encode()
1096 if ((dwrq->flags & IW_ENCODE_RESTRICTED) || force) { in prism54_set_encode()
1103 if ((dwrq->flags & IW_ENCODE_MODE) || force) { in prism54_set_encode()
1117 struct iw_point *dwrq, char *extra) in prism54_get_encode() argument
1121 u32 devindex, index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in prism54_get_encode()
1135 dwrq->flags = IW_ENCODE_RESTRICTED; in prism54_get_encode()
1138 dwrq->flags = IW_ENCODE_OPEN; in prism54_get_encode()
1140 dwrq->flags = IW_ENCODE_DISABLED; in prism54_get_encode()
1143 dwrq->flags = 0; in prism54_get_encode()
1154 dwrq->length = key->length; in prism54_get_encode()
1155 memcpy(extra, key->key, dwrq->length); in prism54_get_encode()
1158 dwrq->flags |= devindex + 1; in prism54_get_encode()
1220 struct iw_point *dwrq, char *extra) in prism54_get_oid() argument
1224 enum oid_num_t n = dwrq->flags; in prism54_get_oid()
1227 dwrq->length = mgt_response_to_str(n, &r, extra); in prism54_get_oid()
1244 struct iw_point *dwrq, char *extra) in prism54_set_raw() argument
1246 u32 oid = dwrq->flags; in prism54_set_raw()
1351 struct iw_point *dwrq, char *extra) in prism54_get_mac() argument
1359 dwrq->length = 0; in prism54_get_mac()
1369 dwrq->length++; in prism54_get_mac()
1460 struct iw_point *dwrq, char *extra) in prism54_kick_all() argument