Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/wlan/if_run.c
Show First 20 Lines • Show All 3,106 Lines • ▼ Show 20 Lines | tr_setup: | ||||
vap = data->ni->ni_vap; | vap = data->ni->ni_vap; | ||||
if (ieee80211_radiotap_active_vap(vap)) { | if (ieee80211_radiotap_active_vap(vap)) { | ||||
struct run_tx_radiotap_header *tap = &sc->sc_txtap; | struct run_tx_radiotap_header *tap = &sc->sc_txtap; | ||||
struct rt2860_txwi *txwi = | struct rt2860_txwi *txwi = | ||||
(struct rt2860_txwi *)(&data->desc + sizeof(struct rt2870_txd)); | (struct rt2860_txwi *)(&data->desc + sizeof(struct rt2870_txd)); | ||||
tap->wt_flags = 0; | tap->wt_flags = 0; | ||||
tap->wt_rate = rt2860_rates[data->ridx].rate; | tap->wt_rate = rt2860_rates[data->ridx].rate; | ||||
run_get_tsf(sc, &tap->wt_tsf); | |||||
tap->wt_chan_freq = htole16(ic->ic_curchan->ic_freq); | tap->wt_chan_freq = htole16(ic->ic_curchan->ic_freq); | ||||
tap->wt_chan_flags = htole16(ic->ic_curchan->ic_flags); | tap->wt_chan_flags = htole16(ic->ic_curchan->ic_flags); | ||||
tap->wt_hwqueue = index; | tap->wt_hwqueue = index; | ||||
if (le16toh(txwi->phy) & RT2860_PHY_SHPRE) | if (le16toh(txwi->phy) & RT2860_PHY_SHPRE) | ||||
tap->wt_flags |= IEEE80211_RADIOTAP_F_SHORTPRE; | tap->wt_flags |= IEEE80211_RADIOTAP_F_SHORTPRE; | ||||
ieee80211_radiotap_tx(vap, m); | ieee80211_radiotap_tx(vap, m); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 3,149 Lines • Show Last 20 Lines |