Commit e1e2f93f authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville

ath9k: move cache setting of softc ah prior to attach

We do this in case attach and friends try to get back to
ah from the softc somehow.
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8df5d1b7
...@@ -1332,6 +1332,7 @@ static int ath_init(u16 devid, struct ath_softc *sc) ...@@ -1332,6 +1332,7 @@ static int ath_init(u16 devid, struct ath_softc *sc)
ah->ah_sc = sc; ah->ah_sc = sc;
ah->hw_version.devid = devid; ah->hw_version.devid = devid;
sc->sc_ah = ah;
r = ath9k_hw_attach(ah, sc); r = ath9k_hw_attach(ah, sc);
if (r) { if (r) {
...@@ -1340,7 +1341,6 @@ static int ath_init(u16 devid, struct ath_softc *sc) ...@@ -1340,7 +1341,6 @@ static int ath_init(u16 devid, struct ath_softc *sc)
"initialization status: %d\n", r); "initialization status: %d\n", r);
goto bad; goto bad;
} }
sc->sc_ah = ah;
/* Get the hardware key cache size. */ /* Get the hardware key cache size. */
sc->keymax = ah->caps.keycache_size; sc->keymax = ah->caps.keycache_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment