diff --git a/core/hdd/src/wlan_hdd_tx_rx.c b/core/hdd/src/wlan_hdd_tx_rx.c index 264eb56713fa..dedad19dc8dc 100644 --- a/core/hdd/src/wlan_hdd_tx_rx.c +++ b/core/hdd/src/wlan_hdd_tx_rx.c @@ -65,6 +65,11 @@ #include "wlan_hdd_power.h" #include +/* + * Count to ratelimit the HDD logs during TX failures + */ +#define HDD_TX_BLOCKED_RATE 256 + #ifdef QCA_LL_TX_FLOW_CONTROL_V2 /* * Mapping Linux AC interpretation to SME AC. @@ -534,9 +539,9 @@ static inline bool hdd_is_tx_allowed(struct sk_buff *skb, uint8_t peer_id) peer = cdp_peer_find_by_local_id(soc, pdev, peer_id); if (peer == NULL) { - QDF_TRACE(QDF_MODULE_ID_HDD_DATA, QDF_TRACE_LEVEL_WARN, - FL("Unable to find peer entry for staid: %d"), - peer_id); + hdd_err_ratelimited(HDD_TX_BLOCKED_RATE, + "Unable to find peer entry for staid: %d", + peer_id); return false; }