summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/htt_rx.c
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2014-10-23 17:04:24 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2014-10-24 16:30:30 +0300
commit51fc7d74ce4a1d92623e592eff14403872fb26bd (patch)
tree67dab3f5d68080176884b2cda4b7438e962a29be /drivers/net/wireless/ath/ath10k/htt_rx.c
parent686687c9afb43d396b32689f4dd29d1e87cebdf8 (diff)
downloadlwn-51fc7d74ce4a1d92623e592eff14403872fb26bd.tar.gz
lwn-51fc7d74ce4a1d92623e592eff14403872fb26bd.zip
ath10k: clear htt->rx_confused on load
Once driver entered the rx_confused state it would refuse to rx even after firmware is restarted. Make sure to clear it so that rx works after, e.g. hw restart or after all interfaces are stopped. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/htt_rx.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/htt_rx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c
index 70e8090f9fac..4fc4dbd2aaab 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -497,6 +497,8 @@ int ath10k_htt_rx_alloc(struct ath10k_htt *htt)
size_t size;
struct timer_list *timer = &htt->rx_ring.refill_retry_timer;
+ htt->rx_confused = false;
+
htt->rx_ring.size = ath10k_htt_rx_ring_size(htt);
if (!is_power_of_2(htt->rx_ring.size)) {
ath10k_warn(ar, "htt rx ring size is not power of 2\n");