Created
April 25, 2018 08:49
-
-
Save a-rin/df491518f693aa6308e9d6ffb1b9e5f3 to your computer and use it in GitHub Desktop.
NetBSD if_axe.c patch: read MAC address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/sys/dev/usb/if_axe.c.orig 2018-04-24 19:56:09.007752000 +0900 | |
+++ src/sys/dev/usb/if_axe.c 2018-04-25 15:17:42.798143000 +0900 | |
@@ -980,7 +980,13 @@ | |
axe_ax_init(sc); | |
- if ((sc->axe_flags & AX772B) != 0) { | |
+ if (sc->axe_flags & (AX178 | AX772 | AX772A)) { | |
+ if (axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, sc->axe_enaddr)) | |
+ { | |
+ aprint_error_dev(self, | |
+ "failed to read ethernet address\n"); | |
+ } | |
+ } else if (!(sc->axe_flags & AX772B)) { | |
if (axe_cmd(sc, AXE_172_CMD_READ_NODEID, 0, 0, sc->axe_enaddr)) | |
{ | |
aprint_error_dev(self, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment