From 9f728c40cbcc734bb87c474101d2ca8c204ed287 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 4 Mar 2023 13:39:17 -0800 Subject: [PATCH] qcacld-3.0: Remove struct hdd_context::disconnect_for_sta_mon_conc The logic that used struct hdd_context::disconnect_for_sta_mon_conc was removed with: qcacld-3.0: Code cleanup for connection manager in HDD Change-Id I2934e4a867458561c50170b0e786e63f20f1af4a This member is now only written and never read, hence it is obsolete, so remove it. Change-Id: Iff1b4a1e508bc193c9d40c11f31317f353874b52 CRs-Fixed: 3424792 --- core/hdd/inc/wlan_hdd_main.h | 2 -- core/hdd/src/wlan_hdd_main.c | 1 - 2 files changed, 3 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index f214f99305..3c636a8037 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -1884,7 +1884,6 @@ enum wlan_state_ctrl_str_id { * @ll_stats_per_chan_rx_tx_time: * @is_get_station_clubbed_in_ll_stats_req: * @multi_client_thermal_mitigation: Multi client thermal mitigation by fw - * @disconnect_for_sta_mon_conc: disconnect if sta monitor intf concurrency * @is_dual_mac_cfg_updated: indicate whether dual mac cfg has been updated * @is_regulatory_update_in_progress: * @regulatory_update_event: @@ -2157,7 +2156,6 @@ struct hdd_context { #ifdef FEATURE_WPSS_THERMAL_MITIGATION bool multi_client_thermal_mitigation; #endif - bool disconnect_for_sta_mon_conc; bool is_dual_mac_cfg_updated; bool is_regulatory_update_in_progress; qdf_event_t regulatory_update_event; diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 2925bb5646..a1d08a4907 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -19715,7 +19715,6 @@ wlan_hdd_add_monitor_check(struct hdd_context *hdd_ctx, NULL); if (num_open_session == 1) { - hdd_ctx->disconnect_for_sta_mon_conc = true; /* Try disconnecting if already in connected state */ wlan_hdd_cm_issue_disconnect(sta_adapter, REASON_UNSPEC_FAILURE,