diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c index 09d6311b8e51..c97d132fd3b7 100644 --- a/sys/dev/iwm/if_iwm.c +++ b/sys/dev/iwm/if_iwm.c @@ -4282,6 +4282,8 @@ iwm_setrates(struct iwm_softc *sc, struct iwm_node *in, int dot11rate) // int txant = 0; int rix; + device_printf(sc->sc_dev, "%s: dot11rate=%d\n", __func__, dot11rate); + /* * Look up the rate index for the given legacy rate. * @@ -4340,6 +4342,15 @@ iwm_setrates(struct iwm_softc *sc, struct iwm_node *in, int dot11rate) int rate = rs->rs_rates[rix - i] & IEEE80211_RATE_VAL; int nextant; + device_printf(sc->sc_dev, + "%s: nrates=%d, i=%d, rate=%d, rix=%d, idx=%d\n", + __func__, + nrates, + i, + rate, + rix, + rix - i); + /* Map 802.11 rate to HW rate index. */ ridx = iwm_rate2ridx(sc, rate); if (ridx == -1)