Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 233536e1 authored by Ben Greear's avatar Ben Greear Committed by John W. Linville
Browse files

ath9k: Initialize ah->hw



Previous code left it NULL.

Signed-off-by: default avatarBen Greear <greearb@candelatech.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1f427dd9
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -537,6 +537,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
	if (!ah)
	if (!ah)
		return -ENOMEM;
		return -ENOMEM;


	ah->hw = sc->hw;
	ah->hw_version.devid = devid;
	ah->hw_version.devid = devid;
	ah->hw_version.subsysid = subsysid;
	ah->hw_version.subsysid = subsysid;
	sc->sc_ah = ah;
	sc->sc_ah = ah;