Lines Matching defs:phy_info
3807 iwm_calc_rssi(struct iwm_softc *sc, struct iwm_rx_phy_info *phy_info)
3813 val = le32toh(phy_info->non_cfg_phy[IWM_RX_INFO_AGC_IDX]);
3817 val = le32toh(phy_info->non_cfg_phy[IWM_RX_INFO_RSSI_AB_IDX]);
3841 iwm_get_signal_strength(struct iwm_softc *sc, struct iwm_rx_phy_info *phy_info)
3846 val = le32toh(phy_info->non_cfg_phy[IWM_RX_INFO_ENERGY_ANT_ABC_IDX]);
3869 struct iwm_rx_phy_info *phy_info = (void *)pkt->data;
3873 sizeof(*phy_info), BUS_DMASYNC_POSTREAD);
3875 memcpy(&sc->sc_last_phy_info, phy_info, sizeof(sc->sc_last_phy_info));
3908 struct iwm_rx_phy_info *phy_info;
3919 phy_info = &sc->sc_last_phy_info;
3930 if (__predict_false(phy_info->cfg_phy_cnt > 20)) {
3932 phy_info->cfg_phy_cnt));
3942 device_timestamp = le32toh(phy_info->system_timestamp);
3945 rssi = iwm_get_signal_strength(sc, phy_info);
3947 rssi = iwm_calc_rssi(sc, phy_info);
3959 if (le32toh(phy_info->channel) < __arraycount(ic->ic_channels))
3960 c = &ic->ic_channels[le32toh(phy_info->channel)];
3972 if (phy_info->phy_flags & htole16(IWM_PHY_INFO_FLAG_SHPREAMBLE))
3975 htole16(ic->ic_channels[phy_info->channel].ic_freq);
3977 htole16(ic->ic_channels[phy_info->channel].ic_flags);
3980 tap->wr_tsft = phy_info->system_timestamp;
3981 if (phy_info->phy_flags &
3983 uint8_t mcs = (phy_info->rate_n_flags &
3988 uint8_t rate = (phy_info->rate_n_flags &