NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52899: Kernel panic with iwm



Christos Zoulas wrote:
> Does this fix it?

No, it doesn't fix it. Because you omitted the ifp definition in your patch,
below is the change I tested:

 iwm_preinit(struct iwm_softc *sc)
 {
        struct ieee80211com *ic = &sc->sc_ic;
+       struct ifnet *ifp = &sc->sc_ec.ec_if;
        int err;

        if (ISSET(sc->sc_flags, IWM_FLAG_ATTACHED))
@@ -7758,6 +7759,7 @@ iwm_preinit(struct iwm_softc *sc)
        if (sc->sc_nvm.sku_cap_band_52GHz_enable)
                ic->ic_sup_rates[IEEE80211_MODE_11A] = ieee80211_std_rateset_11a;

+       ether_ifdetach(ifp);
        ieee80211_ifattach(ic);

        ic->ic_node_alloc = iwm_node_alloc;

-- 
Alex


Home | Main Index | Thread Index | Old Index