Home | History | Annotate | Download | only in usb

Lines Matching defs:tap

1801 		struct otus_rx_radiotap_header *tap;
1803 tap = &sc->sc_rxtap;
1804 tap->wr_flags = 0;
1805 tap->wr_chan_freq = htole16(ic->ic_curchan->ic_freq);
1806 tap->wr_chan_flags = htole16(ic->ic_curchan->ic_flags);
1807 tap->wr_antsignal = tail->rssi;
1808 tap->wr_rate = 2; /* In case it can't be found below. */
1812 case 10: tap->wr_rate = 2; break;
1813 case 20: tap->wr_rate = 4; break;
1814 case 55: tap->wr_rate = 11; break;
1815 case 110: tap->wr_rate = 22; break;
1818 tap->wr_flags |= IEEE80211_RADIOTAP_F_SHORTPRE;
1822 case 0xb: tap->wr_rate = 12; break;
1823 case 0xf: tap->wr_rate = 18; break;
1824 case 0xa: tap->wr_rate = 24; break;
1825 case 0xe: tap->wr_rate = 36; break;
1826 case 0x9: tap->wr_rate = 48; break;
1827 case 0xd: tap->wr_rate = 72; break;
1828 case 0x8: tap->wr_rate = 96; break;
1829 case 0xc: tap->wr_rate = 108; break;
1833 bpf_mtap2(sc->sc_drvbpf, tap, sc->sc_rxtap_len, m, BPF_D_IN);
2038 struct otus_tx_radiotap_header *tap = &sc->sc_txtap;
2040 tap->wt_flags = 0;
2042 tap->wt_flags |= IEEE80211_RADIOTAP_F_WEP;
2043 tap->wt_rate = otus_rates[ridx].rate;
2044 tap->wt_chan_freq = htole16(ic->ic_curchan->ic_freq);
2045 tap->wt_chan_flags = htole16(ic->ic_curchan->ic_flags);
2047 bpf_mtap2(sc->sc_drvbpf, tap, sc->sc_txtap_len, m, BPF_D_OUT);