From 3525cdd50f8eb11570b35d0f570ae4d44b368b32 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 14 Oct 2017 17:16:31 -0700 Subject: [PATCH] qcacld-3.0: Remove obsolete hdd_hostapd_state bCommit flag The hdd_hostapd_state bCommit flag is a remnant from a prior version of the driver. This flag is written, but never read, and hence obviously has no purpose, so remove it. Change-Id: If4fd93f474fcd6e01cdc51b1575a3509b538b504 CRs-Fixed: 2126889 --- core/hdd/inc/wlan_hdd_main.h | 1 - core/hdd/src/wlan_hdd_hostapd.c | 1 - core/hdd/src/wlan_hdd_main.c | 3 --- 3 files changed, 5 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index bd8ae94df7e9..ba003721d4b6 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -701,7 +701,6 @@ struct hdd_hostapd_state { qdf_event_t qdf_stop_bss_event; qdf_event_t qdf_sta_disassoc_event; QDF_STATUS qdf_status; - bool bCommit; }; /** diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 310d632959a4..744c5d959203 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -8071,7 +8071,6 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter, hdd_unsafe_channel_restart_sap(hdd_ctx); hdd_set_connection_in_progress(false); - hostapd_state->bCommit = true; EXIT(); ret = 0; diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 76444b02ee1d..4a801ffd9968 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -10851,8 +10851,6 @@ void wlan_hdd_start_sap(struct hdd_adapter *ap_adapter, bool reinit) policy_mgr_incr_active_session(hdd_ctx->hdd_psoc, ap_adapter->device_mode, ap_adapter->sessionId); - hostapd_state->bCommit = true; - end: mutex_unlock(&hdd_ctx->sap_lock); /* SAP context and beacon cleanup will happen during driver unload @@ -12439,7 +12437,6 @@ void hdd_restart_sap(struct hdd_adapter *ap_adapter) policy_mgr_incr_active_session(hdd_ctx->hdd_psoc, ap_adapter->device_mode, ap_adapter->sessionId); - hostapd_state->bCommit = true; } end: mutex_unlock(&hdd_ctx->sap_lock);