Lines Matching defs:dwrq
419 struct iw_point *dwrq, char *extra)
429 dwrq->length = sizeof (struct iw_range);
682 struct iw_point *dwrq, char *extra)
693 dwrq->length = 0;
715 extra + dwrq->length,
720 if((extra + dwrq->length - current_ev) <= IW_EV_ADDR_LEN) {
728 dwrq->length = (current_ev - extra);
729 dwrq->flags = 0; /* todo */
736 struct iw_point *dwrq, char *extra)
744 if (dwrq->flags && dwrq->length) {
745 if (dwrq->length > 32)
747 essid.length = dwrq->length;
748 memcpy(essid.octets, extra, dwrq->length);
763 struct iw_point *dwrq, char *extra)
774 dwrq->flags = 1; /* set ESSID to ON for Wireless Extensions */
776 dwrq->length = min((u8)IW_ESSID_MAX_SIZE, essid->length);
778 dwrq->flags = 0;
779 dwrq->length = 0;
782 memcpy(extra, essid->octets, dwrq->length);
793 struct iw_point *dwrq, char *extra)
797 if (dwrq->length > IW_ESSID_MAX_SIZE)
802 memcpy(priv->nickname, extra, dwrq->length);
810 struct iw_point *dwrq, char *extra)
814 dwrq->length = 0;
817 dwrq->length = strlen(priv->nickname);
818 memcpy(extra, priv->nickname, dwrq->length);
1057 struct iw_point *dwrq, char *extra)
1068 if (dwrq->length > 0) {
1070 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
1078 if (!(dwrq->flags & IW_ENCODE_NOKEY)) {
1079 if (dwrq->length > KEY_SIZE_TKIP) {
1083 if (dwrq->length > KEY_SIZE_WEP104) {
1087 } else if (dwrq->length > KEY_SIZE_WEP40) {
1095 memcpy(key.key, extra, dwrq->length);
1114 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
1121 if (!(dwrq->flags & IW_ENCODE_MODE)) {
1128 if (dwrq->flags & IW_ENCODE_DISABLED) {
1134 if (dwrq->flags & IW_ENCODE_OPEN)
1137 if ((dwrq->flags & IW_ENCODE_RESTRICTED) || force) {
1144 if ((dwrq->flags & IW_ENCODE_MODE) || force) {
1158 struct iw_point *dwrq, char *extra)
1162 u32 devindex, index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
1176 dwrq->flags = IW_ENCODE_RESTRICTED;
1179 dwrq->flags = IW_ENCODE_OPEN;
1181 dwrq->flags = IW_ENCODE_DISABLED;
1184 dwrq->flags = 0;
1195 dwrq->length = key->length;
1196 memcpy(extra, key->key, dwrq->length);
1199 dwrq->flags |= devindex + 1;
1750 struct iw_point *dwrq, char *extra)
1754 enum oid_num_t n = dwrq->flags;
1757 dwrq->length = mgt_response_to_str(n, &r, extra);
1774 struct iw_point *dwrq, char *extra)
1776 u32 oid = dwrq->flags;
1877 struct iw_point *dwrq, char *extra)
1884 dwrq->length = 0;
1892 dwrq->length++;
1981 struct iw_point *dwrq, char *extra)