From bf1e4f3f28235f11759e20a8ae20ad73929cea70 Mon Sep 17 00:00:00 2001 From: Tushnim Bhattacharyya Date: Wed, 28 Mar 2018 11:41:04 -0700 Subject: [PATCH] qcacmn: Use correct enum type in function call Use correct enum type in tdls_determine_channel_opclass, tdls_process_antenna_switch & tdls_process_send_mgmt_rsp. Change-Id: Idd4e7ac47196e3e11971fe3013805b6a8551c8de CRs-Fixed: 2214003 --- umac/tdls/core/src/wlan_tdls_cmds_process.c | 6 ++++-- umac/tdls/core/src/wlan_tdls_peer.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/umac/tdls/core/src/wlan_tdls_cmds_process.c b/umac/tdls/core/src/wlan_tdls_cmds_process.c index 9f9239c42801..30bbe01e0885 100644 --- a/umac/tdls/core/src/wlan_tdls_cmds_process.c +++ b/umac/tdls/core/src/wlan_tdls_cmds_process.c @@ -1300,7 +1300,7 @@ QDF_STATUS tdls_process_send_mgmt_rsp(struct tdls_send_mgmt_rsp *rsp) if (tdls_soc && tdls_soc->tdls_event_cb) { ind.vdev = vdev; - ind.status = rsp->status_code; + ind.status = status; tdls_soc->tdls_event_cb(tdls_soc->tdls_evt_cb_data, TDLS_EVENT_MGMT_TX_ACK_CNF, &ind); } @@ -2276,7 +2276,9 @@ QDF_STATUS tdls_process_antenna_switch(struct tdls_antenna_switch_request *req) vdev_id = wlan_vdev_get_id(vdev); opmode = wlan_vdev_mlme_get_opmode(vdev); - channel = policy_mgr_get_channel(soc_obj->soc, opmode, &vdev_id); + channel = policy_mgr_get_channel(soc_obj->soc, + policy_mgr_convert_device_mode_to_qdf_type(opmode), + &vdev_id); /* Check supported nss for TDLS, if is 1x1, no need to teardown links */ if (WLAN_REG_IS_24GHZ_CH(channel)) diff --git a/umac/tdls/core/src/wlan_tdls_peer.c b/umac/tdls/core/src/wlan_tdls_peer.c index 998b4796a100..7e2f7e597b91 100644 --- a/umac/tdls/core/src/wlan_tdls_peer.c +++ b/umac/tdls/core/src/wlan_tdls_peer.c @@ -397,7 +397,8 @@ static void tdls_determine_channel_opclass(struct tdls_soc_priv_obj *soc_obj, opmode = wlan_vdev_mlme_get_opmode(vdev_obj->vdev); *channel = policy_mgr_get_channel(soc_obj->soc, - opmode, &vdev_id); + policy_mgr_convert_device_mode_to_qdf_type(opmode), + &vdev_id); *opclass = 0; } else { *channel = peer->pref_off_chan_num;