Răsfoiți Sursa

ath9k: Initialize ah->hw

Previous code left it NULL.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Ben Greear 14 ani în urmă
părinte
comite
233536e126
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      drivers/net/wireless/ath/ath9k/init.c

+ 1 - 0
drivers/net/wireless/ath/ath9k/init.c

@@ -537,6 +537,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
 	if (!ah)
 		return -ENOMEM;
 
+	ah->hw = sc->hw;
 	ah->hw_version.devid = devid;
 	ah->hw_version.subsysid = subsysid;
 	sc->sc_ah = ah;