wreq 1444 dev/ic/if_wi.c wi_setdef(struct wi_softc *sc, struct wi_req *wreq)
wreq 1451 dev/ic/if_wi.c switch(wreq->wi_type) {
wreq 1453 dev/ic/if_wi.c bcopy((char *)&wreq->wi_val, LLADDR(ifp->if_sadl),
wreq 1455 dev/ic/if_wi.c bcopy((char *)&wreq->wi_val, (char *)&sc->sc_ic.ic_myaddr,
wreq 1459 dev/ic/if_wi.c error = wi_sync_media(sc, letoh16(wreq->wi_val[0]),
wreq 1464 dev/ic/if_wi.c letoh16(wreq->wi_val[0]));
wreq 1467 dev/ic/if_wi.c sc->wi_max_data_len = letoh16(wreq->wi_val[0]);
wreq 1470 dev/ic/if_wi.c sc->wi_rts_thresh = letoh16(wreq->wi_val[0]);
wreq 1473 dev/ic/if_wi.c sc->wi_ap_density = letoh16(wreq->wi_val[0]);
wreq 1476 dev/ic/if_wi.c sc->wi_create_ibss = letoh16(wreq->wi_val[0]);
wreq 1480 dev/ic/if_wi.c sc->wi_channel = letoh16(wreq->wi_val[0]);
wreq 1484 dev/ic/if_wi.c (u_int8_t *)&wreq->wi_val[1], letoh16(wreq->wi_val[0]));
wreq 1488 dev/ic/if_wi.c (u_int8_t *)&wreq->wi_val[1], letoh16(wreq->wi_val[0]));
wreq 1492 dev/ic/if_wi.c (u_int8_t *)&wreq->wi_val[1], letoh16(wreq->wi_val[0]));
wreq 1495 dev/ic/if_wi.c sc->wi_pm_enabled = letoh16(wreq->wi_val[0]);
wreq 1498 dev/ic/if_wi.c sc->wi_mor_enabled = letoh16(wreq->wi_val[0]);
wreq 1501 dev/ic/if_wi.c sc->wi_max_sleep = letoh16(wreq->wi_val[0]);
wreq 1504 dev/ic/if_wi.c sc->wi_authtype = letoh16(wreq->wi_val[0]);
wreq 1507 dev/ic/if_wi.c sc->wi_roaming = letoh16(wreq->wi_val[0]);
wreq 1510 dev/ic/if_wi.c sc->wi_diversity = letoh16(wreq->wi_val[0]);
wreq 1513 dev/ic/if_wi.c sc->wi_enh_security = letoh16(wreq->wi_val[0]);
wreq 1516 dev/ic/if_wi.c sc->wi_use_wep = letoh16(wreq->wi_val[0]);
wreq 1519 dev/ic/if_wi.c sc->wi_tx_key = letoh16(wreq->wi_val[0]);
wreq 1522 dev/ic/if_wi.c bcopy((char *)wreq, (char *)&sc->wi_keys,
wreq 1526 dev/ic/if_wi.c switch (letoh16(wreq->wi_val[0])) {
wreq 1535 dev/ic/if_wi.c WI_PRT_ARG(sc), letoh16(wreq->wi_val[0]));
wreq 1557 dev/ic/if_wi.c struct wi_req *wreq = NULL;
wreq 1647 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1648 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1649 dev/ic/if_wi.c error = copyin(ifr->ifr_data, wreq, sizeof(*wreq));
wreq 1652 dev/ic/if_wi.c if (wreq->wi_len > WI_MAX_DATALEN) {
wreq 1656 dev/ic/if_wi.c switch (wreq->wi_type) {
wreq 1659 dev/ic/if_wi.c bcopy((char *)&sc->wi_stats, (char *)&wreq->wi_val,
wreq 1661 dev/ic/if_wi.c wreq->wi_len = (sizeof(sc->wi_stats) / 2) + 1;
wreq 1666 dev/ic/if_wi.c bzero(wreq, sizeof(struct wi_ltv_keys));
wreq 1668 dev/ic/if_wi.c bcopy((char *)&sc->wi_keys, wreq,
wreq 1672 dev/ic/if_wi.c wreq->wi_len = 2;
wreq 1673 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_procframe);
wreq 1676 dev/ic/if_wi.c wreq->wi_len = 2;
wreq 1677 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->sc_firmware_type ==
wreq 1681 dev/ic/if_wi.c wreq->wi_val[0] =
wreq 1683 dev/ic/if_wi.c wreq->wi_len = 1;
wreq 1687 dev/ic/if_wi.c memcpy((char *)wreq->wi_val,
wreq 1690 dev/ic/if_wi.c wreq->wi_len = sc->wi_scanbuf_len;
wreq 1695 dev/ic/if_wi.c if (wi_read_record(sc, (struct wi_ltv_gen *)wreq)) {
wreq 1700 dev/ic/if_wi.c error = copyout(wreq, ifr->ifr_data, sizeof(*wreq));
wreq 1705 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1706 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1707 dev/ic/if_wi.c error = copyin(ifr->ifr_data, wreq, sizeof(*wreq));
wreq 1711 dev/ic/if_wi.c if (wreq->wi_len > WI_MAX_DATALEN)
wreq 1713 dev/ic/if_wi.c switch (wreq->wi_type) {
wreq 1717 dev/ic/if_wi.c error = wi_mgmt_xmit(sc, (caddr_t)&wreq->wi_val,
wreq 1718 dev/ic/if_wi.c wreq->wi_len);
wreq 1721 dev/ic/if_wi.c sc->wi_procframe = letoh16(wreq->wi_val[0]);
wreq 1731 dev/ic/if_wi.c (struct wi_ltv_gen *)wreq);
wreq 1735 dev/ic/if_wi.c error = wi_setdef(sc, wreq);
wreq 1750 dev/ic/if_wi.c if ((wreq->wi_type == WI_RID_SYMBOL_DIVERSITY &&
wreq 1752 dev/ic/if_wi.c (wreq->wi_type == WI_RID_ROAMING_MODE &&
wreq 1754 dev/ic/if_wi.c (wreq->wi_type == WI_RID_CREATE_IBSS &&
wreq 1756 dev/ic/if_wi.c (wreq->wi_type == WI_RID_MICROWAVE_OVEN &&
wreq 1758 dev/ic/if_wi.c (wreq->wi_type == WI_RID_ENH_SECURITY &&
wreq 1760 dev/ic/if_wi.c (wreq->wi_type == WI_RID_OWN_SSID &&
wreq 1761 dev/ic/if_wi.c wreq->wi_len != 0))
wreq 1765 dev/ic/if_wi.c error = wi_write_record(sc, (struct wi_ltv_gen *)wreq);
wreq 1767 dev/ic/if_wi.c error = wi_setdef(sc, wreq);
wreq 1773 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1774 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1775 dev/ic/if_wi.c error = copyin(ifr->ifr_data, wreq, sizeof(*wreq));
wreq 1783 dev/ic/if_wi.c error = wi_get_debug(sc, wreq);
wreq 1785 dev/ic/if_wi.c error = copyout(wreq, ifr->ifr_data, sizeof(*wreq));
wreq 1790 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1791 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1792 dev/ic/if_wi.c error = copyin(ifr->ifr_data, wreq, sizeof(*wreq));
wreq 1795 dev/ic/if_wi.c error = wi_set_debug(sc, wreq);
wreq 1803 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1804 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1805 dev/ic/if_wi.c wreq->wi_type = WI_RID_CURRENT_SSID;
wreq 1806 dev/ic/if_wi.c wreq->wi_len = WI_MAX_DATALEN;
wreq 1807 dev/ic/if_wi.c if (wi_read_record(sc, (struct wi_ltv_gen *)wreq) ||
wreq 1808 dev/ic/if_wi.c letoh16(wreq->wi_val[0]) > IEEE80211_NWID_LEN)
wreq 1813 dev/ic/if_wi.c wi_set_ssid(nwidp, (u_int8_t *)&wreq->wi_val[1],
wreq 1814 dev/ic/if_wi.c letoh16(wreq->wi_val[0]));
wreq 1871 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1872 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1873 dev/ic/if_wi.c wreq->wi_type = WI_RID_OWN_CHNL;
wreq 1874 dev/ic/if_wi.c wreq->wi_val[0] =
wreq 1876 dev/ic/if_wi.c error = wi_setdef(sc, wreq);
wreq 1881 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1882 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1883 dev/ic/if_wi.c wreq->wi_type = WI_RID_CURRENT_CHAN;
wreq 1884 dev/ic/if_wi.c wreq->wi_len = WI_MAX_DATALEN;
wreq 1885 dev/ic/if_wi.c if (wi_read_record(sc, (struct wi_ltv_gen *)wreq)) {
wreq 1890 dev/ic/if_wi.c letoh16(wreq->wi_val[0]);
wreq 1894 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1895 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1896 dev/ic/if_wi.c wreq->wi_type = WI_RID_CURRENT_BSSID;
wreq 1897 dev/ic/if_wi.c wreq->wi_len = WI_MAX_DATALEN;
wreq 1898 dev/ic/if_wi.c if (wi_read_record(sc, (struct wi_ltv_gen *)wreq)) {
wreq 1902 dev/ic/if_wi.c IEEE80211_ADDR_COPY(bssid->i_bssid, wreq->wi_val);
wreq 1917 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1918 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1919 dev/ic/if_wi.c wreq->wi_len = 3;
wreq 1920 dev/ic/if_wi.c wreq->wi_type = WI_RID_SCAN_REQ;
wreq 1921 dev/ic/if_wi.c wreq->wi_val[0] = 0x3FFF;
wreq 1922 dev/ic/if_wi.c wreq->wi_val[1] = 0x000F;
wreq 1925 dev/ic/if_wi.c (struct wi_ltv_gen *)wreq);
wreq 1954 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 1955 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 1956 dev/ic/if_wi.c wreq->wi_len = WI_MAX_DATALEN;
wreq 1957 dev/ic/if_wi.c wreq->wi_type = WI_RID_SCAN_RES;
wreq 1959 dev/ic/if_wi.c bcopy(sc->wi_scanbuf, wreq->wi_val,
wreq 1961 dev/ic/if_wi.c wreq->wi_len = sc->wi_scanbuf_len;
wreq 1965 dev/ic/if_wi.c if (wi_read_record(sc, (struct wi_ltv_gen *)wreq)) {
wreq 1969 dev/ic/if_wi.c p2 = (struct wi_scan_p2_hdr *)wreq->wi_val;
wreq 1976 dev/ic/if_wi.c for (na->na_nodes = j = 0; (i < (wreq->wi_len * 2) - len) &&
wreq 1982 dev/ic/if_wi.c res = (struct wi_scan_res *)((char *)wreq->wi_val + i);
wreq 2029 dev/ic/if_wi.c wreq = malloc(sizeof *wreq, M_DEVBUF, M_WAITOK);
wreq 2030 dev/ic/if_wi.c bzero(wreq, sizeof(*wreq));
wreq 2031 dev/ic/if_wi.c wreq->wi_len = WI_MAX_DATALEN;
wreq 2032 dev/ic/if_wi.c wreq->wi_type = WI_RID_ENH_SECURITY;
wreq 2033 dev/ic/if_wi.c if (wi_read_record(sc, (struct wi_ltv_gen *)wreq)) {
wreq 2037 dev/ic/if_wi.c sc->wi_enh_security = letoh16(wreq->wi_val[0]);
wreq 2071 dev/ic/if_wi.c if (wreq)
wreq 2072 dev/ic/if_wi.c free(wreq, M_DEVBUF);
wreq 2083 dev/ic/if_wi.c struct wi_req wreq;
wreq 2098 dev/ic/if_wi.c wreq.wi_len = WI_MAX_DATALEN;
wreq 2099 dev/ic/if_wi.c wreq.wi_type = WI_RID_SCAN_RES;
wreq 2101 dev/ic/if_wi.c if (wi_read_record(sc, (struct wi_ltv_gen *)&wreq) == 0 &&
wreq 2102 dev/ic/if_wi.c ((struct wi_scan_p2_hdr *)wreq.wi_val)->wi_reason == 0) {
wreq 2944 dev/ic/if_wi.c struct wi_req wreq;
wreq 2955 dev/ic/if_wi.c wreq.wi_type = WI_RID_CUR_TX_RATE;
wreq 2956 dev/ic/if_wi.c wreq.wi_len = WI_MAX_DATALEN;
wreq 2957 dev/ic/if_wi.c if (wi_read_record(sc, (struct wi_ltv_gen *)&wreq) == 0) {
wreq 2958 dev/ic/if_wi.c switch (letoh16(wreq.wi_val[0])) {
wreq 2991 dev/ic/if_wi.c wreq.wi_type = WI_RID_COMMQUAL;
wreq 2992 dev/ic/if_wi.c wreq.wi_len = WI_MAX_DATALEN;
wreq 2993 dev/ic/if_wi.c if (wi_read_record(sc, (struct wi_ltv_gen *)&wreq) == 0 &&
wreq 2994 dev/ic/if_wi.c letoh16(wreq.wi_val[0]) != 0)
wreq 3003 dev/ic/if_wi.c struct wi_req wreq;
wreq 3004 dev/ic/if_wi.c struct wi_ltv_keys *wk = (struct wi_ltv_keys *)&wreq;
wreq 3027 dev/ic/if_wi.c error = wi_write_record(sc, (struct wi_ltv_gen *)&wreq);
wreq 3031 dev/ic/if_wi.c if ((error = wi_setdef(sc, &wreq)))
wreq 3034 dev/ic/if_wi.c wreq.wi_len = 2;
wreq 3035 dev/ic/if_wi.c wreq.wi_type = WI_RID_TX_CRYPT_KEY;
wreq 3036 dev/ic/if_wi.c wreq.wi_val[0] = htole16(nwkey->i_defkid - 1);
wreq 3038 dev/ic/if_wi.c error = wi_write_record(sc, (struct wi_ltv_gen *)&wreq);
wreq 3042 dev/ic/if_wi.c if ((error = wi_setdef(sc, &wreq)))
wreq 3045 dev/ic/if_wi.c wreq.wi_type = WI_RID_ENCRYPTION;
wreq 3046 dev/ic/if_wi.c wreq.wi_val[0] = htole16(nwkey->i_wepon);
wreq 3048 dev/ic/if_wi.c error = wi_write_record(sc, (struct wi_ltv_gen *)&wreq);
wreq 3052 dev/ic/if_wi.c if ((error = wi_setdef(sc, &wreq)))
wreq 3221 dev/ic/if_wi.c wi_get_debug(struct wi_softc *sc, struct wi_req *wreq)
wreq 3225 dev/ic/if_wi.c wreq->wi_len = 1;
wreq 3227 dev/ic/if_wi.c switch (wreq->wi_type) {
wreq 3229 dev/ic/if_wi.c wreq->wi_len++;
wreq 3230 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_sleep);
wreq 3233 dev/ic/if_wi.c wreq->wi_len++;
wreq 3234 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_delaysupp);
wreq 3237 dev/ic/if_wi.c wreq->wi_len++;
wreq 3238 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_txsupp);
wreq 3241 dev/ic/if_wi.c wreq->wi_len++;
wreq 3242 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_monitor);
wreq 3245 dev/ic/if_wi.c wreq->wi_len += 3;
wreq 3246 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_ledtest);
wreq 3247 dev/ic/if_wi.c wreq->wi_val[1] = htole16(sc->wi_debug.wi_ledtest_param0);
wreq 3248 dev/ic/if_wi.c wreq->wi_val[2] = htole16(sc->wi_debug.wi_ledtest_param1);
wreq 3251 dev/ic/if_wi.c wreq->wi_len += 2;
wreq 3252 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_conttx);
wreq 3253 dev/ic/if_wi.c wreq->wi_val[1] = htole16(sc->wi_debug.wi_conttx_param0);
wreq 3256 dev/ic/if_wi.c wreq->wi_len++;
wreq 3257 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_contrx);
wreq 3260 dev/ic/if_wi.c wreq->wi_len += 2;
wreq 3261 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_sigstate);
wreq 3262 dev/ic/if_wi.c wreq->wi_val[1] = htole16(sc->wi_debug.wi_sigstate_param0);
wreq 3265 dev/ic/if_wi.c wreq->wi_len += 2;
wreq 3266 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_confbits);
wreq 3267 dev/ic/if_wi.c wreq->wi_val[1] = htole16(sc->wi_debug.wi_confbits_param0);
wreq 3278 dev/ic/if_wi.c wi_set_debug(struct wi_softc *sc, struct wi_req *wreq)
wreq 3283 dev/ic/if_wi.c switch (wreq->wi_type) {
wreq 3295 dev/ic/if_wi.c param0 = letoh16(wreq->wi_val[0]);
wreq 3307 dev/ic/if_wi.c param0 = letoh16(wreq->wi_val[0]);
wreq 3308 dev/ic/if_wi.c param1 = letoh16(wreq->wi_val[1]);
wreq 3314 dev/ic/if_wi.c param0 = letoh16(wreq->wi_val[0]);
wreq 3335 dev/ic/if_wi.c param0 = letoh16(wreq->wi_val[0]);
wreq 3340 dev/ic/if_wi.c param0 = letoh16(wreq->wi_val[0]);
wreq 3341 dev/ic/if_wi.c param1 = letoh16(wreq->wi_val[1]);
wreq 3353 dev/ic/if_wi.c cmd = WI_CMD_DEBUG | (wreq->wi_type << 8);
wreq 2258 dev/ic/pgt.c struct wi_req *wreq;
wreq 2287 dev/ic/pgt.c wreq = malloc(sizeof(*wreq), M_DEVBUF, M_WAITOK);
wreq 2288 dev/ic/pgt.c bzero(wreq, sizeof(*wreq));
wreq 2307 dev/ic/pgt.c (sizeof(wreq->wi_val) - sizeof(*p2hdr)) /
wreq 2309 dev/ic/pgt.c p2hdr = (struct wi_scan_p2_hdr *)&wreq->wi_val;
wreq 2312 dev/ic/pgt.c wreq->wi_len = (maxscan * WI_PRISM2_RES_SIZE) / 2 +
wreq 2314 dev/ic/pgt.c wreq->wi_type = WI_RID_SCAN_RES;
wreq 2326 dev/ic/pgt.c ((char *)&wreq->wi_val + sizeof(*p2hdr) +