From 2ebc0687515f2a6e34dc77cde5b6c74adb1bbe59 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 17 Dec 2018 22:21:50 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_register_hw_mode_trans_cb() Change I6cb9fe12bee3702556c9b52e7ccb7c69c762d8de ("qcacld-3.0: Remove legacy code for policy manager restructuring") removed the client of sme_register_hw_mode_trans_cb(). Since this function is obsolete, remove it along with the underlying data structures. Change-Id: Ibc478a6e2a4d50ee57324ee2431ae677dcb1e3a0 CRs-Fixed: 2370889 --- core/mac/inc/sir_api.h | 4 ---- core/sme/inc/sme_api.h | 2 -- core/sme/inc/sme_internal.h | 1 - core/sme/src/common/sme_api.c | 18 ------------------ 4 files changed, 25 deletions(-) diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index cfd0781bcd4d..7a29c86b0d8b 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -4817,10 +4817,6 @@ struct send_extcap_ie { uint8_t session_id; }; -typedef void (*hw_mode_transition_cb)(uint32_t old_hw_mode_index, - uint32_t new_hw_mode_index, - uint32_t num_vdev_mac_entries, - struct policy_mgr_vdev_mac_map *vdev_mac_map); typedef void (*antenna_mode_cb)(uint32_t status, void *context); /** diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 2929a47a2122..13cad1d08939 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -1427,8 +1427,6 @@ bool sme_is_any_session_in_connected_state(mac_handle_t mac_handle); QDF_STATUS sme_pdev_set_pcl(struct policy_mgr_pcl_list *msg); QDF_STATUS sme_pdev_set_hw_mode(struct policy_mgr_hw_mode msg); -void sme_register_hw_mode_trans_cb(mac_handle_t mac_handle, - hw_mode_transition_cb callback); QDF_STATUS sme_nss_update_request(uint32_t vdev_id, uint8_t new_nss, policy_mgr_nss_update_cback cback, diff --git a/core/sme/inc/sme_internal.h b/core/sme/inc/sme_internal.h index 1d1680a85bdb..18ff55ff8630 100644 --- a/core/sme/inc/sme_internal.h +++ b/core/sme/inc/sme_internal.h @@ -298,7 +298,6 @@ typedef struct tagSmeStruct { uint8_t miracast_value; struct ps_global_info ps_global_info; rssi_threshold_breached_cb rssi_threshold_breached_cb; - hw_mode_transition_cb sme_hw_mode_trans_cb; /* OCB callbacks */ void *ocb_set_config_context; ocb_callback ocb_set_config_callback; diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 4dcfd0860d68..c9b99198919f 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -13204,24 +13204,6 @@ QDF_STATUS sme_pdev_set_hw_mode(struct policy_mgr_hw_mode msg) return QDF_STATUS_SUCCESS; } -/** - * sme_register_hw_mode_trans_cb() - HW mode transition callback registration - * @mac_handle: Handle returned by macOpen - * @callback: HDD callback to be registered - * - * Registers the HDD callback with SME. This callback will be invoked when - * HW mode transition event is received from the FW - * - * Return: None - */ -void sme_register_hw_mode_trans_cb(mac_handle_t mac_handle, - hw_mode_transition_cb callback) -{ - struct mac_context *mac = MAC_CONTEXT(mac_handle); - - mac->sme.sme_hw_mode_trans_cb = callback; -} - /** * sme_nss_update_request() - Send beacon templete update to FW with new * nss value