Lines Matching defs:hh
3557 struct atw_frame *hh;
3693 hh = mtod(m0, struct atw_frame *);
3694 wh = &hh->atw_ihdr;
3706 memcpy(hh->atw_dst, wh->i_addr3, IEEE80211_ADDR_LEN);
3708 memcpy(hh->atw_dst, wh->i_addr1, IEEE80211_ADDR_LEN);
3710 *(u_int16_t*)hh->atw_fc = *(u_int16_t*)wh->i_fc;
3713 memset(&hh->u, 0, sizeof(hh->u));
3715 hh->atw_rate = rate * 5;
3720 hh->atw_service = IEEE80211_PLCP_SERVICE; /* XXX guess */
3721 hh->atw_paylen = htole16(m0->m_pkthdr.len -
3724 hh->atw_fragthr = htole16(ATW_FRAGTHR_FRAGTHR_MASK);
3725 hh->atw_rtylmt = 3;
3726 hh->atw_hdrctl = htole16(ATW_HDRCTL_UNKNOWN1);
3729 hh->atw_hdrctl |= htole16(ATW_HDRCTL_WEP);
3730 hh->atw_keyid = ic->ic_wep_txkey;
3734 hh->atw_head_plcplen = htole16(txs->txs_d0.d_plcp_len);
3735 hh->atw_tail_plcplen = htole16(txs->txs_dn.d_plcp_len);
3737 hh->atw_head_plcplen |= htole16(0x8000);
3739 hh->atw_tail_plcplen |= htole16(0x8000);
3740 hh->atw_head_dur = htole16(txs->txs_d0.d_rts_dur);
3741 hh->atw_tail_dur = htole16(txs->txs_dn.d_rts_dur);
3744 if (IEEE80211_IS_MULTICAST(hh->atw_dst)) {
3745 hh->atw_fragthr = htole16(ATW_FRAGTHR_FRAGTHR_MASK);
3747 hh->atw_hdrctl |= htole16(ATW_HDRCTL_RTSCTS);
3751 hh->atw_fragnum = 0;
3756 sc->sc_dev.dv_xname, ether_sprintf(hh->atw_dst),
3757 hh->atw_rate, hh->atw_service, hh->atw_paylen);
3762 sc->sc_dev.dv_xname, hh->atw_fc[0], hh->atw_fc[1],
3763 hh->atw_tail_plcplen, hh->atw_head_plcplen,
3764 hh->atw_tail_dur, hh->atw_head_dur);
3768 sc->sc_dev.dv_xname, hh->atw_hdrctl,
3769 hh->atw_fragthr, hh->atw_fragnum, hh->atw_rtylmt);
3772 sc->sc_dev.dv_xname, hh->atw_keyid);