From 1a16551c90c04a2bf96123ddde768aa61c0e734b Mon Sep 17 00:00:00 2001 From: Jingxiang Ge Date: Wed, 16 Jan 2019 11:30:48 +0800 Subject: [PATCH] qcacld-3.0: Revert "qcacld-3.0: Check if gp_sap_ctx is empty after reinit" This reverts commit I77708d296fb218ca53ac656f844d02f58e23d241 Change-Id: I564d7858576af09e0a0d9d89f569a7b09ce72a84 CRs-Fixed: 2381581 --- core/hdd/src/wlan_hdd_power.c | 3 --- core/sap/inc/sap_api.h | 8 -------- core/sap/src/sap_module.c | 17 ----------------- 3 files changed, 28 deletions(-) diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 692851cebc..16c3ab7d0b 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1378,9 +1378,6 @@ static void hdd_is_interface_down_during_ssr(struct hdd_context *hdd_ctx) adapter = pnext; } - if (!wlansap_is_gp_sap_ctx_empty()) - QDF_DEBUG_PANIC("gp_sap_ctx leak"); - hdd_exit(); } diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index 45d743841b..f7a30cab5f 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -799,14 +799,6 @@ bool wlansap_is_channel_in_nol_list(struct sap_context *sap_ctx, uint8_t channelNumber, ePhyChanBondState chanBondState); -/** - * wlansap_is_gp_sap_ctx_empty() - This API checks if gp_sap_ctx - * is empty - * - * Return: TRUE if empty, FALSE otherwise - */ -bool wlansap_is_gp_sap_ctx_empty(void); - /** * wlansap_is_channel_leaking_in_nol() - This API checks if channel is leaking * in nol list diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 8fb46eb8f0..a5b4086dcc 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -369,23 +369,6 @@ bool wlansap_is_channel_in_nol_list(struct sap_context *sap_ctx, chanBondState); } -bool wlansap_is_gp_sap_ctx_empty(void) -{ - int8_t i; - bool is_empty = TRUE; - - qdf_mutex_acquire(&sap_context_lock); - for (i = 0; i < SAP_MAX_NUM_SESSION; i++) { - if (NULL != gp_sap_ctx[i]) { - is_empty = FALSE; - break; - } - } - qdf_mutex_release(&sap_context_lock); - - return is_empty; -} - static QDF_STATUS wlansap_mark_leaking_channel(struct wlan_objmgr_pdev *pdev, uint8_t *leakage_adjusted_lst, uint8_t chan_bw)