|
@@ -400,6 +400,7 @@ void ath10k_debug_fw_stats_process(struct ath10k *ar, struct sk_buff *skb)
|
|
|
* prevent firmware from DoS-ing the host.
|
|
|
*/
|
|
|
ath10k_fw_stats_peers_free(&ar->debug.fw_stats.peers);
|
|
|
+ ath10k_fw_extd_stats_peers_free(&ar->debug.fw_stats.peers_extd);
|
|
|
ath10k_warn(ar, "dropping fw peer stats\n");
|
|
|
goto free;
|
|
|
}
|
|
@@ -410,10 +411,12 @@ void ath10k_debug_fw_stats_process(struct ath10k *ar, struct sk_buff *skb)
|
|
|
goto free;
|
|
|
}
|
|
|
|
|
|
+ if (!list_empty(&stats.peers))
|
|
|
+ list_splice_tail_init(&stats.peers_extd,
|
|
|
+ &ar->debug.fw_stats.peers_extd);
|
|
|
+
|
|
|
list_splice_tail_init(&stats.peers, &ar->debug.fw_stats.peers);
|
|
|
list_splice_tail_init(&stats.vdevs, &ar->debug.fw_stats.vdevs);
|
|
|
- list_splice_tail_init(&stats.peers_extd,
|
|
|
- &ar->debug.fw_stats.peers_extd);
|
|
|
}
|
|
|
|
|
|
complete(&ar->debug.fw_stats_complete);
|