diff options
| author | Ashish Kumar Dhanotiya <adhanoti@codeaurora.org> | 2020-07-21 19:26:27 +0530 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2020-07-24 09:10:50 -0700 |
| commit | 40e3cf079f07cb831a6fe13e4420a95cd9b36b5b (patch) | |
| tree | c1b70e9400b181471f9bb89ac4e876b3483b0e17 | |
| parent | 137a04ac4924b81f9ccbe4391b3d1b984406f446 (diff) | |
qcacld-3.0: Flush SAP pre-cac work during SAP stop adapter
Currently host does not clean up SAP pre-cac work in SAP
stop adapter, because of which this work can run after
SAP adapter is destroyed which may lead to undefined
behavior.
To address above issue flush SAP pre-cac work in SAP stop
adapter so that pre cac work does not run after SAP adapter
is destroyed.
Change-Id: I5d1f7ca64ddaf922950bfcf2ee869a1ed85f5eba
CRs-Fixed: 2709183
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 4806e783c19c..b516be33874a 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -5142,6 +5142,7 @@ QDF_STATUS hdd_stop_adapter(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter, wlan_hdd_del_station(adapter); hdd_ipa_flush(hdd_ctx); + qdf_flush_work(&hdd_ctx->sap_pre_cac_work); case QDF_P2P_GO_MODE: if (hdd_ctx->config->conc_custom_rule1 && @@ -5312,7 +5313,7 @@ QDF_STATUS hdd_stop_all_adapters(hdd_context_t *hdd_ctx, bool close_session) ENTER(); - cds_flush_work(&hdd_ctx->sap_pre_cac_work); + qdf_flush_work(&hdd_ctx->sap_pre_cac_work); cds_flush_sta_ap_intf_work(hdd_ctx); status = hdd_get_front_adapter(hdd_ctx, &adapterNode); @@ -5364,7 +5365,7 @@ QDF_STATUS hdd_reset_all_adapters(hdd_context_t *hdd_ctx) ENTER(); - cds_flush_work(&hdd_ctx->sap_pre_cac_work); + qdf_flush_work(&hdd_ctx->sap_pre_cac_work); cds_flush_sta_ap_intf_work(hdd_ctx); status = hdd_get_front_adapter(hdd_ctx, &adapterNode); |
