mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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:
parent
dba772b9c8
commit
bf1e4f3f28
2 changed files with 6 additions and 3 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue