diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2015-03-29 06:05:00 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2015-03-29 06:05:00 +0000 |
| commit | 9cecaef7d629134e73a4be21d0ca6e89f3fd0ebe (patch) | |
| tree | 26c67117bd0e499ac1cd5260d63d269472e84e24 /sys/dev/ath | |
| parent | 912a62418acc8e8b082fa40439d4fccaae2e298b (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath')
| -rw-r--r-- | sys/dev/ath/if_ath.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index c35651e2ead8..ecf9da5a3c45 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -1204,8 +1204,12 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) sc->sc_hasveol = ath_hal_hasveol(ah); /* get mac address from kenv first, then hardware */ - if (ath_fetch_mac_kenv(sc, macaddr) < 0) + if (ath_fetch_mac_kenv(sc, macaddr) == 0) { + /* Tell the HAL now about the new MAC */ + ath_hal_setmac(ah, macaddr); + } else { ath_hal_getmac(ah, macaddr); + } if (sc->sc_hasbmask) ath_hal_getbssidmask(ah, sc->sc_hwbssidmask); |
