From dfbce70aaf2037b518e91bd274b2c57a1ef6196d Mon Sep 17 00:00:00 2001 From: Tushnim Bhattacharyya Date: Tue, 27 Mar 2018 12:46:48 -0700 Subject: [PATCH] qcacld-3.0: Use correct enum type for function variable Use correct enum type for function variable in hdd_reset_tcp_delack & return type in iw_get_policy_manager_ut_ops. Change-Id: Iec8a678410b90dbe081c007f1bbfaa31f255799e CRs-Fixed: 2213784 --- core/hdd/src/wlan_hdd_tx_rx.c | 2 +- core/hdd/src/wlan_hdd_wext.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_tx_rx.c b/core/hdd/src/wlan_hdd_tx_rx.c index 5d881be8f74b..af7829a3f929 100644 --- a/core/hdd/src/wlan_hdd_tx_rx.c +++ b/core/hdd/src/wlan_hdd_tx_rx.c @@ -2262,7 +2262,7 @@ void hdd_tx_queue_cb(void *context, uint32_t vdev_id, */ void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx) { - enum pld_bus_width_type next_level = WLAN_SVC_TP_LOW; + enum wlan_tp_level next_level = WLAN_SVC_TP_LOW; struct wlan_rx_tp_data rx_tp_data = {0}; rx_tp_data.rx_tp_flags |= TCP_DEL_ACK_IND; diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index e5d164f61cbe..3e01ba89f0ea 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -7172,14 +7172,11 @@ static int iw_get_policy_manager_ut_ops(struct hdd_context *hdd_ctx, case WE_POLICY_MANAGER_QUERY_ACTION_CMD: { - enum policy_mgr_conc_next_action action; - hdd_debug(" is called"); - action = policy_mgr_current_connections_update( + policy_mgr_current_connections_update( hdd_ctx->hdd_psoc, adapter->session_id, apps_args[0], POLICY_MGR_UPDATE_REASON_UT); - pr_info("next action is %d {HDD_NOP = 0, HDD_DBS, HDD_DBS_DOWNGRADE, HDD_MCC, HDD_MCC_UPGRADE}", action); } break;