aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index fa2c230c3c2f..605d3280733a 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1332,6 +1332,7 @@ static int ath_init(u16 devid, struct ath_softc *sc)
1332 1332
1333 ah->ah_sc = sc; 1333 ah->ah_sc = sc;
1334 ah->hw_version.devid = devid; 1334 ah->hw_version.devid = devid;
1335 sc->sc_ah = ah;
1335 1336
1336 r = ath9k_hw_attach(ah, sc); 1337 r = ath9k_hw_attach(ah, sc);
1337 if (r) { 1338 if (r) {
@@ -1340,7 +1341,6 @@ static int ath_init(u16 devid, struct ath_softc *sc)
1340 "initialization status: %d\n", r); 1341 "initialization status: %d\n", r);
1341 goto bad; 1342 goto bad;
1342 } 1343 }
1343 sc->sc_ah = ah;
1344 1344
1345 /* Get the hardware key cache size. */ 1345 /* Get the hardware key cache size. */
1346 sc->keymax = ah->caps.keycache_size; 1346 sc->keymax = ah->caps.keycache_size;