|
Lines 932-942
Link Here
|
| 932 |
if (ieee80211_radiotap_active(ic)) { |
932 |
if (ieee80211_radiotap_active(ic)) { |
| 933 |
struct rum_rx_radiotap_header *tap = &sc->sc_rxtap; |
933 |
struct rum_rx_radiotap_header *tap = &sc->sc_rxtap; |
| 934 |
|
934 |
|
| 935 |
/* XXX read tsf */ |
|
|
| 936 |
tap->wr_flags = 0; |
935 |
tap->wr_flags = 0; |
| 937 |
tap->wr_rate = ieee80211_plcp2rate(sc->sc_rx_desc.rate, |
936 |
tap->wr_rate = ieee80211_plcp2rate(sc->sc_rx_desc.rate, |
| 938 |
(flags & RT2573_RX_OFDM) ? |
937 |
(flags & RT2573_RX_OFDM) ? |
| 939 |
IEEE80211_T_OFDM : IEEE80211_T_CCK); |
938 |
IEEE80211_T_OFDM : IEEE80211_T_CCK); |
|
|
939 |
rum_read_multi(sc, RT2573_TXRX_CSR12, &tap->wr_tsft, |
| 940 |
sizeof(tap->wr_tsft)); |
| 940 |
tap->wr_antsignal = RT2573_NOISE_FLOOR + rssi; |
941 |
tap->wr_antsignal = RT2573_NOISE_FLOOR + rssi; |
| 941 |
tap->wr_antnoise = RT2573_NOISE_FLOOR; |
942 |
tap->wr_antnoise = RT2573_NOISE_FLOOR; |
| 942 |
tap->wr_antenna = sc->rx_ant; |
943 |
tap->wr_antenna = sc->rx_ant; |