Lines Matching refs:dwrq

418 		  struct iw_point *dwrq, char *extra)  in prism54_get_range()  argument
428 dwrq->length = sizeof (struct iw_range); in prism54_get_range()
681 struct iw_point *dwrq, char *extra) in prism54_get_scan() argument
692 dwrq->length = 0; in prism54_get_scan()
714 extra + dwrq->length, in prism54_get_scan()
719 if((extra + dwrq->length - current_ev) <= IW_EV_ADDR_LEN) { in prism54_get_scan()
727 dwrq->length = (current_ev - extra); in prism54_get_scan()
728 dwrq->flags = 0; /* todo */ in prism54_get_scan()
735 struct iw_point *dwrq, char *extra) in prism54_set_essid() argument
743 if (dwrq->flags && dwrq->length) { in prism54_set_essid()
744 if (dwrq->length > 32) in prism54_set_essid()
746 essid.length = dwrq->length; in prism54_set_essid()
747 memcpy(essid.octets, extra, dwrq->length); in prism54_set_essid()
762 struct iw_point *dwrq, char *extra) in prism54_get_essid() argument
773 dwrq->flags = 1; /* set ESSID to ON for Wireless Extensions */ in prism54_get_essid()
775 dwrq->length = min((u8)IW_ESSID_MAX_SIZE, essid->length); in prism54_get_essid()
777 dwrq->flags = 0; in prism54_get_essid()
778 dwrq->length = 0; in prism54_get_essid()
780 essid->octets[dwrq->length] = '\0'; in prism54_get_essid()
781 memcpy(extra, essid->octets, dwrq->length); in prism54_get_essid()
792 struct iw_point *dwrq, char *extra) in prism54_set_nick() argument
796 if (dwrq->length > IW_ESSID_MAX_SIZE) in prism54_set_nick()
801 memcpy(priv->nickname, extra, dwrq->length); in prism54_set_nick()
809 struct iw_point *dwrq, char *extra) in prism54_get_nick() argument
813 dwrq->length = 0; in prism54_get_nick()
816 dwrq->length = strlen(priv->nickname); in prism54_get_nick()
817 memcpy(extra, priv->nickname, dwrq->length); in prism54_get_nick()
1056 struct iw_point *dwrq, char *extra) in prism54_set_encode() argument
1067 if (dwrq->length > 0) { in prism54_set_encode()
1069 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in prism54_set_encode()
1077 if (!(dwrq->flags & IW_ENCODE_NOKEY)) { in prism54_set_encode()
1078 if (dwrq->length > KEY_SIZE_TKIP) { in prism54_set_encode()
1082 if (dwrq->length > KEY_SIZE_WEP104) { in prism54_set_encode()
1086 } else if (dwrq->length > KEY_SIZE_WEP40) { in prism54_set_encode()
1094 memcpy(key.key, extra, dwrq->length); in prism54_set_encode()
1113 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in prism54_set_encode()
1120 if (!(dwrq->flags & IW_ENCODE_MODE)) { in prism54_set_encode()
1127 if (dwrq->flags & IW_ENCODE_DISABLED) { in prism54_set_encode()
1133 if (dwrq->flags & IW_ENCODE_OPEN) in prism54_set_encode()
1136 if ((dwrq->flags & IW_ENCODE_RESTRICTED) || force) { in prism54_set_encode()
1143 if ((dwrq->flags & IW_ENCODE_MODE) || force) { in prism54_set_encode()
1157 struct iw_point *dwrq, char *extra) in prism54_get_encode() argument
1161 u32 devindex, index = (dwrq->flags & IW_ENCODE_INDEX) - 1; in prism54_get_encode()
1175 dwrq->flags = IW_ENCODE_RESTRICTED; in prism54_get_encode()
1178 dwrq->flags = IW_ENCODE_OPEN; in prism54_get_encode()
1180 dwrq->flags = IW_ENCODE_DISABLED; in prism54_get_encode()
1183 dwrq->flags = 0; in prism54_get_encode()
1194 dwrq->length = key->length; in prism54_get_encode()
1195 memcpy(extra, key->key, dwrq->length); in prism54_get_encode()
1198 dwrq->flags |= devindex + 1; in prism54_get_encode()
1751 struct iw_point *dwrq, char *extra) in prism54_get_oid() argument
1755 enum oid_num_t n = dwrq->flags; in prism54_get_oid()
1758 dwrq->length = mgt_response_to_str(n, &r, extra); in prism54_get_oid()
1775 struct iw_point *dwrq, char *extra) in prism54_set_raw() argument
1777 u32 oid = dwrq->flags; in prism54_set_raw()
1878 struct iw_point *dwrq, char *extra) in prism54_get_mac() argument
1885 dwrq->length = 0; in prism54_get_mac()
1893 dwrq->length++; in prism54_get_mac()
1982 struct iw_point *dwrq, char *extra) in prism54_kick_all() argument