mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 05:36:24 +00:00
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: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
8df5d1b773
commit
e1e2f93ffa
1 changed files with 1 additions and 1 deletions
|
@ -1332,6 +1332,7 @@ static int ath_init(u16 devid, struct ath_softc *sc)
|
|||
|
||||
ah->ah_sc = sc;
|
||||
ah->hw_version.devid = devid;
|
||||
sc->sc_ah = ah;
|
||||
|
||||
r = ath9k_hw_attach(ah, sc);
|
||||
if (r) {
|
||||
|
@ -1340,7 +1341,6 @@ static int ath_init(u16 devid, struct ath_softc *sc)
|
|||
"initialization status: %d\n", r);
|
||||
goto bad;
|
||||
}
|
||||
sc->sc_ah = ah;
|
||||
|
||||
/* Get the hardware key cache size. */
|
||||
sc->keymax = ah->caps.keycache_size;
|
||||
|
|
Loading…
Reference in a new issue