Home | History | Annotate | Download | only in pcmcia

Lines Matching defs:body

1272 	struct malo_cmd_body_spec *body;
1273 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1277 hdr->size = htole16(sizeof(*body));
1281 body = (struct malo_cmd_body_spec *)(hdr + 1);
1282 memset(body, 0, sizeof(*body));
1284 memset(body->macaddr, 0xff, ETHER_ADDR_LEN);
1301 struct malo_cmd_body_spec *body;
1303 body = (struct malo_cmd_body_spec *)(hdr + 1);
1306 memcpy(ic->ic_myaddr, body->macaddr, ETHER_ADDR_LEN);
1337 struct malo_cmd_body_scan *body;
1344 psize = sizeof(*hdr) + sizeof(*body) +
1352 body = (struct malo_cmd_body_scan *)(hdr + 1);
1353 body->bsstype = 0x03; /* any BSS */
1354 memset(body->bssid, 0xff, ETHER_ADDR_LEN);
1356 body_ssid = (struct malo_cmd_tlv_ssid *)(body + 1);
1398 struct malo_cmd_body_rsp_scan *body;
1404 body = (struct malo_cmd_body_rsp_scan *)(hdr + 1);
1405 body->bufsize = le16toh(body->bufsize);
1407 DPRINTF(1, "bufsize=%d, APs=%d\n", body->bufsize, body->numofset);
1408 sc->sc_net_num = body->numofset;
1410 set = (struct malo_cmd_body_rsp_scan_set *)(body + 1);
1413 for (i = 0; i < body->numofset; i++) {
1484 struct malo_cmd_body_auth *body;
1485 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1489 hdr->size = htole16(sizeof(*body));
1493 body = (struct malo_cmd_body_auth *)(hdr + 1);
1494 memcpy(body->peermac, sc->sc_net[sc->sc_net_cur].bssid, ETHER_ADDR_LEN);
1495 body->authtype = 0;
1512 struct malo_cmd_body_wep *body;
1513 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1517 hdr->size = htole16(sizeof(*body));
1521 body = (struct malo_cmd_body_wep *)(hdr + 1);
1522 memset(body, 0, sizeof(*body));
1523 body->action = htole16(MALO_WEP_ACTION_TYPE_ADD);
1524 body->key_index = htole16(index);
1526 if (body->key_index == 0) {
1528 body->key_type_1 = MALO_WEP_KEY_TYPE_104BIT;
1530 body->key_type_1 = MALO_WEP_KEY_TYPE_40BIT;
1531 memcpy(body->key_value_1, key->wk_key, key->wk_keylen);
1533 if (body->key_index == 1) {
1535 body->key_type_2 = MALO_WEP_KEY_TYPE_104BIT;
1537 body->key_type_2 = MALO_WEP_KEY_TYPE_40BIT;
1538 memcpy(body->key_value_2, key->wk_key, key->wk_keylen);
1540 if (body->key_index == 2) {
1542 body->key_type_3 = MALO_WEP_KEY_TYPE_104BIT;
1544 body->key_type_3 = MALO_WEP_KEY_TYPE_40BIT;
1545 memcpy(body->key_value_3, key->wk_key, key->wk_keylen);
1547 if (body->key_index == 3) {
1549 body->key_type_4 = MALO_WEP_KEY_TYPE_104BIT;
1551 body->key_type_4 = MALO_WEP_KEY_TYPE_40BIT;
1552 memcpy(body->key_value_4, key->wk_key, key->wk_keylen);
1569 struct malo_cmd_body_snmp *body;
1570 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1574 hdr->size = htole16(sizeof(*body));
1578 body = (struct malo_cmd_body_snmp *)(hdr + 1);
1579 memset(body, 0, sizeof(*body));
1580 body->action = htole16(1);
1584 body->oid = htole16(MALO_OID_RTSTRESH);
1585 body->size = htole16(2);
1586 *(uint16_t *)body->data = htole16(2347);
1589 body->oid = htole16(MALO_OID_SHORTRETRY);
1590 body->size = htole16(2);
1591 *(uint16_t *)body->data = htole16(4);
1594 body->oid = htole16(MALO_OID_FRAGTRESH);
1595 body->size = htole16(2);
1596 *(uint16_t *)body->data = htole16(2346);
1599 body->oid = htole16(MALO_OID_80211D);
1600 body->size = htole16(2);
1601 *(uint16_t *)body->data = htole16(1);
1621 struct malo_cmd_body_radio *body;
1622 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1626 hdr->size = htole16(sizeof(*body));
1630 body = (struct malo_cmd_body_radio *)(hdr + 1);
1631 body->action = htole16(1);
1633 body->control =
1636 body->control = 0;
1652 struct malo_cmd_body_channel *body;
1653 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1657 hdr->size = htole16(sizeof(*body));
1661 body = (struct malo_cmd_body_channel *)(hdr + 1);
1662 memset(body, 0, sizeof(*body));
1663 body->action = htole16(1);
1664 body->channel = htole16(channel);
1681 struct malo_cmd_body_txpower *body;
1682 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1686 hdr->size = htole16(sizeof(*body));
1690 body = (struct malo_cmd_body_txpower *)(hdr + 1);
1691 body->action = htole16(1);
1692 body->txpower = htole16(txpower);
1708 struct malo_cmd_body_antenna *body;
1709 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1713 hdr->size = htole16(sizeof(*body));
1717 body = (struct malo_cmd_body_antenna *)(hdr + 1);
1719 body->action = htole16(action);
1724 body->antenna_mode = htole16(0xffff);
1729 body->antenna_mode = htole16(2);
1733 body->antenna_mode = 0;
1752 struct malo_cmd_body_macctrl *body;
1755 psize = sizeof(*hdr) + sizeof(*body);
1759 hdr->size = htole16(sizeof(*body));
1763 body = (struct malo_cmd_body_macctrl *)(hdr + 1);
1764 memset(body, 0, sizeof(*body));
1765 body->action = htole16(MALO_CMD_MACCTRL_RX_ON | MALO_CMD_MACCTRL_TX_ON);
1767 body->action |= htole16(MALO_CMD_MACCTRL_PROMISC_ON);
1783 struct malo_cmd_body_macaddr *body;
1784 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1788 hdr->size = htole16(sizeof(*body));
1792 body = (struct malo_cmd_body_macaddr *)(hdr + 1);
1793 body->action = htole16(1);
1794 memcpy(body->macaddr, macaddr, ETHER_ADDR_LEN);
1810 struct malo_cmd_body_assoc *body;
1818 psize = sizeof(*hdr) + sizeof(*body) + sizeof(*body_ssid) +
1826 body = (struct malo_cmd_body_assoc *)(hdr + 1);
1827 memset(body, 0, sizeof(*body));
1828 memcpy(body->peermac, sc->sc_net[sc->sc_net_cur].bssid, ETHER_ADDR_LEN);
1829 body->capinfo = htole16(sc->sc_net[sc->sc_net_cur].capinfo);
1830 body->listenintrv = htole16(10);
1832 body_ssid = (struct malo_cmd_tlv_ssid *)(body + 1);
1887 struct malo_cmd_body_rsp_assoc *body;
1889 body = (struct malo_cmd_body_rsp_assoc *)(hdr + 1);
1891 if (body->status) {
1893 device_xname(sc->sc_dev), body->status);
1906 struct malo_cmd_body_rate *body;
1907 const uint16_t psize = sizeof(*hdr) + sizeof(*body);
1911 hdr->size = htole16(sizeof(*body));
1915 body = (struct malo_cmd_body_rate *)(hdr + 1);
1916 body->action = htole16(1);
1918 body->hwauto = htole16(1);
1919 body->ratebitmap = htole16(MALO_RATE_BITMAP_AUTO);
1921 body->hwauto = 0;
1922 body->ratebitmap = htole16(cmalo_rate2bitmap(rate));
2005 * so we don't have to le16toh() all over the code. The body is
2007 * about the body endianness in the corresponding response routines.