hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/wireless/ath/ath9k/debug.c
....@@ -148,7 +148,7 @@
148148 { "OFDM LEVEL", ah->ani.ofdmNoiseImmunityLevel },
149149 { "CCK LEVEL", ah->ani.cckNoiseImmunityLevel },
150150 { "SPUR UP", ah->stats.ast_ani_spurup },
151
- { "SPUR DOWN", ah->stats.ast_ani_spurup },
151
+ { "SPUR DOWN", ah->stats.ast_ani_spurdown },
152152 { "OFDM WS-DET ON", ah->stats.ast_ani_ofdmon },
153153 { "OFDM WS-DET OFF", ah->stats.ast_ani_ofdmoff },
154154 { "MRC-CCK ON", ah->stats.ast_ani_ccklow },
....@@ -785,35 +785,35 @@
785785 {
786786 int qnum = txq->axq_qnum;
787787
788
- TX_STAT_INC(qnum, tx_pkts_all);
788
+ TX_STAT_INC(sc, qnum, tx_pkts_all);
789789 sc->debug.stats.txstats[qnum].tx_bytes_all += bf->bf_mpdu->len;
790790
791791 if (bf_isampdu(bf)) {
792792 if (flags & ATH_TX_ERROR)
793
- TX_STAT_INC(qnum, a_xretries);
793
+ TX_STAT_INC(sc, qnum, a_xretries);
794794 else
795
- TX_STAT_INC(qnum, a_completed);
795
+ TX_STAT_INC(sc, qnum, a_completed);
796796 } else {
797797 if (ts->ts_status & ATH9K_TXERR_XRETRY)
798
- TX_STAT_INC(qnum, xretries);
798
+ TX_STAT_INC(sc, qnum, xretries);
799799 else
800
- TX_STAT_INC(qnum, completed);
800
+ TX_STAT_INC(sc, qnum, completed);
801801 }
802802
803803 if (ts->ts_status & ATH9K_TXERR_FILT)
804
- TX_STAT_INC(qnum, txerr_filtered);
804
+ TX_STAT_INC(sc, qnum, txerr_filtered);
805805 if (ts->ts_status & ATH9K_TXERR_FIFO)
806
- TX_STAT_INC(qnum, fifo_underrun);
806
+ TX_STAT_INC(sc, qnum, fifo_underrun);
807807 if (ts->ts_status & ATH9K_TXERR_XTXOP)
808
- TX_STAT_INC(qnum, xtxop);
808
+ TX_STAT_INC(sc, qnum, xtxop);
809809 if (ts->ts_status & ATH9K_TXERR_TIMER_EXPIRED)
810
- TX_STAT_INC(qnum, timer_exp);
810
+ TX_STAT_INC(sc, qnum, timer_exp);
811811 if (ts->ts_flags & ATH9K_TX_DESC_CFG_ERR)
812
- TX_STAT_INC(qnum, desc_cfg_err);
812
+ TX_STAT_INC(sc, qnum, desc_cfg_err);
813813 if (ts->ts_flags & ATH9K_TX_DATA_UNDERRUN)
814
- TX_STAT_INC(qnum, data_underrun);
814
+ TX_STAT_INC(sc, qnum, data_underrun);
815815 if (ts->ts_flags & ATH9K_TX_DELIM_UNDERRUN)
816
- TX_STAT_INC(qnum, delim_underrun);
816
+ TX_STAT_INC(sc, qnum, delim_underrun);
817817 }
818818
819819 void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs)
....@@ -989,19 +989,6 @@
989989
990990 return 0;
991991 }
992
-
993
-static int open_file_dump_nfcal(struct inode *inode, struct file *f)
994
-{
995
- return single_open(f, read_file_dump_nfcal, inode->i_private);
996
-}
997
-
998
-static const struct file_operations fops_dump_nfcal = {
999
- .read = seq_read,
1000
- .open = open_file_dump_nfcal,
1001
- .owner = THIS_MODULE,
1002
- .llseek = seq_lseek,
1003
- .release = single_release,
1004
-};
1005992
1006993 #ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
1007994 static ssize_t read_file_btcoex(struct file *file, char __user *user_buf,
....@@ -1458,9 +1445,6 @@
14581445 sc, &fops_ackto);
14591446 #endif
14601447 debugfs_create_file("tpc", 0600, sc->debug.debugfs_phy, sc, &fops_tpc);
1461
-
1462
- debugfs_create_u16("airtime_flags", 0600,
1463
- sc->debug.debugfs_phy, &sc->airtime_flags);
14641448
14651449 debugfs_create_file("nf_override", 0600,
14661450 sc->debug.debugfs_phy, sc, &fops_nf_override);