Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F158006449
D50542.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
585 B
Referenced Files
None
Subscribers
None
D50542.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D50542: mtw: fix display of the MAC revision
Attached
Detach File
Event Timeline
Log In to Comment