iwm: add missing 'Rx errors' counter incrementation.
This commit is contained in:
parent
6dcc1178c4
commit
4623c73135
@ -2918,14 +2918,14 @@ iwm_mvm_rx_rx_mpdu(struct iwm_softc *sc,
|
||||
device_printf(sc->sc_dev,
|
||||
"dsp size out of range [0,20]: %d\n",
|
||||
phy_info->cfg_phy_cnt);
|
||||
return;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!(rx_pkt_status & IWM_RX_MPDU_RES_STATUS_CRC_OK) ||
|
||||
!(rx_pkt_status & IWM_RX_MPDU_RES_STATUS_OVERRUN_OK)) {
|
||||
IWM_DPRINTF(sc, IWM_DEBUG_RECV,
|
||||
"Bad CRC or FIFO: 0x%08X.\n", rx_pkt_status);
|
||||
return; /* drop */
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (sc->sc_capaflags & IWM_UCODE_TLV_FLAGS_RX_ENERGY_API) {
|
||||
@ -2947,7 +2947,7 @@ iwm_mvm_rx_rx_mpdu(struct iwm_softc *sc,
|
||||
if (iwm_rx_addbuf(sc, IWM_RBUF_SIZE, sc->rxq.cur) != 0) {
|
||||
device_printf(sc->sc_dev, "%s: unable to add more buffers\n",
|
||||
__func__);
|
||||
return;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
IWM_DPRINTF(sc, IWM_DEBUG_RECV,
|
||||
@ -3020,6 +3020,10 @@ iwm_mvm_rx_rx_mpdu(struct iwm_softc *sc,
|
||||
ieee80211_input_mimo_all(ic, m, &rxs);
|
||||
}
|
||||
IWM_LOCK(sc);
|
||||
|
||||
return;
|
||||
|
||||
fail: counter_u64_add(ic->ic_ierrors, 1);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user