ath9k: Keep track of stations for debugfs.
[deliverable/linux.git] / drivers / net / wireless / ath / ath9k / init.c
index 23b299818b18dc71f1b6fe80bba1d03c694b88b7..59c01ca4379ee9137d08226145a272bf5c755116 100644 (file)
@@ -559,6 +559,10 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
        spin_lock_init(&sc->sc_serial_rw);
        spin_lock_init(&sc->sc_pm_lock);
        mutex_init(&sc->mutex);
+#ifdef CONFIG_ATH9K_DEBUGFS
+       spin_lock_init(&sc->nodes_lock);
+       INIT_LIST_HEAD(&sc->nodes);
+#endif
        tasklet_init(&sc->intr_tq, ath9k_tasklet, (unsigned long)sc);
        tasklet_init(&sc->bcon_tasklet, ath_beacon_tasklet,
                     (unsigned long)sc);
This page took 0.026978 seconds and 5 git commands to generate.