diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-08-31 04:31:08 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-09-05 04:03:13 -0400 |
commit | adf8ed01e4fdd254efead978d633718ab01a7d5c (patch) | |
tree | 52d3daf8a8b99db1d72cbe0fcf1efb8e4c770c8b /net/mac80211/debugfs_sta.c | |
parent | 331aead5203f5979212e798682ff9157c939ceba (diff) |
mac80211: add an optional TXQ for other PS-buffered frames
Some drivers may want to also use the TXQ abstraction with
non-data packets that need powersave buffering, so add a
hardware flag to allow this.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r-- | net/mac80211/debugfs_sta.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index de66f685a107..95124978947f 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c | |||
@@ -141,7 +141,7 @@ static ssize_t sta_aqm_read(struct file *file, char __user *userbuf, | |||
141 | { | 141 | { |
142 | struct sta_info *sta = file->private_data; | 142 | struct sta_info *sta = file->private_data; |
143 | struct ieee80211_local *local = sta->local; | 143 | struct ieee80211_local *local = sta->local; |
144 | size_t bufsz = AQM_TXQ_ENTRY_LEN*(IEEE80211_NUM_TIDS+1); | 144 | size_t bufsz = AQM_TXQ_ENTRY_LEN * (IEEE80211_NUM_TIDS + 2); |
145 | char *buf = kzalloc(bufsz, GFP_KERNEL), *p = buf; | 145 | char *buf = kzalloc(bufsz, GFP_KERNEL), *p = buf; |
146 | struct txq_info *txqi; | 146 | struct txq_info *txqi; |
147 | ssize_t rv; | 147 | ssize_t rv; |
@@ -163,7 +163,9 @@ static ssize_t sta_aqm_read(struct file *file, char __user *userbuf, | |||
163 | bufsz+buf-p, | 163 | bufsz+buf-p, |
164 | "tid ac backlog-bytes backlog-packets new-flows drops marks overlimit collisions tx-bytes tx-packets flags\n"); | 164 | "tid ac backlog-bytes backlog-packets new-flows drops marks overlimit collisions tx-bytes tx-packets flags\n"); |
165 | 165 | ||
166 | for (i = 0; i < IEEE80211_NUM_TIDS; i++) { | 166 | for (i = 0; i < ARRAY_SIZE(sta->sta.txq); i++) { |
167 | if (!sta->sta.txq[i]) | ||
168 | continue; | ||
167 | txqi = to_txq_info(sta->sta.txq[i]); | 169 | txqi = to_txq_info(sta->sta.txq[i]); |
168 | p += scnprintf(p, bufsz+buf-p, | 170 | p += scnprintf(p, bufsz+buf-p, |
169 | "%d %d %u %u %u %u %u %u %u %u %u 0x%lx(%s%s%s)\n", | 171 | "%d %d %u %u %u %u %u %u %u %u %u 0x%lx(%s%s%s)\n", |