Lines Matching refs:sc_rx_th

515 	sc->sc_rx_th.wr_ext_bitmap = htole32(1 << ATH_RADIOTAP_VENDOR_HEADER);  in ath_rx_tap_vendor()
518 sc->sc_rx_th.wr_vh.vh_oui[0] = 0x7f; in ath_rx_tap_vendor()
519 sc->sc_rx_th.wr_vh.vh_oui[1] = 0x03; in ath_rx_tap_vendor()
520 sc->sc_rx_th.wr_vh.vh_oui[2] = 0x00; in ath_rx_tap_vendor()
523 sc->sc_rx_th.wr_vh.vh_sub_ns = 0; in ath_rx_tap_vendor()
524 sc->sc_rx_th.wr_vh.vh_skip_len = in ath_rx_tap_vendor()
528 sc->sc_rx_th.wr_v.vh_version = 1; in ath_rx_tap_vendor()
530 sc->sc_rx_th.wr_v.vh_rx_chainmask = sc->sc_rxchainmask; in ath_rx_tap_vendor()
533 sc->sc_rx_th.wr_v.rssi_ctl[0] = rs->rs_rssi_ctl[0]; in ath_rx_tap_vendor()
534 sc->sc_rx_th.wr_v.rssi_ctl[1] = rs->rs_rssi_ctl[1]; in ath_rx_tap_vendor()
535 sc->sc_rx_th.wr_v.rssi_ctl[2] = rs->rs_rssi_ctl[2]; in ath_rx_tap_vendor()
536 sc->sc_rx_th.wr_v.rssi_ext[0] = rs->rs_rssi_ext[0]; in ath_rx_tap_vendor()
537 sc->sc_rx_th.wr_v.rssi_ext[1] = rs->rs_rssi_ext[1]; in ath_rx_tap_vendor()
538 sc->sc_rx_th.wr_v.rssi_ext[2] = rs->rs_rssi_ext[2]; in ath_rx_tap_vendor()
541 sc->sc_rx_th.wr_v.evm[0] = rs->rs_evm0; in ath_rx_tap_vendor()
542 sc->sc_rx_th.wr_v.evm[1] = rs->rs_evm1; in ath_rx_tap_vendor()
543 sc->sc_rx_th.wr_v.evm[2] = rs->rs_evm2; in ath_rx_tap_vendor()
545 sc->sc_rx_th.wr_v.evm[3] = rs->rs_evm3; in ath_rx_tap_vendor()
546 sc->sc_rx_th.wr_v.evm[4] = rs->rs_evm4; in ath_rx_tap_vendor()
549 sc->sc_rx_th.wr_v.vh_flags = ATH_VENDOR_PKT_RX; in ath_rx_tap_vendor()
552 sc->sc_rx_th.wr_v.vh_rx_hwrate = rs->rs_rate; in ath_rx_tap_vendor()
555 sc->sc_rx_th.wr_v.vh_rs_flags = rs->rs_flags; in ath_rx_tap_vendor()
558 sc->sc_rx_th.wr_v.vh_flags |= ATH_VENDOR_PKT_ISAGGR; in ath_rx_tap_vendor()
560 sc->sc_rx_th.wr_v.vh_flags |= ATH_VENDOR_PKT_MOREAGGR; in ath_rx_tap_vendor()
564 sc->sc_rx_th.wr_v.vh_phyerr_code = rs->rs_phyerr; in ath_rx_tap_vendor()
565 sc->sc_rx_th.wr_v.vh_flags |= ATH_VENDOR_PKT_RXPHYERR; in ath_rx_tap_vendor()
567 sc->sc_rx_th.wr_v.vh_phyerr_code = 0xff; in ath_rx_tap_vendor()
569 sc->sc_rx_th.wr_v.vh_rs_status = rs->rs_status; in ath_rx_tap_vendor()
570 sc->sc_rx_th.wr_v.vh_rssi = rs->rs_rssi; in ath_rx_tap_vendor()
588 sc->sc_rx_th.wr_rate = sc->sc_hwmap[rix].ieeerate; in ath_rx_tap()
589 sc->sc_rx_th.wr_flags = sc->sc_hwmap[rix].rxflags; in ath_rx_tap()
592 sc->sc_rx_th.wr_chan_flags &= ~CHAN_HT; in ath_rx_tap()
600 sc->sc_rx_th.wr_chan_flags |= CHAN_HT40U; in ath_rx_tap()
602 sc->sc_rx_th.wr_chan_flags |= CHAN_HT40D; in ath_rx_tap()
604 sc->sc_rx_th.wr_chan_flags |= CHAN_HT20; in ath_rx_tap()
605 } else if (sc->sc_rx_th.wr_rate & IEEE80211_RATE_MCS) { /* HT rate */ in ath_rx_tap()
609 sc->sc_rx_th.wr_chan_flags |= CHAN_HT20; in ath_rx_tap()
611 sc->sc_rx_th.wr_chan_flags |= CHAN_HT40U; in ath_rx_tap()
613 sc->sc_rx_th.wr_chan_flags |= CHAN_HT40D; in ath_rx_tap()
616 sc->sc_rx_th.wr_flags |= IEEE80211_RADIOTAP_F_SHORTGI; in ath_rx_tap()
619 sc->sc_rx_th.wr_tsf = htole64(ath_extend_tsf(sc, rs->rs_tstamp, tsf)); in ath_rx_tap()
621 sc->sc_rx_th.wr_flags |= IEEE80211_RADIOTAP_F_BADFCS; in ath_rx_tap()
623 sc->sc_rx_th.wr_antnoise = nf; in ath_rx_tap()
624 sc->sc_rx_th.wr_antsignal = nf + rs->rs_rssi; in ath_rx_tap()
625 sc->sc_rx_th.wr_antenna = rs->rs_antenna; in ath_rx_tap()