1c3d86a7c2df4b4820c49b9bf23f648a1b8b91ce
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / rt2x00 / 020-rt2x00-do-not-print-error-when-queue-is-full.patch
1 From 1a8a8989b779e51e4652a30e9f22c36a1b6ffc4b Mon Sep 17 00:00:00 2001
2 From: Stanislaw Gruszka <sgruszka@redhat.com>
3 Date: Thu, 20 Dec 2018 16:16:11 +0100
4 Subject: [PATCH 20/28] rt2x00: do not print error when queue is full
5
6 For unknown reasons printk() on some context can cause CPU hung on
7 embedded MT7620 AP/router MIPS platforms. What can result on wifi
8 disconnects.
9
10 This patch move queue full messages to debug level what is consistent
11 with other mac80211 drivers which drop packet silently if tx queue is
12 full. This make MT7620 OpenWRT routers more stable, what was reported
13 by various users.
14
15 Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
16 ---
17 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
21 +++ b/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
22 @@ -671,7 +671,7 @@ int rt2x00queue_write_tx_frame(struct da
23 spin_lock(&queue->tx_lock);
24
25 if (unlikely(rt2x00queue_full(queue))) {
26 - rt2x00_err(queue->rt2x00dev, "Dropping frame due to full tx queue %d\n",
27 + rt2x00_dbg(queue->rt2x00dev, "Dropping frame due to full tx queue %d\n",
28 queue->qid);
29 ret = -ENOBUFS;
30 goto out;