Lines Matching refs:hh
3511 struct atw_frame *hh; in atw_start() local
3640 hh = mtod(m0, struct atw_frame *); in atw_start()
3641 wh = &hh->atw_ihdr; in atw_start()
3651 memcpy(hh->atw_dst, wh->i_addr3, IEEE80211_ADDR_LEN); in atw_start()
3653 memcpy(hh->atw_dst, wh->i_addr1, IEEE80211_ADDR_LEN); in atw_start()
3655 *(uint16_t*)hh->atw_fc = *(uint16_t*)wh->i_fc; in atw_start()
3658 memset(&hh->u, 0, sizeof(hh->u)); in atw_start()
3660 hh->atw_rate = rate * 5; in atw_start()
3665 hh->atw_service = 0x00; /* XXX guess */ in atw_start()
3666 hh->atw_paylen = htole16(m0->m_pkthdr.len - in atw_start()
3670 if (IEEE80211_IS_MULTICAST(hh->atw_dst)) in atw_start()
3671 hh->atw_fragthr = htole16(IEEE80211_FRAG_MAX); in atw_start()
3676 hh->atw_fragthr = htole16(ic->ic_fragthreshold); in atw_start()
3679 hh->atw_rtylmt = 3; in atw_start()
3683 hh->atw_keyid = ic->ic_def_txkey; in atw_start()
3687 hh->atw_head_plcplen = htole16(txs->txs_d0.d_plcp_len); in atw_start()
3688 hh->atw_tail_plcplen = htole16(txs->txs_dn.d_plcp_len); in atw_start()
3690 hh->atw_head_plcplen |= htole16(0x8000); in atw_start()
3692 hh->atw_tail_plcplen |= htole16(0x8000); in atw_start()
3693 hh->atw_head_dur = htole16(txs->txs_d0.d_rts_dur); in atw_start()
3694 hh->atw_tail_dur = htole16(txs->txs_dn.d_rts_dur); in atw_start()
3696 hh->atw_hdrctl = hdrctl; in atw_start()
3697 hh->atw_fragnum = npkt << 4; in atw_start()
3703 device_xname(sc->sc_dev), ether_sprintf(hh->atw_dst), in atw_start()
3704 hh->atw_rate, hh->atw_service, hh->atw_paylen); in atw_start()
3709 device_xname(sc->sc_dev), hh->atw_fc[0], hh->atw_fc[1], in atw_start()
3710 hh->atw_tail_plcplen, hh->atw_head_plcplen, in atw_start()
3711 hh->atw_tail_dur, hh->atw_head_dur); in atw_start()
3715 device_xname(sc->sc_dev), hh->atw_hdrctl, in atw_start()
3716 hh->atw_fragthr, hh->atw_fragnum, hh->atw_rtylmt); in atw_start()
3719 device_xname(sc->sc_dev), hh->atw_keyid); in atw_start()