summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-03-23 13:07:36 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-03-23 13:07:36 +0000
commit7cd825001086b9c18ceb16b9f188113de653fa9b (patch)
treeb6ba803d2034571bc5f6826f50830975b2a6e9c0
parent0481a6c12fc923358f6ffff2a9dd26091ddeddb0 (diff)
print the mac address in dmesg like every other nic we have
ok damien@
-rw-r--r--sys/dev/usb/if_ral.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c
index 2a8ccc3471e..23d912205ba 100644
--- a/sys/dev/usb/if_ral.c
+++ b/sys/dev/usb/if_ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ral.c,v 1.15 2005/03/23 12:41:47 dlg Exp $ */
+/* $OpenBSD: if_ral.c,v 1.16 2005/03/23 13:07:35 dlg Exp $ */
/*-
* Copyright (c) 2005
@@ -395,8 +395,9 @@ USB_ATTACH(ural)
/* retrieve MAC address and various other things from EEPROM */
ural_read_eeprom(sc);
- printf("%s: MAC/BBP RT2570 (rev 0x%02x), RF %s\n",
- USBDEVNAME(sc->sc_dev), sc->asic_rev, ural_get_rf(sc->rf_rev));
+ printf("%s: MAC/BBP RT2570 (rev 0x%02x), RF %s, address %s\n",
+ USBDEVNAME(sc->sc_dev), sc->asic_rev, ural_get_rf(sc->rf_rev),
+ ether_sprintf(ic->ic_myaddr));
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */