tx_frame
if ((n = tx_frame(d, seq++, buf + sent, count - sent,
struct wi_frame tx_frame;
bzero(&tx_frame, sizeof(tx_frame));
tx_frame.wi_frame_ctl = htole16(WI_FTYPE_DATA | WI_STYPE_DATA);
&tx_frame.wi_tx_rate) && !(ifp->if_flags & IFF_PROMISC)) {
&tx_frame.wi_addr1, ETHER_ADDR_LEN);
tx_frame.wi_tx_ctl = htole16(WI_ENC_TX_MGMT); /* XXX */
tx_frame.wi_frame_ctl |= htole16(WI_FCTL_FROMDS);
&tx_frame.wi_addr2, ETHER_ADDR_LEN);
&tx_frame.wi_addr3, ETHER_ADDR_LEN);
tx_frame.wi_tx_ctl = htole16(WI_ENC_TX_MGMT); /* XXX */
tx_frame.wi_frame_ctl |= htole16(WI_FCTL_TODS);
&tx_frame.wi_addr2, ETHER_ADDR_LEN);
&tx_frame.wi_addr3, ETHER_ADDR_LEN);
&tx_frame.wi_addr2, ETHER_ADDR_LEN);
bcopy(&eh->ether_dhost, &tx_frame.wi_dst_addr, ETHER_ADDR_LEN);
bcopy(&eh->ether_shost, &tx_frame.wi_src_addr, ETHER_ADDR_LEN);
tx_frame.wi_dat_len = m0->m_pkthdr.len - WI_SNAPHDR_LEN;
tx_frame.wi_dat[0] = htons(WI_SNAP_WORD0);
tx_frame.wi_dat[1] = htons(WI_SNAP_WORD1);
tx_frame.wi_len = htons(m0->m_pkthdr.len - WI_SNAPHDR_LEN);
tx_frame.wi_type = eh->ether_type;
tx_frame.wi_frame_ctl |= htole16(WI_FCTL_WEP);
bcopy(&tx_frame.wi_dat[0], &sc->wi_txbuf[4], 6);
bcopy(&tx_frame.wi_type, &sc->wi_txbuf[10], 2);
tx_frame.wi_dat_len);
tx_frame.wi_dat_len += IEEE80211_WEP_IVLEN +
tx_frame.wi_dat_len = htole16(tx_frame.wi_dat_len);
wi_write_data(sc, id, 0, (caddr_t)&tx_frame,
tx_frame.wi_dat_len = htole16(tx_frame.wi_dat_len);
wi_write_data(sc, id, 0, (caddr_t)&tx_frame,
tx_frame.wi_dat_len = htole16(m0->m_pkthdr.len);
wi_write_data(sc, id, 0, (caddr_t)&tx_frame,
struct wi_frame tx_frame;
bzero(&tx_frame, sizeof(tx_frame));
bcopy(hdr, &tx_frame.wi_frame_ctl, sizeof(struct wi_80211_hdr));
tx_frame.wi_tx_ctl = htole16(WI_ENC_TX_MGMT);
tx_frame.wi_dat_len = len - sizeof(struct wi_80211_hdr);
tx_frame.wi_len = htole16(tx_frame.wi_dat_len);
tx_frame.wi_dat_len = htole16(tx_frame.wi_dat_len);
wi_write_data(sc, id, 0, (caddr_t)&tx_frame, sizeof(struct wi_frame));
void *tx_frame;
void *tx_frame;