Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k: fix build with CONFIG_ATH9K_STATION_STATISTICS=y

kbuild bot reported that commit 592fa228f213 ("ath9k: remove struct
ath_atx_ac") broke the build when CONFIG_ATH9K_STATION_STATISTICS is y.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 592fa228f213 ("ath9k: remove struct ath_atx_ac")
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Felix Fietkau and committed by
Kalle Valo
12e03596 052633c1

+3 -17
+3 -17
drivers/net/wireless/ath/ath9k/debug_sta.c
··· 26 26 struct ath_node *an = file->private_data; 27 27 struct ath_softc *sc = an->sc; 28 28 struct ath_atx_tid *tid; 29 - struct ath_atx_ac *ac; 30 29 struct ath_txq *txq; 31 30 u32 len = 0, size = 4096; 32 31 char *buf; 33 32 size_t retval; 34 - int tidno, acno; 33 + int tidno; 35 34 36 35 buf = kzalloc(size, GFP_KERNEL); 37 36 if (buf == NULL) ··· 48 49 an->mpdudensity); 49 50 50 51 len += scnprintf(buf + len, size - len, 51 - "%2s%7s\n", "AC", "SCHED"); 52 - 53 - for (acno = 0, ac = &an->ac[acno]; 54 - acno < IEEE80211_NUM_ACS; acno++, ac++) { 55 - txq = ac->txq; 56 - ath_txq_lock(sc, txq); 57 - len += scnprintf(buf + len, size - len, 58 - "%2d%7d\n", 59 - acno, ac->sched); 60 - ath_txq_unlock(sc, txq); 61 - } 62 - 63 - len += scnprintf(buf + len, size - len, 64 52 "\n%3s%11s%10s%10s%10s%10s%9s%6s%8s\n", 65 53 "TID", "SEQ_START", "SEQ_NEXT", "BAW_SIZE", 66 54 "BAW_HEAD", "BAW_TAIL", "BAR_IDX", "SCHED", "PAUSED"); 67 55 68 56 for (tidno = 0, tid = &an->tid[tidno]; 69 57 tidno < IEEE80211_NUM_TIDS; tidno++, tid++) { 70 - txq = tid->ac->txq; 58 + txq = tid->txq; 71 59 ath_txq_lock(sc, txq); 72 60 if (tid->active) { 73 61 len += scnprintf(buf + len, size - len, ··· 66 80 tid->baw_head, 67 81 tid->baw_tail, 68 82 tid->bar_index, 69 - tid->sched); 83 + !list_empty(&tid->list)); 70 84 } 71 85 ath_txq_unlock(sc, txq); 72 86 }