]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath10k: fix tx hang
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 17 Mar 2016 09:51:04 +0000 (10:51 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 21 Mar 2016 16:29:16 +0000 (18:29 +0200)
The wake_tx_queue/push_pending logic had a bug
which could stop queues indefinitely effectivelly
breaking traffic.

Fixes: 299468782d94 ("ath10k: implement wake_tx_queue")
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c

index eedfe821700b1b296417ea59a187186607278379..1bc4bf1916a6d88b610123eea98a74d2ffb4256a 100644 (file)
@@ -3777,13 +3777,13 @@ void ath10k_mac_tx_push_pending(struct ath10k *ar)
                }
 
                list_del_init(&artxq->list);
+               if (ret != -ENOENT)
+                       list_add_tail(&artxq->list, &ar->txqs);
+
                ath10k_htt_tx_txq_update(hw, txq);
 
-               if (artxq == last || (ret < 0 && ret != -ENOENT)) {
-                       if (ret != -ENOENT)
-                               list_add_tail(&artxq->list, &ar->txqs);
+               if (artxq == last || (ret < 0 && ret != -ENOENT))
                        break;
-               }
        }
 
        rcu_read_unlock();