diff options
author | Govind Singh <govinds@codeaurora.org> | 2018-09-20 10:34:25 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-10-01 17:04:23 +0300 |
commit | 752ed2a229c62f9301b9ab91d04048402fab6ff8 (patch) | |
tree | bbec356fdc589446427d1c37ec5131fe52cd86fb /drivers/net/wireless/ath/ath10k/snoc.c | |
parent | ath10k: advertize beacon_int_min_gcd as 100 while bring up multi vaps (diff) | |
download | linux-dev-752ed2a229c62f9301b9ab91d04048402fab6ff8.tar.xz linux-dev-752ed2a229c62f9301b9ab91d04048402fab6ff8.zip |
ath10k: move napi_enable to hif_start for consistent pairing
There is unbalanced napi_{enable,disable}() behavior as they
are being called from hif_snoc_{power_up/stop).
The fix is to call napi_enable() from ath10k_snoc_hif_start()
so that it matches with napi_disable() being called from
ath10k_snoc_hif_stop().
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/snoc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/snoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c index b83edb9144c3..34703101f569 100644 --- a/drivers/net/wireless/ath/ath10k/snoc.c +++ b/drivers/net/wireless/ath/ath10k/snoc.c @@ -739,6 +739,7 @@ static void ath10k_snoc_hif_stop(struct ath10k *ar) static int ath10k_snoc_hif_start(struct ath10k *ar) { + napi_enable(&ar->napi); ath10k_snoc_irq_enable(ar); ath10k_snoc_rx_post(ar); @@ -801,7 +802,6 @@ static int ath10k_snoc_hif_power_up(struct ath10k *ar) goto err_wlan_enable; } - napi_enable(&ar->napi); return 0; err_wlan_enable: |