summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2011-01-10 10:11:44 +0300
committerJohn W. Linville <linville@tuxdriver.com>2011-01-21 23:32:21 +0300
commit233536e126056f65a8aac7ff38788d19dbb53299 (patch)
tree337ccdc6efde57eb5d846fdd00c6eff4e97e749c /drivers/net
parent1f427dd913a1bf61f2d124d12a022ca2f1d27f53 (diff)
downloadlinux-233536e126056f65a8aac7ff38788d19dbb53299.tar.xz
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index 767d8b86f1e1..23b299818b18 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/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;