https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242337

--- Comment #2 from di...@webweaving.org ---
As a workaround - in if_iwm.c -- simply picking the first rate from the table
(the slowest) makes things work again although it emits below error:


    iwm0: frame 0/230 b800002c UNHANDLED (this should not happen)
    tun0: link state changed to UP

Function changed below.

static int
iwm_rate2ridx(struct iwm_softc *sc, uint8_t rate)
{
        int i;

        for (i = 0; i <= IWM_RIDX_MAX; i++) {
                if (iwm_rates[i].rate == rate)
                        return i;
        }

        device_printf(sc->sc_dev,
            "%s: WARNING: device rate for %u not found!!\n",
            __func__, rate);

        // On KPN Experia ADSL modems - one somehow gets a rate==0;
        // just picking the first value from the table works.
        if (rate == 0) {
            device_printf(sc->sc_dev,
                "%s: WARNING: using first rate fom the table.\n",
                __func__);
            return 0;
        };
        return -1;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Reply via email to