Skip to content

Commit 763aa27

Browse files
committed
mac80211: remove sta->last_ack_signal
This file only feeds a debugfs file that isn't very useful, so remove it. If necessary, we can add other ways to get this information, for example in the NL80211_CMD_PROBE_CLIENT response. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent a515de6 commit 763aa27

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

net/mac80211/debugfs_sta.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ static const struct file_operations sta_ ##name## _ops = { \
5050
STA_OPS(name)
5151

5252
STA_FILE(aid, sta.aid, D);
53-
STA_FILE(last_ack_signal, last_ack_signal, D);
5453

5554
static ssize_t sta_flags_read(struct file *file, char __user *userbuf,
5655
size_t count, loff_t *ppos)
@@ -366,7 +365,6 @@ void ieee80211_sta_debugfs_add(struct sta_info *sta)
366365
DEBUGFS_ADD(agg_status);
367366
DEBUGFS_ADD(ht_capa);
368367
DEBUGFS_ADD(vht_capa);
369-
DEBUGFS_ADD(last_ack_signal);
370368

371369
DEBUGFS_ADD_COUNTER(rx_duplicates, num_duplicates);
372370
DEBUGFS_ADD_COUNTER(rx_fragments, rx_fragments);

net/mac80211/sta_info.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ DECLARE_EWMA(signal, 1024, 8)
373373
* @rx_dropped: number of dropped MPDUs from this STA
374374
* @last_signal: signal of last received frame from this STA
375375
* @avg_signal: moving average of signal of received frames from this STA
376-
* @last_ack_signal: signal of last received Ack frame from this STA
377376
* @last_seq_ctrl: last received seq/frag number from this STA (per TID
378377
* plus one for non-QoS frames)
379378
* @tx_filtered_count: number of frames the hardware filtered for this STA
@@ -467,7 +466,6 @@ struct sta_info {
467466
unsigned long rx_dropped;
468467
int last_signal;
469468
struct ewma_signal avg_signal;
470-
int last_ack_signal;
471469

472470
u8 chains;
473471
s8 chain_signal_last[IEEE80211_MAX_CHAINS];

net/mac80211/status.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,6 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
863863
ieee80211_lost_packet(sta, info);
864864
}
865865
}
866-
867-
if (acked)
868-
sta->last_ack_signal = info->status.ack_signal;
869866
}
870867

871868
rcu_read_unlock();

0 commit comments

Comments
 (0)