diff options
| author | Chris Guo <kangxu@codeaurora.org> | 2016-10-13 15:25:56 +0800 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-10-20 12:04:10 +0530 |
| commit | 75e81cdfb0d0efd88126cf5cdc2fd929e771dec3 (patch) | |
| tree | bca372e4681dac5c280371b7c3e7cbc2d1b3dbdb | |
| parent | 0aadd62c723e71438ec50222bfec1ef1a7bfe712 (diff) | |
qcacld-2.0: reset ipa perf level when stop bus_bw timer
IPA perf level is updated in bus_bw timer which is triggered periodly.
If do not reset the IPA perf level when this timer stopping, the ipa
perf level could be remained in a invalid state.
Change-Id: Ia817c80176790ac5f2c3e474616163fef2de38b8
CRs-Fixed: 1077401
| -rw-r--r-- | CORE/HDD/inc/wlan_hdd_ipa.h | 2 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_main.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_ipa.h b/CORE/HDD/inc/wlan_hdd_ipa.h index 19809be36482..a4dd0c2ac7b8 100644 --- a/CORE/HDD/inc/wlan_hdd_ipa.h +++ b/CORE/HDD/inc/wlan_hdd_ipa.h @@ -78,6 +78,8 @@ void hdd_ipa_uc_stat_request( hdd_adapter_t *adapter, uint8_t reason); void hdd_ipa_uc_rt_debug_host_dump(hdd_context_t *hdd_ctx); void hdd_ipa_dump_info(hdd_context_t *hdd_ctx); #endif /* IPA_UC_OFFLOAD */ +#else +#define hdd_ipa_set_perf_level(hdd_ctx, tx_p, rx_p) /* no-op */ #endif /* IPA_OFFLOAD */ #if !defined(IPA_OFFLOAD) || !defined(IPA_UC_OFFLOAD) diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index dbb748ad9969..8b8ad2313a2c 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -17653,6 +17653,8 @@ void hdd_stop_bus_bw_compute_timer(hdd_adapter_t *pAdapter) if (can_stop == VOS_TRUE) { vos_timer_stop(&pHddCtx->bus_bw_timer); + /* reset the ipa perf level */ + hdd_ipa_set_perf_level(pHddCtx, 0, 0); hdd_rst_tcp_delack(pHddCtx); tlshim_reset_bundle_require(); } |
