From c64e193882c5014c9e94fbdcc17d0aedea44f74e Mon Sep 17 00:00:00 2001 From: Jingxiang Ge Date: Tue, 22 Aug 2017 14:38:59 +0800 Subject: [PATCH] qcacld-3.0: Ignore bus bw compute when device is in suspend When wow resume happens, if hdd_bus_bw_work_handler is called before we complete the resume in host, it causes warning when sending cmd to fw. Ignore bus bw compute when device not yet resume from WOW. Change-Id: I607807d429f0f10207ffa2f4d878e38184415dc7 CRs-Fixed: 2096749 --- core/hdd/src/wlan_hdd_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index a23931f35eab..6e1bfb3d248a 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6364,6 +6364,9 @@ static void hdd_bus_bw_work_handler(struct work_struct *work) if (wlan_hdd_validate_context(hdd_ctx)) return; + if (hdd_ctx->isWiphySuspended) + goto restart_timer; + for (status = hdd_get_front_adapter(hdd_ctx, &adapterNode); NULL != adapterNode && QDF_STATUS_SUCCESS == status; status = @@ -6447,6 +6450,7 @@ static void hdd_bus_bw_work_handler(struct work_struct *work) hdd_ipa_set_perf_level(hdd_ctx, tx_packets, rx_packets); hdd_ipa_uc_stat_request(adapter, 2); +restart_timer: /* ensure periodic timer should still be running before restarting it */ qdf_spinlock_acquire(&hdd_ctx->bus_bw_timer_lock); if (hdd_ctx->bus_bw_timer_running)