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
diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h
index cfd0781..7a29c86 100644
--- a/core/mac/inc/sir_api.h
+++ b/core/mac/inc/sir_api.h
@@ -4817,10 +4817,6 @@
 	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 2929a47..13cad1d 100644
--- a/core/sme/inc/sme_api.h
+++ b/core/sme/inc/sme_api.h
@@ -1427,8 +1427,6 @@
 
 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 1d1680a..18ff55f 100644
--- a/core/sme/inc/sme_internal.h
+++ b/core/sme/inc/sme_internal.h
@@ -298,7 +298,6 @@
 	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 4dcfd08..c9b9919 100644
--- a/core/sme/src/common/sme_api.c
+++ b/core/sme/src/common/sme_api.c
@@ -13205,24 +13205,6 @@
 }
 
 /**
- * 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
  * @mac_handle: Handle returned by macOpen