Lines Matching refs:rxstatus
505 struct ath_htc_rx_status *rxstatus; in ath9k_rx_prepare() local
515 rxstatus = (struct ath_htc_rx_status *)skb->data; in ath9k_rx_prepare()
517 if (be16_to_cpu(rxstatus->rs_datalen) - in ath9k_rx_prepare()
521 rxstatus->rs_datalen, skb->len); in ath9k_rx_prepare()
526 memcpy(&rxbuf->rxstatus, rxstatus, HTC_RX_FRAME_HEADER_SIZE); in ath9k_rx_prepare()
543 if (rxbuf->rxstatus.rs_status != 0) { in ath9k_rx_prepare()
544 if (rxbuf->rxstatus.rs_status & ATH9K_RXERR_CRC) in ath9k_rx_prepare()
546 if (rxbuf->rxstatus.rs_status & ATH9K_RXERR_PHY) in ath9k_rx_prepare()
549 if (rxbuf->rxstatus.rs_status & ATH9K_RXERR_DECRYPT) { in ath9k_rx_prepare()
551 } else if (rxbuf->rxstatus.rs_status & ATH9K_RXERR_MIC) { in ath9k_rx_prepare()
558 rxbuf->rxstatus.rs_status &= ~ATH9K_RXERR_MIC; in ath9k_rx_prepare()
569 if (rxbuf->rxstatus.rs_status & in ath9k_rx_prepare()
574 if (rxbuf->rxstatus.rs_status & in ath9k_rx_prepare()
581 if (!(rxbuf->rxstatus.rs_status & ATH9K_RXERR_DECRYPT)) { in ath9k_rx_prepare()
583 keyix = rxbuf->rxstatus.rs_keyix; in ath9k_rx_prepare()
594 ath9k_process_rate(hw, rx_status, rxbuf->rxstatus.rs_rate, in ath9k_rx_prepare()
595 rxbuf->rxstatus.rs_flags); in ath9k_rx_prepare()
597 if (rxbuf->rxstatus.rs_rssi != ATH9K_RSSI_BAD && in ath9k_rx_prepare()
598 !rxbuf->rxstatus.rs_moreaggr) in ath9k_rx_prepare()
600 rxbuf->rxstatus.rs_rssi); in ath9k_rx_prepare()
605 rxbuf->rxstatus.rs_rssi = ATH_EP_RND(last_rssi, in ath9k_rx_prepare()
608 if (rxbuf->rxstatus.rs_rssi < 0) in ath9k_rx_prepare()
609 rxbuf->rxstatus.rs_rssi = 0; in ath9k_rx_prepare()
612 priv->ah->stats.avgbrssi = rxbuf->rxstatus.rs_rssi; in ath9k_rx_prepare()
614 rx_status->mactime = be64_to_cpu(rxbuf->rxstatus.rs_tstamp); in ath9k_rx_prepare()
617 rx_status->signal = rxbuf->rxstatus.rs_rssi + ATH_DEFAULT_NOISE_FLOOR; in ath9k_rx_prepare()
618 rx_status->antenna = rxbuf->rxstatus.rs_antenna; in ath9k_rx_prepare()