Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/pci Use device name instead of hardcoded one.
details: https://anonhg.NetBSD.org/src-all/rev/3103f373366f
branches: trunk
changeset: 952233:3103f373366f
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Sun Oct 04 17:54:33 2020 +1100
description:
Use device name instead of hardcoded one.
diffstat:
sys/dev/pci/if_iwn.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 5c6eab93504d -r 3103f373366f sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Tue Sep 29 22:04:40 2020 +1000
+++ b/sys/dev/pci/if_iwn.c Sun Oct 04 17:54:33 2020 +1100
@@ -603,14 +603,14 @@
struct iwn_softc *sc = device_private(self);
struct ieee80211com *ic = &sc->sc_ic;
- if (ic->ic_name != NULL && strcmp("iwn", ic->ic_name) == 0)
+ if (ic->ic_name != NULL && strcmp(device_xname(self), ic->ic_name) == 0)
return 0;
+ ic->ic_name = device_xname(self);
aprint_normal_dev(self, "MIMO %dT%dR, %.4s, address %s\n",
sc->ntxchains, sc->nrxchains, sc->eeprom_domain,
ether_sprintf(ic->ic_macaddr));
- ic->ic_name = "iwn";
ic->ic_softc = sc;
ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
Home |
Main Index |
Thread Index |
Old Index