Page MenuHomeFreeBSD

D50542.diff
No OneTemporary

D50542.diff

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) {

File Metadata

Mime Type
text/plain
Expires
Thu, May 28, 10:20 AM (14 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33583490
Default Alt Text
D50542.diff (585 B)

Event Timeline