From: Johannes Berg For testing that a TX BA session has the expected buffer size (specifically for SMD Transition), show it in debugfs. Reviewed-by: Miriam Rachel Korenblit Signed-off-by: Johannes Berg --- net/mac80211/debugfs_sta.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 690c186e3bb9..2c81efdf3d89 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c @@ -314,7 +314,7 @@ static ssize_t sta_agg_status_do_read(struct wiphy *wiphy, struct file *file, p += scnprintf(p, bufsz + buf - p, "next dialog_token: %#02x\n", sta->ampdu_mlme.dialog_token_allocator + 1); p += scnprintf(p, bufsz + buf - p, - "TID\t\tRX\tDTKN\tSSN\t\tTX\tDTKN\tpending\n"); + "TID\t\tRX\tDTKN\tSSN\t\tTX\tDTKN\tpending\tbuf_size\n"); for (i = 0; i < IEEE80211_NUM_TIDS; i++) { bool tid_rx_valid; @@ -337,6 +337,8 @@ static ssize_t sta_agg_status_do_read(struct wiphy *wiphy, struct file *file, tid_tx ? tid_tx->dialog_token : 0); p += scnprintf(p, bufsz + buf - p, "\t%03d", tid_tx ? skb_queue_len(&tid_tx->pending) : 0); + p += scnprintf(p, bufsz + buf - p, "\t%d", + tid_tx ? tid_tx->buf_size : 0); p += scnprintf(p, bufsz + buf - p, "\n"); } @@ -348,7 +350,7 @@ static ssize_t sta_agg_status_read(struct file *file, char __user *userbuf, { struct sta_info *sta = file->private_data; struct wiphy *wiphy = sta->local->hw.wiphy; - size_t bufsz = 71 + IEEE80211_NUM_TIDS * 40; + size_t bufsz = 80 + IEEE80211_NUM_TIDS * 45; char *buf = kmalloc(bufsz, GFP_KERNEL); ssize_t ret; -- 2.56.0