ath9k: make per-WMM-AC queue sizes configurable via debugfs
[deliverable/linux.git] / drivers / net / wireless / ath / ath9k / debug.c
index 2831258d9507e566df77f598d6c626fd111d22b9..b9ea067a7bb5e8a5bf7a9c60cd5529b113ba0905 100644 (file)
@@ -348,8 +348,6 @@ void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status)
                sc->debug.stats.istats.txok++;
        if (status & ATH9K_INT_TXURN)
                sc->debug.stats.istats.txurn++;
-       if (status & ATH9K_INT_MIB)
-               sc->debug.stats.istats.mib++;
        if (status & ATH9K_INT_RXPHY)
                sc->debug.stats.istats.rxphyerr++;
        if (status & ATH9K_INT_RXKCM)
@@ -1558,6 +1556,14 @@ int ath9k_init_debug(struct ath_hw *ah)
                            &fops_interrupt);
        debugfs_create_file("xmit", S_IRUSR, sc->debug.debugfs_phy, sc,
                            &fops_xmit);
+       debugfs_create_u32("qlen_bk", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy,
+                          &sc->tx.txq_max_pending[WME_AC_BK]);
+       debugfs_create_u32("qlen_be", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy,
+                          &sc->tx.txq_max_pending[WME_AC_BE]);
+       debugfs_create_u32("qlen_vi", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy,
+                          &sc->tx.txq_max_pending[WME_AC_VI]);
+       debugfs_create_u32("qlen_vo", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy,
+                          &sc->tx.txq_max_pending[WME_AC_VO]);
        debugfs_create_file("stations", S_IRUSR, sc->debug.debugfs_phy, sc,
                            &fops_stations);
        debugfs_create_file("misc", S_IRUSR, sc->debug.debugfs_phy, sc,
This page took 0.024952 seconds and 5 git commands to generate.