sys/dev/netif/iwn/if_iwn.c
/*
 * Process an RX_PHY firmware notification.  This is usually immediately
 * followed by an MPDU_RX_DONE notification.
 */
Process an RX_PHY firmware notification.  This is usually immediately
followed by an MPDU_RX_DONE notification.
Process an RX_PHY firmware notification . This is usually immediately followed by an MPDU_RX_DONE notification .
static void
iwn_rx_phy(struct iwn_softc *sc, struct iwn_rx_desc *desc,
    struct iwn_rx_data *data)
{
	struct iwn_rx_stat *stat = (struct iwn_rx_stat *)(desc + 1);
	DPRINTF(sc, IWN_DEBUG_CALIBRATE, "%s: received PHY stats\n", __func__);
	bus_dmamap_sync(sc->rxq.data_dmat, data->map, BUS_DMASYNC_POSTREAD);
	memcpy(&sc->last_rx_stat, stat, sizeof (*stat));
	sc->last_rx_valid = 1;
}
static void iwn_rx_phy ( struct iwn_softc * sc , struct iwn_rx_desc * desc , struct iwn_rx_data * data ) { struct iwn_rx_stat * stat = ( struct iwn_rx_stat * ) ( desc + 1 ) ; DPRINTF ( sc , IWN_DEBUG_CALIBRATE , " \n " , __func__ ) ; bus_dmamap_sync ( sc -> rxq . data_dmat , data -> map , BUS_DMASYNC_POSTREAD ) ; memcpy ( & sc -> last_rx_stat , stat , sizeof ( * stat ) ) ; sc -> last_rx_valid = 1 ; }
Process an RX_PHY firmware notification.
Process an RX_PHY firmware notification .
/* Save RX statistics, they will be used on MPDU_RX_DONE. */