Skip to content

Commit

Permalink
ath9k: move cache setting of softc ah prior to attach
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Aug 4, 2009
1 parent 8df5d1b commit e1e2f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit e1e2f93

Please sign in to comment.