diff --git a/sys/dev/usb/wlan/if_mtw.c b/sys/dev/usb/wlan/if_mtw.c --- a/sys/dev/usb/wlan/if_mtw.c +++ b/sys/dev/usb/wlan/if_mtw.c @@ -516,7 +516,7 @@ struct ieee80211com *ic = &sc->sc_ic; uint32_t ver; int i, ret; - // uint32_t tmp; + uint32_t tmp; uint8_t iface_index; int ntries, error; @@ -579,6 +579,11 @@ goto detach; } + + if (mtw_read(sc, MTW_MAC_VER_ID, &tmp) != 0) + goto detach; + sc->mac_rev = tmp & 0xffff; + mtw_load_microcode(sc); ret = msleep(&sc->fwloading, &sc->sc_mtx, 0, "fwload", 3 * hz); if (ret == EWOULDBLOCK || sc->fwloading != 1) {