Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Dec 2019 13:24:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        wireless@FreeBSD.org
Subject:   [Bug 242337] iwm - rate 0 causes iwm panic (and work around)
Message-ID:  <bug-242337-21060-isSHShaaFq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-242337-21060@https.bugs.freebsd.org/bugzilla/>
References:  <bug-242337-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242337

--- Comment #2 from dirkx@webweaving.org ---
As a workaround - in if_iwm.c -- simply picking the first rate from the tab=
le
(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 =3D 0; i <=3D IWM_RIDX_MAX; i++) {
                if (iwm_rates[i].rate =3D=3D 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=3D=3D0;
        // just picking the first value from the table works.
        if (rate =3D=3D 0) {
            device_printf(sc->sc_dev,
                "%s: WARNING: using first rate fom the table.\n",
                __func__);
            return 0;
        };
        return -1;
}

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242337-21060-isSHShaaFq>