Lines Matching refs:rx_ev
6934 struct mgmt_rx_event_params rx_ev = {0}; in ath11k_mgmt_rx_event() local
6941 if (ath11k_pull_mgmt_rx_params_tlv(ab, skb, &rx_ev) != 0) { in ath11k_mgmt_rx_event()
6950 rx_ev.status); in ath11k_mgmt_rx_event()
6953 ar = ath11k_mac_get_ar_by_pdev_id(ab, rx_ev.pdev_id); in ath11k_mgmt_rx_event()
6957 rx_ev.pdev_id); in ath11k_mgmt_rx_event()
6963 (rx_ev.status & (WMI_RX_STATUS_ERR_DECRYPT | in ath11k_mgmt_rx_event()
6969 if (rx_ev.status & WMI_RX_STATUS_ERR_MIC) in ath11k_mgmt_rx_event()
6972 if (rx_ev.chan_freq >= ATH11K_MIN_6G_FREQ && in ath11k_mgmt_rx_event()
6973 rx_ev.chan_freq <= ATH11K_MAX_6G_FREQ) { in ath11k_mgmt_rx_event()
6975 status->freq = rx_ev.chan_freq; in ath11k_mgmt_rx_event()
6976 } else if (rx_ev.channel >= 1 && rx_ev.channel <= 14) { in ath11k_mgmt_rx_event()
6978 } else if (rx_ev.channel >= 36 && rx_ev.channel <= ATH11K_MAX_5G_CHAN) { in ath11k_mgmt_rx_event()
6989 if (rx_ev.phy_mode == MODE_11B && in ath11k_mgmt_rx_event()
6997 status->freq = ieee80211_channel_to_frequency(rx_ev.channel, in ath11k_mgmt_rx_event()
7000 status->signal = rx_ev.snr + ATH11K_DEFAULT_NOISE_FLOOR; in ath11k_mgmt_rx_event()
7001 status->rate_idx = ath11k_mac_bitrate_to_idx(sband, rx_ev.rate / 100); in ath11k_mgmt_rx_event()