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
This commit is contained in:
Tushnim Bhattacharyya 2018-03-28 11:41:04 -07:00 • committed by nshrivas
commit bf1e4f3f28
2 changed files with 6 additions and 3 deletions

View file

@ -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))

View file

@ -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;